1apply plugin: 'com.android.library' 2 3description = "gRPC: Cronet Android" 4 5buildscript { 6 repositories { 7 google() 8 jcenter() 9 } 10 dependencies { classpath 'com.android.tools.build:gradle:3.0.1' } 11} 12 13allprojects { 14 repositories { 15 google() 16 jcenter() 17 mavenLocal() 18 } 19} 20 21android { 22 compileSdkVersion 27 23 defaultConfig { 24 minSdkVersion 14 25 targetSdkVersion 27 26 versionCode 1 27 versionName "1.0" 28 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 29 } 30 buildTypes { 31 debug { minifyEnabled false } 32 release { 33 minifyEnabled true 34 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 35 } 36 } 37 testOptions { unitTests { includeAndroidResources = true } } 38 lintOptions { disable 'InvalidPackage' } 39} 40 41dependencies { 42 implementation 'io.grpc:grpc-core:1.16.0-SNAPSHOT' // CURRENT_GRPC_VERSION 43 testImplementation 'io.grpc:grpc-testing:1.16.0-SNAPSHOT' // CURRENT_GRPC_VERSION 44 45 implementation "org.chromium.net:cronet-embedded:66.3359.158" 46 47 testImplementation 'junit:junit:4.12' 48 testImplementation 'org.mockito:mockito-core:1.10.19' 49 testImplementation "org.robolectric:robolectric:3.5.1" 50} 51