build.gradle 4.69 KB
apply plugin: 'com.android.application'
apply plugin: 'com.mob.sdk'
apply plugin: 'bugly'

bugly {
    appId = '854e85beee' // 注册时分配的App ID
    appKey = 'fd62b5b0-4fe1-4bc9-8948-e1bfadb94bbf' // 注册时分配的App Key
}
android {
    compileSdkVersion 26
    buildToolsVersion "27.0.0"

    defaultConfig {
        manifestPlaceholders = [appLabel: "@string/app_name"]
        applicationId "com.chudiangameplay.android"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode rootProject.ext.versionCode
        versionName rootProject.ext.versionName
        multiDexEnabled true
//        ndk {
//            //设置支持的SO库架构
//            abiFilters  'x86', 'armeabi-v7a', 'arm64-v8a'
//        }

//        ndk {
//            // 加了其他的文件夹(比如 armeabi-v7a,x86等)可能会出问题
//            abiFilters "armeabi-v7a"  //,"x86"
//        }

        ndk {
            abiFilters "armeabi", "armeabi-v7a"
        }

        javaCompileOptions {
            annotationProcessorOptions {
                arguments = [moduleName: project.getName()]
            }
        }
    }

    signingConfigs {
        release {
            storeFile file('peiwan.jks')
            storePassword '123456'
            keyAlias 'peiwan'
            keyPassword '123456'
        }
        debug {
            storeFile file('peiwan.jks')
            storePassword '123456'
            keyAlias 'peiwan'
            keyPassword '123456'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }

    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
        }
    }
    repositories {
        flatDir {
            dirs 'libs'
            dirs project(':hmspush').file('libs')
        }
    }

    buildTypes {
        release {
            manifestPlaceholders = [
                    bugly_app_version: rootProject.ext.versionName,
                    EASEMOB_APPKEY   : "1183180421228734#game-play"
            ]

            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }
        debug {
            manifestPlaceholders = [
                    bugly_app_version: rootProject.ext.versionName + "debug",
                    EASEMOB_APPKEY   : "1183180421228734#game-test"
            ]

            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
//            signingConfig signingConfigs.release
        }
    }
    productFlavors {
        OFFICIAL {
            manifestPlaceholders = [appLabel: "@string/app_name"]
        }
        OPPO {
            manifestPlaceholders = [appLabel: "@string/app_name_oppo"]
        }
        HUAWEI {
            manifestPlaceholders = [appLabel: "@string/app_name_huawei"]
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile project(':mylibrary')
    //    compile project(':imlib')
    compile project(':imagecrop')
    compile project(':emojicon')
    compile project(':pullToRefresh')
    compile project(':videoplayerlib')
    compile project(':player:aliyunPlayer')
    compile project(':netdiag')
    compile files('libs/org.apache.http.legacy.jar')
    //视频截帧
    compile files('libs/OpenInstall_v2.2.2.jar')
    compile files('libs/hyphenatechat_3.5.5.jar')
    compile files('libs/mi_push_v3.6.12.jar')
    compile files('libs/oppo_push_v1.0.1.jar')
    //    compile files('libs/vivo_push_v2.3.1.jar') //vivo证书申请不了
    compile project(':hmspush')
    compile 'com.github.wseemann:FFmpegMediaMetadataRetriever:1.0.14'
    compile 'com.tencent.bugly:crashreport:3.0.0'
    compile 'com.meizu.flyme.internet:push-internal:3.7.0@aar'
    compile 'com.android.support:support-v4:26.+'
    compile 'com.github.yyued:SVGAPlayer-Android:2.4.7'
    compile files('libs/agora-rtm-sdk.jar')
}

MobSDK {
    appKey "d580ad56b4b5"
    appSecret "7fcae59a62342e7e2759e9e397c82bdd"

    ShareSDK {
        //平台配置信息
        devInfo {
            Wechat {
                appId "wx051631e81ea04ba0"
                appSecret "49c81a99b6b45ff167bf986b667b2bcd"
                BypassApproval false
            }
            WechatMoments {
                appId "wx051631e81ea04ba0"
                appSecret "49c81a99b6b45ff167bf986b667b2bcd"
                BypassApproval false
            }
            QQ {
                appId "1108014974"
                appKey "fykCvAND9bPOxzdj"
            }
            QZone {
                appId "1108014974"
                appKey "fykCvAND9bPOxzdj"
            }
        }
    }
}