build.gradle 5.1 KB
apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '23.0.1'

    dexOptions {
        javaMaxHeapSize "4g"
    }

    defaultConfig {
        applicationId "com.ivt.android.me"
        minSdkVersion 11
        targetSdkVersion 22
        versionCode 7
        versionName "1.0.8"
        multiDexEnabled true

    }

    signingConfigs {
        //debug版本不签名
        debug {
            storeFile file("./Mekey.keystore")
            storePassword KEYSTORE_PASSWORD
            keyAlias KEY_ALIAS
            keyPassword KEY_PASSWORD
        }
        //release版本签名信息
        release {
            try {
                storeFile file("./Mekey.keystore")
                storePassword KEYSTORE_PASSWORD
                keyAlias KEY_ALIAS
                keyPassword KEY_PASSWORD
            } catch (ex) {
                throw new InvalidUserDataException("You should define KEYSTORE_PASSWORD and KEY_PASSWORD in gradle.properties.");
            }
        }

    }

    buildTypes {

        //debug版本编译是配置
        debug {
            // 显示Log
            buildConfigField "boolean", "LOG_DEBUG", "true"

            multiDexEnabled true
            debuggable true
//            versionNameSuffix ""
            minifyEnabled false
            zipAlignEnabled false
            shrinkResources false
            signingConfig signingConfigs.debug
        }

        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    sourceSets {
        main {
            jniLibs.srcDir 'src/main/libs'
        }
    }
}

task nativeLibsToJar(type: Zip, description: "create a jar archive of the native libs") {
    destinationDir file("$projectDir/libs")
    baseName "Native_Libs"
    extension "jar"
    from fileTree(dir: "libs", include: "**/*.so")
    into "lib"
}

tasks.withType(JavaCompile) {
    compileTask -> compileTask.dependsOn(nativeLibsToJar)
}


dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    provided files('runtime/MiguSDK2.0_203.jar')
    //    compile files('libs/commons-codec-1.6.jar')

    //    compile files('libs/commons-logging-1.1.3.jar')

    //    compile files('libs/eventbus-2.4.0.jar')

    //    compile files('libs/gson-2.7.jar')

    //    compile files('libs/ksylive3.0.jar')

    //    compile files('libs/libammsdk.jar')

    //    compile files('libs/libksyplayer.jar')

    //    compile files('libs/libksystat.jar')

    //    compile files('libs/MarsorUtils-1.0.0-SNAPSHOT.jar')

    //    compile files('libs/okhttp-3.4.1.jar')

    //    compile files('libs/okio-1.4.0.jar')

    //    compile files('libs/open_sdk_r5509.jar')

    //    compile files('libs/picasso-2.5.2.jar')

    //    compile files('libs/umeng_social_sdk.jar')

    //    compile files('libs/xUtils-2.6.14.jar')

    //    compile files('libs/volley.jar')

    //    compile files('libs/cling-core-1.0.5.jar')

    //    compile files('libs/cling-support-1.0.5.jar')

    //    compile files('libs/universal-image-loader-1.9.3.jar')

    //    compile files('libs/Vitamio-4.2.2.jar')

    //    compile files('libs/httpmime-4.1.3.jar')

    //    compile files('libs/ShareSDK-Core-2.5.7.jar')

    //    compile files('libs/ShareSDK-QZone-2.5.7.jar')

    //    compile files('libs/ShareSDK-Wechat-2.5.7.jar')

    //    compile files('libs/ShareSDK-Wechat-Core-2.5.7.jar')

    //    compile files('libs/ShareSDK-Wechat-Favorite-2.5.7.jar')

    //    compile files('libs/ShareSDK-Wechat-Moments-2.5.7.jar')

    //    compile files('libs/greendao-1.3.7.jar')

    //    compile files('libs/umeng-analytics-v5.2.4.jar')

    //    compile files('libs/umeng-fb-v4.3.2.jar')

    //    compile files('libs/umeng-update-v2.4.2.jar')

    //    compile files('libs/zxing-javase.jar')

    //        compile files('libs/alipaySdk-20160516.jar')

    //    compile files('libs/android-async-http-1.4.8.jar')

    //    compile files('libs/fastjson-1.1.43.android.jar')

    //    compile files('libs/asmack-jse-buddycloud-2010.12.11.jar')

    //    compile files('libs/CmVideoSdk_ss2.0_preview_201607051427.jar')

    //    compile files('libs/ShareSDK-SinaWeibo-2.5.7.jar')

    //    compile files('libs/jpush-android-2.1.3.jar')

    //    compile files('libs/CmVideoSdk_parnter_1.1_生产_303300260000000_20161028153250.jar')
    compile files('libs/ormlite-android-4.47.jar')
    compile files('libs/ormlite-core-4.47.jar')
    compile files('libs/greendao-1.3.7.jar')
    compile files('libs/peplayerinterface.jar')
    compile 'com.google.code.gson:gson:2.3'
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:1.0.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.android.support:recyclerview-v7:23.4.0'
    compile 'de.greenrobot:eventbus:2.4.0'
    compile 'com.android.support:support-v4:23.4.0'
    //    compile files('libs/libcnliveanalytics.jar')
    //    compile files('libs/libcnliveutil.jar')
    //    compile files('libs/libcnliveanalytics.jar')
    //    compile files('libs/libcnliveutil.jar')
}