UNPKG

2.08 kBPlain TextView Raw
1buildscript {
2 repositories {
3 jcenter()
4 google()
5 }
6 dependencies {
7 classpath 'com.android.tools.build:gradle:2.3.1'
8 }
9}
10
11allprojects {
12 repositories {
13 jcenter()
14 google()
15 }
16}
17
18apply plugin: 'com.android.library'
19
20def DEFAULT_COMPILE_SDK_VERSION = 27
21def DEFAULT_BUILD_TOOLS_VERSION = "27.0.3"
22def DEFAULT_TARGET_SDK_VERSION = 27
23def DEFAULT_SUPPORT_LIB_VERSION = "27.1.1"
24def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION = "+"
25def DEFAULT_RETROFIT_VERSION = "2.4.0"
26
27android {
28 compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
29 buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
30
31 defaultConfig {
32 minSdkVersion 16
33 targetSdkVersion project.hasProperty('targetSdkVersion') ? project.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
34 versionCode 1
35 versionName "1.0"
36 ndk {
37 abiFilters "armeabi-v7a", "x86"
38 }
39 }
40 buildTypes {
41 release {
42 minifyEnabled false
43 consumerProguardFiles 'proguard-rules.pro'
44 }
45 }
46}
47
48dependencies {
49 def supportLibVersion = project.hasProperty('supportLibVersion') ? project.supportLibVersion : DEFAULT_SUPPORT_LIB_VERSION
50 def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
51 def retrofitVersion = project.hasProperty('retrofitVersion') ? project.retrofitVersion : DEFAULT_RETROFIT_VERSION
52
53 provided files('libs/amazon-device-messaging-1.0.1.jar')
54 testCompile 'junit:junit:4.12'
55 compile "com.android.support:appcompat-v7:$supportLibVersion"
56 compile 'com.facebook.react:react-native:+'
57 compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
58 compile 'me.leolin:ShortcutBadger:1.1.22@aar'
59 compile "com.google.code.gson:gson:2.8.4"
60 compile "com.squareup.retrofit2:retrofit:$retrofitVersion"
61
62}