Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 36b3e73

Browse files
committed
android can work
1 parent 4cc5340 commit 36b3e73

File tree

6 files changed

+10
-107
lines changed

6 files changed

+10
-107
lines changed

android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ import com.android.build.OutputFile
6666
*/
6767

6868
apply from: "../../node_modules/react-native/react.gradle"
69+
apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"
6970

7071
/**
7172
* Set this to true to create two separate APKs instead of one:

android/app/proguard-rules.pro

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@
2626
# See http://sourceforge.net/p/proguard/bugs/466/
2727
-keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
2828
-keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29+
-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
2930

3031
# Do not strip any method/class that is annotated with @DoNotStrip
3132
-keep @com.facebook.proguard.annotations.DoNotStrip class *
33+
-keep @com.facebook.common.internal.DoNotStrip class *
3234
-keepclassmembers class * {
3335
@com.facebook.proguard.annotations.DoNotStrip *;
36+
@com.facebook.common.internal.DoNotStrip *;
3437
}
3538

3639
-keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
@@ -51,17 +54,13 @@
5154

5255
-keepattributes Signature
5356
-keepattributes *Annotation*
54-
-keep class com.squareup.okhttp.** { *; }
55-
-keep interface com.squareup.okhttp.** { *; }
56-
-dontwarn com.squareup.okhttp.**
57+
-keep class okhttp3.** { *; }
58+
-keep interface okhttp3.** { *; }
59+
-dontwarn okhttp3.**
5760

5861
# okio
5962

6063
-keep class sun.misc.Unsafe { *; }
6164
-dontwarn java.nio.file.*
6265
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
6366
-dontwarn okio.**
64-
65-
# stetho
66-
67-
-dontwarn com.facebook.stetho.**

android/app/react.gradle

Lines changed: 0 additions & 97 deletions
This file was deleted.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected String getJSBundleFile() {
3535
protected List<ReactPackage> getPackages() {
3636
return Arrays.<ReactPackage>asList(
3737
new MainReactPackage(),
38-
new CodePush("Q2A8khx6JV4mXXcS0usR0LipDz0Y410YoZxlZ", this, BuildConfig.DEBUG),
38+
new CodePush("Q2A8khx6JV4mXXcS0usR0LipDz0Y410YoZxlZ", MainApplication.this, BuildConfig.DEBUG),
3939
new VectorIconsPackage(),
4040
new RCTCameraPackage(),
4141
new BarcodeScannerPackage()

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ allprojects {
1818
jcenter()
1919
maven {
2020
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21-
url "$projectDir/../../node_modules/react-native/android"
21+
url "$rootDir/../node_modules/react-native/android"
2222
}
2323
}
2424
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"react-native-button": "^1.6.0",
3737
"react-native-camera": "git+https://github.com/lwansbrough/react-native-camera.git",
3838
"react-native-cli": "^1.0.0",
39-
"react-native-code-push": "^1.12.2-beta",
39+
"react-native-code-push": "^2.1.1-beta",
4040
"react-native-html-render": "^1.0.5",
4141
"react-native-scrollable-tab-view": "^0.5.1",
4242
"react-native-vector-icons": "^2.0.3",

0 commit comments

Comments
 (0)