Skip to content

Commit 3f27b2d

Browse files
fixed the braces,removed the deprecated jcenter
1 parent 825ef62 commit 3f27b2d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

android/build.gradle

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22
import groovy.json.JsonSlurper
33

44
def DEFAULT_COMPILE_SDK_VERSION = 29
5-
def DEFAULT_MIN_SDK_VERSION = 21
5+
def DEFAULT_MIN_SDK_VERSION = 16
66
def DEFAULT_TARGET_SDK_VERSION = 29
77

88
def getNpmVersion() {
@@ -23,29 +23,29 @@ repositories {
2323
url "$rootDir/../node_modules/jsc-android/dist"
2424
}
2525
google()
26-
jcenter()
2726
}
2827

2928
def 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

Comments
 (0)