@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22import groovy.json.JsonSlurper
33
44def DEFAULT_COMPILE_SDK_VERSION = 29
5- def DEFAULT_MIN_SDK_VERSION = 21
5+ def DEFAULT_MIN_SDK_VERSION = 16
66def DEFAULT_TARGET_SDK_VERSION = 29
77
88def getNpmVersion () {
@@ -23,29 +23,29 @@ repositories {
2323 url " $rootDir /../node_modules/jsc-android/dist"
2424 }
2525 google()
26- jcenter()
2726}
2827
2928def safeExtGet (prop , fallback ) {
3029 rootProject. ext. has(prop) ? rootProject. ext. get(prop) : fallback
30+ }
3131// Top-level build file where you can add configuration options common to all sub-projects/modules.
3232
33- android {
34- compileSdkVersion safeExtGet(' compileSdkVersion' , DEFAULT_COMPILE_SDK_VERSION )
33+ android {
34+ compileSdkVersion safeExtGet(' compileSdkVersion' , DEFAULT_COMPILE_SDK_VERSION )
3535
36- defaultConfig {
37- minSdkVersion safeExtGet(' minSdkVersion' , DEFAULT_MIN_SDK_VERSION )
38- targetSdkVersion safeExtGet(' targetSdkVersion' , DEFAULT_TARGET_SDK_VERSION )
36+ defaultConfig {
37+ minSdkVersion safeExtGet(' minSdkVersion' , DEFAULT_MIN_SDK_VERSION )
38+ targetSdkVersion safeExtGet(' targetSdkVersion' , DEFAULT_TARGET_SDK_VERSION )
3939
40- versionCode 1
41- versionName " 1.0"
40+ versionCode 1
41+ versionName " 1.0"
4242
43- buildConfigField(" String" , " RNBRANCH_VERSION" , " \" ${ getNpmVersion()} \" " )
43+ buildConfigField(" String" , " RNBRANCH_VERSION" , " \" ${ getNpmVersion()} \" " )
44+ }
4445 }
45- }
4646
47- dependencies {
48- implementation ' androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
49- implementation ' com.facebook.react:react-native:+' // From node_modules
50- api ' io.branch.sdk.android:library:5.1.5'
51- }
47+ dependencies {
48+ implementation ' androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
49+ implementation ' com.facebook.react:react-native:+' // From node_modules
50+ api ' io.branch.sdk.android:library:5.1.5'
51+ }
0 commit comments