Skip to content

Commit 413e797

Browse files
committed
feat: update CodePush package instance initialization for debug flag handling
1 parent ee9e826 commit 413e797

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

react-native.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ module.exports = {
22
dependency: {
33
platforms: {
44
android: {
5+
packageImportPath:
6+
"import com.microsoft.codepush.react.CodePush;",
57
packageInstance:
6-
"CodePush.getInstance(getResources().getString(R.string.CodePushDeploymentKey), getApplicationContext(), BuildConfig.DEBUG)",
8+
"CodePush.getInstance(getResources().getString(R.string.CodePushDeploymentKey), getApplicationContext(), (0 != (getApplicationContext().getApplicationInfo().flags & android.content.pm.ApplicationInfo.FLAG_DEBUGGABLE)))",
79
sourceDir: './android/app',
810
}
911
}

0 commit comments

Comments
 (0)