这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
37af128
Added React Native Navigation
Mikunj Sep 7, 2018
3e6705f
Started converting main pages to RNN.
Mikunj Sep 11, 2018
6fc6546
Slowly replacing old nav code
Mikunj Sep 11, 2018
d2b9736
More replacing.
Mikunj Sep 12, 2018
edaccb3
Moved Lightbox over to RNN.
Mikunj Sep 12, 2018
180f9fd
Update side menu to RNN.
Mikunj Sep 13, 2018
d1f50d5
Added Initial Screen.
Mikunj Sep 13, 2018
89d13da
Added initial tab selection.
Mikunj Sep 16, 2018
e1945e7
Fix media page navigations
Mikunj Sep 16, 2018
b949dd3
Fix notification navigation.
Mikunj Sep 19, 2018
d32a011
Fixed initial tab selection on android.
Mikunj Sep 19, 2018
5a1595e
Fix layouts on iPhoneX.
Mikunj Sep 20, 2018
e23e4e7
Switch to legacy build system for Xcode 10
Mikunj Sep 26, 2018
bf94de7
Fixed sidebar not disappearing on android
Mikunj Sep 26, 2018
3d57930
Merge branch 'develop' into feature/react-native-navigation
Mikunj Sep 26, 2018
23ff401
Fixed android build
Mikunj Sep 27, 2018
16933b2
Calculate unreads locally rather than relying on meta.
Mikunj Sep 27, 2018
d1ae265
Refactor NotificationScreen
Mikunj Sep 28, 2018
7ae5eb4
Added notification overlay
Mikunj Sep 28, 2018
fe7efcf
Added animation to notification overlay.
Mikunj Oct 1, 2018
54dadcc
Fix notification counts not updating after viewing an unread notifica…
Mikunj Oct 1, 2018
f3820a1
Fix notification item display.
Mikunj Oct 1, 2018
ce9b73d
Added navigation for aired notifications.
Mikunj Oct 1, 2018
74501d7
Added fetching of notifications on a set interval.
Mikunj Oct 2, 2018
2774eba
Made a notification HOC to replace the overlay.
Mikunj Oct 3, 2018
068b643
Fix notification fetch interval.
Mikunj Oct 3, 2018
c5f1539
Fix notifications missing required info.
Mikunj Oct 3, 2018
89a5cb7
Added handling of notification from OneSignal.
Mikunj Oct 4, 2018
8417e1d
Fix how comments and posts are displayed when tapping on notification.
Mikunj Oct 4, 2018
3d54bac
Clear all notifications when user navigates to notifications tab.
Mikunj Oct 4, 2018
304fbcb
rename routes folder to screens.
Mikunj Oct 4, 2018
2c35206
Minor code fixup
Mikunj Oct 4, 2018
1374007
Merge pull request #392 from Mikunj/feature/react-native-navigation
Mikunj Oct 4, 2018
cdb1384
Merge branch 'develop' into feature/notifications
Mikunj Oct 4, 2018
a5d137d
Added extraction of release files to android directory as well
Mikunj Oct 5, 2018
c4d6768
Merge pull request #396 from Mikunj/fix/travis-android-build
Mikunj Oct 5, 2018
0086022
More travis fixes
Mikunj Oct 5, 2018
f5736eb
Merge pull request #397 from Mikunj/fix/travis-android-build
Mikunj Oct 5, 2018
7e06c27
Merge branch 'develop' into feature/notifications
Mikunj Oct 5, 2018
3212798
removed unneeded options from notification overlay.
Mikunj Oct 5, 2018
5c35acc
Comment notification will now show the post and the reply instead of …
Mikunj Oct 7, 2018
edf225c
Reset navigation stack after user navigates back to notification tab.
Mikunj Oct 7, 2018
a220dd9
Fixed incorrect filter display.
Mikunj Oct 7, 2018
384c435
Merge pull request #395 from Mikunj/feature/notifications
Mikunj Oct 8, 2018
e605bc9
Fix layout for iPhone XS Max.
Mikunj Oct 9, 2018
f690e00
Remove unused code.
Mikunj Oct 9, 2018
84f84ca
Merge pull request #398 from Mikunj/fix/iphoneXS-layout
Mikunj Oct 9, 2018
b831c59
Added react-native-deep-linking
Mikunj Oct 8, 2018
2a8f704
Added deep linking code.
Mikunj Oct 9, 2018
fca6899
Updated url utils to use deep linking.
Mikunj Oct 10, 2018
a2d3636
Added a loading indicator for deep-linking
Mikunj Oct 10, 2018
96e8922
Fix replying to comments of comments in notifications & deep linking.
Mikunj Oct 12, 2018
7cb458a
Merge pull request #399 from Mikunj/feature/deep-linking
Mikunj Oct 12, 2018
32ab033
Added deep link for feedback routes
Mikunj Oct 14, 2018
52c4aa6
Added option to view trailers in media pages.
Mikunj Oct 14, 2018
1b04fe3
Added navigating to category search when user presses a category pill.
Mikunj Oct 14, 2018
a08dbc6
Switched to `singleTask` launch mode on android.
Mikunj Oct 15, 2018
5a5f88e
Merge pull request #401 from Mikunj/fix/deeplink-fixes
Mikunj Oct 15, 2018
075554a
Undo launchMode change.
Mikunj Oct 15, 2018
93705d3
Merge pull request #402 from Mikunj/fix/deeplink-fixes
Mikunj Oct 15, 2018
7799857
Reset back to old code.
Mikunj Oct 15, 2018
ec33b46
Added a 10ms timeout before getting initial url.
Mikunj Oct 15, 2018
04f77bd
Merge pull request #403 from Mikunj/fix/deeplink-fixes
Mikunj Oct 15, 2018
4297201
Oops forgot to add feedback scheme to AndroidManifest.
Mikunj Oct 15, 2018
544556a
Added checks to only register deep links once.
Mikunj Oct 15, 2018
d060822
Fixed invalid function call.
Mikunj Oct 15, 2018
60f2755
Merge pull request #404 from Mikunj/fix/deeplink-fixes
Mikunj Oct 15, 2018
8230cab
Allow navigating to parent post when viewing a comment.
Mikunj Oct 16, 2018
21b5ac0
Fixed include fields when fetching notifications
Mikunj Oct 17, 2018
f5ed3d8
Added support for media sub-tabs
Mikunj Oct 17, 2018
be65174
Added linking to unit pages.
Mikunj Oct 17, 2018
2128797
Added media card to unit page. This will only be shown if user direct…
Mikunj Oct 17, 2018
02c6685
Added sub-routes for Profile Pages.
Mikunj Oct 17, 2018
87eb74f
Added default case for handling feedback.
Mikunj Oct 17, 2018
b52801e
Fix fetching wrong episode while deep linking.
Mikunj Oct 17, 2018
a7a64bb
Merge pull request #405 from Mikunj/fix/final-deep-link-fixes
Mikunj Oct 17, 2018
8c09906
Add "Load More" button to feeds
trmcnvn Oct 17, 2018
9a81ba3
uniqBy feeds
trmcnvn Oct 17, 2018
2968200
Update index.js
Mikunj Oct 18, 2018
28c6074
Update index.js
Mikunj Oct 18, 2018
7d09c04
Merge pull request #406 from trmcnvn/feature/feed-load-more
Mikunj Oct 18, 2018
153c443
Merge pull request #400 from Mikunj/feature/media-page-features
Mikunj Oct 18, 2018
6c30895
Bumped version to 6.9
Mikunj Oct 18, 2018
32d2b73
Merge pull request #407 from Mikunj/version/6.9
Mikunj Oct 18, 2018
a91d524
Fix navigation in media and profile pages.
Mikunj Oct 21, 2018
d1bb208
Fix slow navigation when tapping 'edit entry' on media page.
Mikunj Oct 21, 2018
4b7505b
Fixed filters not being persisted after viewing media by genre.
Mikunj Oct 22, 2018
04d460f
Lock orientation to portrait.
Mikunj Oct 22, 2018
8eda7bd
Merge pull request #408 from Mikunj/fix/bugs
Mikunj Oct 22, 2018
f4d3fe1
Fixed duplicate media occurring in on-boarding.
Mikunj Oct 24, 2018
520b0d6
upgraded react-native-fbsdk to 0.8
Mikunj Oct 24, 2018
a9ba4b6
Merge pull request #409 from Mikunj/fix/duplicate-media
Mikunj Oct 24, 2018
5af3e73
Fixed comment replying.
Mikunj Oct 25, 2018
865b7f8
Merge pull request #410 from Mikunj/fix/comment-bug
Mikunj Oct 25, 2018
d2a7e63
Added support for http scheme.
Mikunj Oct 29, 2018
e99bd9c
Merge pull request #411 from Mikunj/fix/deep-link-http
Mikunj Oct 29, 2018
67baa9b
Make travis update certs and provisioning profiles.
Mikunj Oct 29, 2018
f7b3a6f
Merge pull request #412 from Mikunj/fix/ios-travis
Mikunj Oct 29, 2018
b5f4248
Fixed fastlane update match
Mikunj Oct 29, 2018
670d5a3
Merge pull request #413 from Mikunj/fix/ios-travis
Mikunj Oct 29, 2018
9524b54
More fastlane stuff.
Mikunj Oct 29, 2018
730d6f3
Merge pull request #414 from Mikunj/fix/ios-travis
Mikunj Oct 29, 2018
b0c4a9b
Revert to old fastlane
Mikunj Oct 29, 2018
99e2042
Merge pull request #415 from Mikunj/revert/ios-travis
Mikunj Oct 29, 2018
31be8a6
Pass a hex string to badge.
Mikunj Oct 29, 2018
fe2694b
Bump to 6.9.1
Mikunj Oct 29, 2018
6e41985
Merge pull request #416 from Mikunj/fix/ios9-crash
Mikunj Oct 29, 2018
23ef45a
Extricate env from Travis
NuckChorris Oct 29, 2018
dddd3e3
Revert "Extricate env from Travis"
NuckChorris Oct 29, 2018
ce8d591
Disable setting badgeColor on iOS 9 devices
Mikunj Oct 30, 2018
0031c76
Bump version to 6.9.2
Mikunj Oct 30, 2018
cdcd85a
Merge pull request #417 from Mikunj/fix/ios9-crash
Mikunj Oct 30, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ matrix:
- chmod +x ./android/gradlew
- openssl aes-256-cbc -K $encrypted_70d456c9569f_key -iv $encrypted_70d456c9569f_iv -in ./android/app/releaseFiles.tar.enc -out ./android/app/releaseFiles.tar -d
- tar xvf ./android/app/releaseFiles.tar -C ./android/app

# Doing this because travis seemed to mess up when looking for the keystore file
- mkdir -p ./android/app/app
- tar xvf ./android/app/releaseFiles.tar -C ./android/app/app
# - security delete-certificate -c "Apple Worldwide Developer Relations Certification Authority" # add this to resolve 'Could not install WWDR certificate'
install:
- yarn install
Expand Down
28 changes: 22 additions & 6 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ android {

defaultConfig {
applicationId "com.everfox.animetrackerandroid"
minSdkVersion 16
minSdkVersion 19
targetSdkVersion 27
missingDimensionStrategy "RNN.reactNativeVersion", "reactNative51"
versionCode 1
versionName "6.8.1"
versionName "6.9.2"
multiDexEnabled true
ndk {
abiFilters "armeabi-v7a", "x86"
Expand All @@ -132,6 +133,10 @@ android {
dexOptions {
jumboMode = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
splits {
abi {
reset()
Expand Down Expand Up @@ -172,6 +177,15 @@ android {
}
}

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support' && requested.name != 'multidex' && requested.name != 'multidex-instrumentation') {
details.useVersion "27.1.0"
}
}
}

dependencies {
compile project(':react-native-sentry')
compile project(':react-native-android-fullscreen-webview')
Expand All @@ -183,11 +197,13 @@ dependencies {
compile project(':react-native-fbsdk')
compile project(':react-native-vector-icons')
compile project(':react-native-code-push')
compile fileTree(dir: "libs", include: ["*.jar"])


implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:27.1.0"
implementation "com.facebook.react:react-native:+" // From node_modules
implementation project(':react-native-navigation')

compile 'com.android.support:multidex:1.0.1'
compile "com.android.support:appcompat-v7:27+"
compile "com.facebook.react:react-native:+" // From node_modules
compile "com.facebook.fresco:animated-gif:1.3.0"
compile 'com.facebook.fresco:animated-webp:1.3.0'
compile 'com.facebook.fresco:webpsupport:1.3.0'
Expand Down
12 changes: 7 additions & 5 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:launchMode="singleTop"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:configChanges="keyboard|keyboardHidden|screenSize|orientation"
android:windowSoftInputMode="adjustPan"
Expand All @@ -56,8 +56,8 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- Disabled deep linking for now -->
<!-- <intent-filter>
<!-- Deep Linking -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
Expand All @@ -66,8 +66,10 @@
<data android:scheme="https" android:host="kitsu.io" android:pathPrefix="/users" />
<data android:scheme="https" android:host="kitsu.io" android:pathPrefix="/posts" />
<data android:scheme="https" android:host="kitsu.io" android:pathPrefix="/comments" />
<data android:scheme="https" android:host="kitsu.io" android:pathPrefix="/media-reactions" />
</intent-filter> -->
<data android:scheme="https" android:host="kitsu.io" android:pathPrefix="/feedback" />
<!-- Enable once we have media reactions -->
<!-- <data android:scheme="https" android:host="kitsu.io" android:pathPrefix="/media-reactions" /> -->
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
<meta-data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.everfox.animetrackerandroid;
import com.facebook.react.ReactActivity;
import com.reactnativenavigation.NavigationActivity;
import android.content.Intent;
import android.os.Bundle;
import com.crashlytics.android.Crashlytics;
import io.fabric.sdk.android.Fabric;

public class MainActivity extends ReactActivity {
public class MainActivity extends NavigationActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand All @@ -14,13 +14,15 @@ protected void onCreate(Bundle savedInstanceState) {
}

/**
* NOTE: DISABLED because React Native Navigation handles this automatically
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/

@Override
protected String getMainComponentName() {
return "kitsu_mobile";
}
*/

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.everfox.animetrackerandroid;

import android.app.Application;
import android.support.multidex.MultiDexApplication;
import android.support.multidex.MultiDex;
import android.content.Context;

import com.facebook.react.ReactApplication;
import io.sentry.RNSentryPackage;
import com.airship.customwebview.CustomWebViewPackage;
import com.dylanvann.fastimage.FastImageViewPackage;
Expand All @@ -14,6 +14,8 @@
import com.facebook.reactnative.androidsdk.FBSDKPackage;
import com.oblador.vectoricons.VectorIconsPackage;
import com.microsoft.codepush.react.CodePush;

import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
Expand All @@ -22,61 +24,81 @@
import com.facebook.FacebookSdk;
import com.facebook.reactnative.androidsdk.FBSDKPackage;
import com.facebook.appevents.AppEventsLogger;

import com.reactnativenavigation.NavigationApplication;
import com.reactnativenavigation.react.NavigationReactNativeHost;
import com.reactnativenavigation.react.ReactGateway;

import java.util.Arrays;
import java.util.List;

public class MainApplication extends MultiDexApplication implements ReactApplication {
public class MainApplication extends NavigationApplication {
private static CallbackManager mCallbackManager = CallbackManager.Factory.create();

protected static CallbackManager getCallbackManager() {
return mCallbackManager;
}

private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
public void onCreate() {
super.onCreate();
FacebookSdk.sdkInitialize(getApplicationContext());
// If you want to use AppEventsLogger to log events.
AppEventsLogger.activateApp(this);
SoLoader.init(this, /* native exopackage */ false);
}

@Override
protected String getJSMainModuleName() {
return "index";
}
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}

@Override
protected String getJSBundleFile() {
return CodePush.getJSBundleFile();
}
@Override
protected ReactGateway createReactGateway() {
ReactNativeHost host = new NavigationReactNativeHost(this, isDebug(), createAdditionalReactPackages()) {
@Override
protected String getJSMainModuleName() {
return "index";
}

@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected String getJSBundleFile() {
return CodePush.getJSBundleFile();
}

@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNSentryPackage(MainApplication.this),
new CustomWebViewPackage(),
new FastImageViewPackage(),
new PickerPackage(),
new ReactNativeOneSignalPackage(),
new ReactNativeYouTube(),
new LinearGradientPackage(),
new FBSDKPackage(mCallbackManager),
new VectorIconsPackage(),
new CodePush(getResources().getString(R.string.reactNativeCodePush_androidDeploymentKey), getApplicationContext(), BuildConfig.DEBUG)
);
}
};
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
};
return new ReactGateway(this, isDebug(), host);
}

@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
public boolean isDebug() {
return BuildConfig.DEBUG;
}

protected List<ReactPackage> getPackages() {
// Add additional packages you require here
// No need to add RnnPackage and MainReactPackage
return Arrays.<ReactPackage>asList(
new RNSentryPackage(MainApplication.this),
new CustomWebViewPackage(),
new FastImageViewPackage(),
new PickerPackage(),
new ReactNativeOneSignalPackage(),
new ReactNativeYouTube(),
new LinearGradientPackage(),
new FBSDKPackage(mCallbackManager),
new VectorIconsPackage(),
new CodePush(getResources().getString(R.string.reactNativeCodePush_androidDeploymentKey), getApplicationContext(), BuildConfig.DEBUG)
);
}

@Override
public void onCreate() {
super.onCreate();
FacebookSdk.sdkInitialize(getApplicationContext());
// If you want to use AppEventsLogger to log events.
AppEventsLogger.activateApp(this);
SoLoader.init(this, /* native exopackage */ false);
public List<ReactPackage> createAdditionalReactPackages() {
return getPackages();
}
}
30 changes: 21 additions & 9 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

buildscript {
repositories {
google()
mavenLocal()
mavenCentral()
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.android.tools.build:gradle:3.1.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -18,6 +17,8 @@ buildscript {

allprojects {
repositories {
google()
mavenCentral()
mavenLocal()
jcenter()
maven {
Expand All @@ -27,10 +28,6 @@ allprojects {

// jitpack repo is necessary to fetch ucrop dependency
maven { url "https://jitpack.io" }
maven {
url 'https://maven.google.com/'
name 'Google'
}

configurations.all {
resolutionStrategy {
Expand All @@ -44,3 +41,18 @@ allprojects {
}
}
}

subprojects { subproject ->
afterEvaluate {
if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
android {
variantFilter { variant ->
def names = variant.flavors*.name
if (names.contains("reactNative56") || names.contains("reactNative55")) {
setIgnore(true)
}
}
}
}
}
}
5 changes: 5 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

org.gradle.jvmargs=-Xmx1536M

android.useDeprecatedNdk=true

# Disable incremental resource processing as it broke release build
android.enableAapt2=false
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
2 changes: 2 additions & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
include ':react-native-code-push'
project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')
include ':react-native-navigation'
project(':react-native-navigation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation/lib/android/app/')

include ':app'
25 changes: 22 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { AppRegistry } from 'react-native';
import { Navigation } from 'react-native-navigation';
import { Sentry } from 'react-native-sentry';
import App from './src/App';
import { registerScreens, Layouts, defaultOptions } from 'kitsu/navigation';
import OneSignal from 'react-native-onesignal';

Sentry.config('https://068b9ab849bf4485beb4884adcc5be83:8c57373b9bb4410f99ebfd17878c739a@sentry.io/200469');

Expand All @@ -9,4 +10,22 @@ if (!__DEV__) {
Sentry.install();
}

AppRegistry.registerComponent('kitsu_mobile', () => App);
// Set notification display
OneSignal.inFocusDisplaying(2);

console.disableYellowBox = true;

// If you're using the debugging tools for React Native, the network tab is normally useless
// because it shows network activity to load the JS bundle only. This line causes it to
// use the dev tools XMLHttpRequest object if dev tools is running, making the network
// tab useful again. If dev tools isn't running, this will have no effect.
// NOTE: Disable this if you intend to upload files
GLOBAL.XMLHttpRequest = GLOBAL.originalXMLHttpRequest || GLOBAL.XMLHttpRequest;

registerScreens();

Navigation.events().registerAppLaunchedListener(() => {
Navigation.setDefaultOptions(defaultOptions);
Navigation.setRoot(Layouts.INITIAL);
});

Loading