From 493d76f67a5aa67ec17039717fc572b4b52e3675 Mon Sep 17 00:00:00 2001 From: prameetc Date: Fri, 15 Mar 2019 21:03:39 +0530 Subject: [PATCH 1/3] Added JS Bundle for Codepush --- android/app/src/main/java/co/bitnation/MainApplication.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/app/src/main/java/co/bitnation/MainApplication.java b/android/app/src/main/java/co/bitnation/MainApplication.java index d63df4f05..7f2bed68d 100644 --- a/android/app/src/main/java/co/bitnation/MainApplication.java +++ b/android/app/src/main/java/co/bitnation/MainApplication.java @@ -16,6 +16,11 @@ public class MainApplication extends NavigationApplication { + @Override + protected String getJSBundleFile() { + return CodePush.getJSBundleFile(); + } + @Override public boolean isDebug() { // Make sure you are using BuildConfig from your own application From c582aba5ea1e4fd9d335b2645f03992f7804b3de Mon Sep 17 00:00:00 2001 From: prameetc Date: Fri, 15 Mar 2019 21:24:36 +0530 Subject: [PATCH 2/3] Added Codepush JSBundle code --- .../src/main/java/co/bitnation/MainApplication.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/android/app/src/main/java/co/bitnation/MainApplication.java b/android/app/src/main/java/co/bitnation/MainApplication.java index 7f2bed68d..636b6dadf 100644 --- a/android/app/src/main/java/co/bitnation/MainApplication.java +++ b/android/app/src/main/java/co/bitnation/MainApplication.java @@ -16,11 +16,6 @@ public class MainApplication extends NavigationApplication { - @Override - protected String getJSBundleFile() { - return CodePush.getJSBundleFile(); - } - @Override public boolean isDebug() { // Make sure you are using BuildConfig from your own application @@ -47,6 +42,12 @@ public List createAdditionalReactPackages() { return getPackages(); } + @Override + public String getJSBundleFile() { + // Override default getJSBundleFile method with the one CodePush is providing + return CodePush.getJSBundleFile(); + } + @Override public String getJSMainModuleName() { return "index"; From 7012fed865aa5ccb516d374c59b3bf95d3d3d18b Mon Sep 17 00:00:00 2001 From: prameetc Date: Fri, 15 Mar 2019 21:40:36 +0530 Subject: [PATCH 3/3] Codepush test --- src/screens/Services/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/Services/view.js b/src/screens/Services/view.js index f75816406..dc3885169 100644 --- a/src/screens/Services/view.js +++ b/src/screens/Services/view.js @@ -124,7 +124,7 @@ const ServicesScreen = ({ desText='Tailor make your own governance system through choosing dapps, contracts, services and products!' options={[ { - text: 'Start a new Service', + text: 'Start a New Service', onPress: () => { setShowModal(''); setIsShowWebViewModal(true);