File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,10 +62,16 @@ repositories {
6262 google()
6363}
6464
65+ def isInDevelopment = project. hasProperty(' CodePush_development' ) && project. property(' CodePush_development' ) == " true"
66+
6567dependencies {
66- // For < 0.71, this will be from the local maven repo
67- // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
68- // noinspection GradleDynamicVersion
69- implementation " com.facebook.react:react-native:+"
68+ if (isInDevelopment) {
69+ implementation(" com.facebook.react:react-android:0.71.+" )
70+ } else {
71+ // For < 0.71, this will be from the local maven repo
72+ // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
73+ // noinspection GradleDynamicVersion
74+ implementation " com.facebook.react:react-native:+"
75+ }
7076 implementation " com.nimbusds:nimbus-jose-jwt:9.37.3"
7177}
Original file line number Diff line number Diff line change 11CodePush_minSdkVersion =16
22CodePush_targetSdkVersion =31
33CodePush_compileSdkVersion =31
4+ # CodePush_development=true # enable this when developing on the module outside a React Native app
You can’t perform that action at this time.
0 commit comments