Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,21 @@ def computeQQAppId() {
def json = slurper.parse(file('../../../package.json'), "utf-8")
return json.qq_app_id
}

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

apply plugin: 'com.android.library'

android {
compileSdkVersion 23
buildToolsVersion "25.0.0"
compileSdkVersion safeExtGet('compileSdkVersion', 23)
buildToolsVersion safeExtGet('buildToolsVersion', '25.0.0')

defaultConfig {
minSdkVersion 16
targetSdkVersion 24
minSdkVersion safeExtGet('minSdkVersion', 16)
targetSdkVersion safeExtGet('targetSdkVersion', 24)

versionCode 1
versionName computeVersionName()
manifestPlaceholders = [
Expand All @@ -36,6 +42,6 @@ repositories {
}

dependencies {
compile "com.facebook.react:react-native:+"
compile fileTree(dir: 'libs', include: ['*.jar'])
implementation "com.facebook.react:react-native:+"
implementation fileTree(dir: 'libs', include: ['*.jar'])
}