123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- apply plugin: 'com.android.application'
- def static getGitVersion() {
- try {
- return 'git rev-parse --short HEAD'.execute().text.trim()
- } catch (Throwable th) {
- return "";
- }
- }
- android {
- compileSdkVersion 25
- buildToolsVersion '25.0.3'
- defaultConfig {
- applicationId "com.sheishuo.app"
- minSdkVersion rootProject.ext.minSdkVersion
- targetSdkVersion rootProject.ext.targetSdkVersion
- buildConfigField "String", "GIT_REVISION", "\"${getGitVersion()}\""
- buildConfigField "String", "BUILD_DATE", "\"${new Date().toLocaleString()}\"";
- multiDexEnabled true
- ndk {
- abiFilters "arm64-v8a", "armeabi-v7a", "x86", "x86_64"
- }
- }
- signingConfigs {
- debug { storeFile file("debug.keystore") }
- release {
- storeFile file('release.keystore')
- storePassword 'thisiskeystorepassword'
- keyAlias 'nim_demo'
- keyPassword 'thisiskeypassword'
- }
- }
- buildTypes {
- debug {
- signingConfig signingConfigs.debug
- manifestPlaceholders = [AMAP_KEY: "09fd4efd3e28e9bf1f449ecec7d34bfe"]
- }
- release {
- shrinkResources true
- minifyEnabled true
- zipAlignEnabled true
- proguardFile('proguard.cfg')
- signingConfig signingConfigs.release
- manifestPlaceholders = [AMAP_KEY: "ee20324fba1c7f4ad7a4a207e7f08e8d"]
- }
- }
- sourceSets {
- main {
- manifest.srcFile 'AndroidManifest.xml'
- java.srcDirs = ['src']
- resources.srcDirs = ['src']
- aidl.srcDirs = ['src']
- renderscript.srcDirs = ['src']
- res.srcDirs = ['res', 'res-avchat', 'res-chatroom']
- assets.srcDirs = ['assets']
- jniLibs.srcDirs = ['libs', 'libs-sdk']
- }
- }
- lintOptions {
- checkReleaseBuilds false
- abortOnError false
- }
- dexOptions {
- preDexLibraries false
- jumboMode true
- javaMaxHeapSize "4g"
- }
- packagingOptions {
- exclude 'META-INF/LICENSE.txt'
- exclude 'META-INF/NOTICE.txt'
- exclude 'META-INF/rxjava.properties'
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_7
- targetCompatibility JavaVersion.VERSION_1_7
- }
- }
- repositories {
- flatDir {
- dirs 'aars'
- }
- }
- dependencies {
- compile fileTree(include: '*.jar', dir: 'libs')
- compile(name: 'HMS-SDK-2.4.0.300', ext: 'aar')
- compile project(path: ':uikit')
- compile 'com.netease.nimlib:jsbridge:1.3.1'
- compile 'com.android.support:multidex:1.0.1'
- compile 'com.android.support:support-annotations:25.3.1'
- //RxJava 2 & RxAndroid
- compile 'io.reactivex.rxjava2:rxjava:2.1.1'
- compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
- //Gson
- compile 'com.google.code.gson:gson:2.8.1'
- //Retrofit
- compile 'com.squareup.retrofit2:retrofit:2.3.0'
- compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
- compile 'com.squareup.retrofit2:converter-gson:2.3.0'
- //debugCompile project(':plugins:sf')
- //CardView
- compile 'com.android.support:cardview-v7:25.1.1'
- }
|