apply plugin: 'com.android.application'

android {
    compileSdkVersion 30
    buildToolsVersion "29.0.3"

    defaultConfig {
        applicationId "cn.m4399.operate.samples"
        minSdkVersion 14
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"

        ndk {
            // 游戏根据需要配置要配置的 abi
            abiFilters "armeabi", "armeabi-v7a", "x86", "arm64-v8a"
        }
    }

    signingConfigs {
        release {
            keyAlias 'max'
            keyPassword '111111'
            storeFile file('./m4399.keystore')
            storePassword '111111'
        }
    }

    buildTypes {
        release {
            minifyEnabled true
            proguardFiles 'proguard.cfg'
            signingConfig signingConfigs.release
        }
        debug {
            minifyEnabled false
            proguardFiles 'proguard.cfg'
            signingConfig signingConfigs.release
        }
    }
}

repositories {
    maven {
        // 4399 SDK 开放仓库
        url 'http://mvn.4399doc.com:8081/repository/maven-releases/'
    }
}

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])

    // 运营 SDK，建议使用最新版本，可通过浏览仓库地址或向运营咨询版本
    implementation 'cn.m4399.sdk:operate:2.37.0'
    // support 和 volley 是 SDK 使用的外部依赖，若接入方已有，可不引入
    //noinspection GradleCompatible
    implementation "com.android.support:support-v4:28.0.0"
    implementation 'com.android.volley:volley:1.1.1'
}