|
- apply plugin: 'com.android.application'
-
- android {
- compileSdkVersion 22
- buildToolsVersion "22.0.1"
-
- defaultConfig {
- applicationId "com.zzcx.xmdriver2"
- minSdkVersion 15
- targetSdkVersion 22
- versionCode 2
- versionName "2.0"
-
- ndk {
- //选择要添加的对应cpu类型的.so库。
- abiFilters 'armeabi', 'armeabi-v7a', 'armeabi-v8a'
- // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
- }
-
- //极光推送测试:276a46fa9ab87d4a02a270ec
- //极光推送正式环境:02d54f12a09002cd7bda5161
- manifestPlaceholders = [
- JPUSH_PKGNAME : applicationId,
- JPUSH_APPKEY : "276a46fa9ab87d4a02a270ec", //JPush上注册的包名对应的appkey.
- JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
- ]
-
- }
- packagingOptions {
- exclude 'META-INF/maven/com.belerweb/pinyin4j/pom.xml'
- exclude 'META-INF/maven/com.belerweb/pinyin4j/pom.properties'
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
-
- }
- task nativeLibsToJar(type: Zip, description: "create a jar archive of the native libs") {
- destinationDir file("src/main/libs")
- baseName "Native_Libs2"
- extension "jar"
- from fileTree(dir: "src/main/libs", include: "**/*.so")
- into "lib"
- }
- tasks.withType(JavaCompile) {
- compileTask -> compileTask.dependsOn(nativeLibsToJar)
- }
-
-
-
- packagingOptions{
- exclude'META-INF/DEPENDENCIES.txt'
- exclude'META-INF/LICENSE.txt'
- exclude'META-INF/NOTICE.txt'
- exclude'META-INF/NOTICE'
- exclude'META-INF/LICENSE'
- exclude'META-INF/DEPENDENCIES'
- exclude'META-INF/notice.txt'
- exclude'META-INF/license.txt'
- exclude'META-INF/dependencies.txt'
- exclude'META-INF/LGPL2.1'
- }
- sourceSets{
- main{
- jniLibs.srcDir(['libs'])
- }
- }
- }
-
- dependencies {
- compile fileTree(include: ['*.jar'], dir: 'src/main/libs')
- //compile fileTree(include: ['*.jar'], dir: 'libs')
- testCompile 'junit:junit:4.12'
- compile 'com.google.android.gms:play-services-appindexing:8.1.0'
- compile files('src/main/libs/simple_eventbus.jar')
- compile files('src/main/libs/AMap_Location_V2.4.1_20160414.jar')
- compile files('src/main/jniLibs/AMap3DMap_3.3.3_AMapNavi_1.9.1_20160726.jar')
- compile 'com.android.support:appcompat-v7:22.2.0'
- compile 'com.android.support:design:22.2.0'
- compile 'com.github.bumptech.glide:glide:3.6.0'
- compile 'de.hdodenhof:circleimageview:1.3.0'
- compile 'com.android.support:recyclerview-v7:22.2.0'
- compile 'com.github.jalasoft:HttpClient:1.0.5'
- compile files('src/main/java/jniLibs/AMap3DMap_3.3.3_AMapNavi_1.9.1_20160726.jar')
- compile 'com.alibaba:fastjson:1.2.20'
- compile files('libs/AMap_Location_V3.1.0_20161027.jar')
- compile files('libs/AMap_Search_V3.6.0_20161110.jar')
- compile files('libs/Android_Map3D_SDK_V4.1.2_20161104.jar')
- compile files('libs/Volley.jar')
- compile 'cn.jiguang:jpush:2.1.8' // 极光推送,此处以SDK 2.1.8版本为例
-
-
- }
|