build.gradle 1.64 KB
Newer Older
Libin Lu's avatar
init  
Libin Lu committed
1 2
apply plugin: 'com.android.library'

3 4 5
def DEFAULT_COMPILE_SDK_VERSION             = 27
def DEFAULT_BUILD_TOOLS_VERSION             = "27.0.3"
def DEFAULT_TARGET_SDK_VERSION              = 27
Windham Wong's avatar
Windham Wong committed
6 7 8
def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION    = "+"
def DEFAULT_FIREBASE_CORE_VERSION           = "+"
def DEFAULT_FIREBASE_MESSAGING_VERSION      = "+"
9

Libin Lu's avatar
init  
Libin Lu committed
10
android {
11 12
    compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
    buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
Libin Lu's avatar
init  
Libin Lu committed
13 14 15

    defaultConfig {
        minSdkVersion 16
Libin Lu's avatar
Libin Lu committed
16
        targetSdkVersion project.hasProperty('targetSdkVersion') ? project.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
Libin Lu's avatar
init  
Libin Lu committed
17 18 19 20 21
        versionCode 1
        versionName "1.0"
    }
}

22 23 24 25
repositories {
    mavenCentral()
}

Libin Lu's avatar
init  
Libin Lu committed
26
dependencies {
27
    def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
28 29
    def firebaseCoreVersion = project.hasProperty('firebaseCoreVersion') ? project.firebaseCoreVersion : DEFAULT_FIREBASE_CORE_VERSION
    def firebaseMessagingVersion = project.hasProperty('firebaseMessagingVersion') ? project.firebaseMessagingVersion : DEFAULT_FIREBASE_MESSAGING_VERSION
30

Libin Lu's avatar
init  
Libin Lu committed
31
    compile fileTree(include: ['*.jar'], dir: 'libs')
Libin Lu's avatar
Libin Lu committed
32
    compile 'com.facebook.react:react-native:+'
33 34
    compile "com.google.firebase:firebase-core:$firebaseCoreVersion"
    compile "com.google.firebase:firebase-messaging:$firebaseMessagingVersion"
Libin Lu's avatar
Libin Lu committed
35
    compile 'me.leolin:ShortcutBadger:1.1.17@aar'
36
    compile "com.android.support:support-core-utils:27.1.1"
Libin Lu's avatar
init  
Libin Lu committed
37
}