Commit f6596ada by 罗翻

环信替换为新版本,解决兼容性问题

parent a5717da9
...@@ -20,87 +20,90 @@ android { ...@@ -20,87 +20,90 @@ android {
arguments = [moduleName: project.getName()] arguments = [moduleName: project.getName()]
} }
} }
} ndk {
abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a','armeabi'
signingConfigs {
release {
keyAlias 'keybigfish'
keyPassword '123456789'
storeFile file('../../app_key.jks')
storePassword '123456789'
} }
}
buildTypes { signingConfigs {
release { release {
signingConfig android.signingConfigs.release keyAlias 'keybigfish'
minifyEnabled isReleaseMinify keyPassword '123456789'
shrinkResources isReleaseMinify //是否清理无用资源,依赖于minifyEnabled storeFile file('../../app_key.jks')
zipAlignEnabled isReleaseMinify //是否启用zipAlign压缩 storePassword '123456789'
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }
} }
debug { buildTypes {
signingConfig android.signingConfigs.release release {
minifyEnabled isDebugMinify signingConfig android.signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' minifyEnabled isReleaseMinify
shrinkResources isReleaseMinify //是否清理无用资源,依赖于minifyEnabled
zipAlignEnabled isReleaseMinify //是否启用zipAlign压缩
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
signingConfig android.signingConfigs.release
minifyEnabled isDebugMinify
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
} }
}
sourceSets { sourceSets {
main { main {
jniLibs.srcDirs = ['libs'] jniLibs.srcDirs = ['libs']
assets.srcDirs = ['src/main/assets', 'src/main/assets/'] assets.srcDirs = ['src/main/assets', 'src/main/assets/']
}
} }
}
aaptOptions { aaptOptions {
cruncherEnabled = false cruncherEnabled = false
useNewCruncher = false useNewCruncher = false
} }
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
dataBinding { dataBinding {
enabled = true enabled = true
} }
lintOptions { lintOptions {
abortOnError false abortOnError false
} }
dexOptions { dexOptions {
preDexLibraries = false preDexLibraries = false
}
} }
}
repositories { repositories {
flatDir { flatDir {
dirs 'libs' dirs 'libs'
}
} }
}
dependencies { dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs') compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
//ARouter //ARouter
annotationProcessor "com.alibaba:arouter-compiler:$arouter_compiler_version" annotationProcessor "com.alibaba:arouter-compiler:$arouter_compiler_version"
if (isMessageModule.toBoolean()) { if (isMessageModule.toBoolean()) {
compile project(':messageCenter') compile project(':messageCenter')
} }
if (isUserModule.toBoolean()) { if (isUserModule.toBoolean()) {
compile project(':userCenter') compile project(':userCenter')
} }
if (isOrderModule.toBoolean()) { if (isOrderModule.toBoolean()) {
compile project(':orderCenter') compile project(':orderCenter')
} }
// compile(name: 'orderCenter-debug', ext: 'aar') // compile(name: 'orderCenter-debug', ext: 'aar')
// compile(name: 'userCenter-debug', ext: 'aar') // compile(name: 'userCenter-debug', ext: 'aar')
// compile(name: 'messageCenter-debug', ext: 'aar') // compile(name: 'messageCenter-debug', ext: 'aar')
// compile(name: 'provider-debug', ext: 'aar') // compile(name: 'provider-debug', ext: 'aar')
// compile(name: 'baseSDK-debug', ext: 'aar') // compile(name: 'baseSDK-debug', ext: 'aar')
} }
}
\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
android.useDeprecatedNdk=true
##模块化开关,单独调试时 false,作为模块 true ##模块化开关,单独调试时 false,作为模块 true
##用户模块 ##用户模块
isUserModule=true isUserModule=true
...@@ -7,4 +8,4 @@ isMessageModule=true ...@@ -7,4 +8,4 @@ isMessageModule=true
isOrderModule=true isOrderModule=true
##maven依赖 ##maven依赖
mavenMode=false mavenMode=false
BASE_URL=http://47.94.101.239:3112 BASE_URL=http://47.94.101.239:3112
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment