Skip to content

Commit effd1b2

Browse files
committed
Adding multiple Fixes for Android
1 parent bd82b4e commit effd1b2

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def enableProguardInReleaseBuilds = false
9595

9696
android {
9797
compileSdkVersion 25
98-
buildToolsVersion "25.0.1"
98+
buildToolsVersion "26.0.2"
9999

100100
defaultConfig {
101101
applicationId "com.reduxtemplate"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
package com.reduxtemplate;
2+
13
import com.reactnativenavigation.controllers.SplashActivity;
24

35
public class MainActivity extends SplashActivity {
46

7+
/**
8+
* Returns the name of the main component registered from JavaScript.
9+
* This is used to schedule rendering of the component.
10+
*/
11+
12+
protected String getMainComponentName() {
13+
return "reduxTemplate";
14+
}
515
}

android/app/src/main/java/com/reduxtemplate/MainApplication.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
package com.reduxtemplate;
2+
3+
import com.facebook.react.ReactApplication;
4+
import com.facebook.react.ReactPackage;
5+
import com.facebook.react.shell.MainReactPackage;
16
import com.reactnativenavigation.NavigationApplication;
27

8+
import java.util.Arrays;
9+
import java.util.List;
10+
311
public class MainApplication extends NavigationApplication {
412

513
@Override

android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
buildscript {
44
repositories {
55
jcenter()
6+
google()
67
}
78
dependencies {
89
classpath 'com.android.tools.build:gradle:3.0.1'

0 commit comments

Comments
 (0)