buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:2.3.1' } } allprojects { repositories { jcenter() google() } } apply plugin: 'com.android.library' def DEFAULT_COMPILE_SDK_VERSION = 27 def DEFAULT_BUILD_TOOLS_VERSION = "27.0.3" def DEFAULT_TARGET_SDK_VERSION = 27 def DEFAULT_SUPPORT_LIB_VERSION = "27.1.1" def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION = "+" def DEFAULT_RETROFIT_VERSION = "2.4.0" android { compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION defaultConfig { minSdkVersion 16 targetSdkVersion project.hasProperty('targetSdkVersion') ? project.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION versionCode 1 versionName "1.0" ndk { abiFilters "armeabi-v7a", "x86" } } buildTypes { release { minifyEnabled false consumerProguardFiles 'proguard-rules.pro' } } } dependencies { def supportLibVersion = project.hasProperty('supportLibVersion') ? project.supportLibVersion : DEFAULT_SUPPORT_LIB_VERSION def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION def retrofitVersion = project.hasProperty('retrofitVersion') ? project.retrofitVersion : DEFAULT_RETROFIT_VERSION provided files('libs/amazon-device-messaging-1.0.1.jar') testCompile 'junit:junit:4.12' compile "com.android.support:appcompat-v7:$supportLibVersion" compile 'com.facebook.react:react-native:+' compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion" compile 'me.leolin:ShortcutBadger:1.1.22@aar' compile "com.google.code.gson:gson:2.8.4" compile "com.squareup.retrofit2:retrofit:$retrofitVersion" }