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

Libin Lu's avatar
Libin Lu committed
3
def DEFAULT_COMPILE_SDK_VERSION             = 26
4
def DEFAULT_BUILD_TOOLS_VERSION             = "25.0.2"
Libin Lu's avatar
Libin Lu committed
5 6
def DEFAULT_TARGET_SDK_VERSION              = 26
def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION    = "12.+"
7

Libin Lu's avatar
init  
Libin Lu committed
8
android {
9 10
    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
11 12 13

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

20 21 22 23
repositories {
    mavenCentral()
}

Libin Lu's avatar
init  
Libin Lu committed
24
dependencies {
25 26
    def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION

Libin Lu's avatar
init  
Libin Lu committed
27
    compile fileTree(include: ['*.jar'], dir: 'libs')
Libin Lu's avatar
Libin Lu committed
28
    compile 'com.facebook.react:react-native:+'
29 30
    compile "com.google.firebase:firebase-core:$googlePlayServicesVersion"
    compile "com.google.firebase:firebase-messaging:$googlePlayServicesVersion"
Libin Lu's avatar
Libin Lu committed
31
    compile 'me.leolin:ShortcutBadger:1.1.17@aar'
Libin Lu's avatar
Libin Lu committed
32
    compile "com.android.support:support-core-utils:26.1.0"
Libin Lu's avatar
init  
Libin Lu committed
33
}
34