apply plugin: 'com.android.application' /*The config for internal testing,you could ignore it * gump内部测试使用,你可以自行配置,或者直接删除这部分内容 * --start-- */ def keystorePSW = '' def keystoreAlias = '' def keystoreAliasPSW = '' // default keystore file, PLZ config file path in local.properties def keyfile = file('s.keystore.temp') Properties properties = new Properties() // local.properties file in the root director properties.load(project.file('local.properties').newDataInputStream()) def keystoreFilepath = properties.getProperty("keystore.path") if (keystoreFilepath) { keystorePSW = properties.getProperty("keystore.password") keystoreAlias = properties.getProperty("keystore.alias") keystoreAliasPSW = properties.getProperty("keystore.key_passwd") keyfile = file(keystoreFilepath) } /* * The config for internal testing,you could ignore it * gump内部测试使用,你可以自行配置,或者直接删除这部分内容 * --end-- */ repositories { maven { url "http://117.50.8.198:8081/nexus/content/repositories/sdk" } jcenter() google() } android { compileSdkVersion 30 buildToolsVersion '28.0.3' signingConfigs { release { storeFile keyfile storePassword keystorePSW keyPassword keystoreAliasPSW keyAlias keystoreAlias } } defaultConfig { minSdkVersion 14 targetSdkVersion 30 applicationId "com.summon.empires2" versionCode 38 versionName "1.0.3" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" signingConfig signingConfigs.release } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' zipAlignEnabled true } debug { signingConfig signingConfigs.release } } lintOptions { abortOnError false } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } applicationVariants.all { variant -> variant.outputs.all { outputFileName = "GameSDKDemo-" + variant.name + defaultConfig.versionName + ".apk" } } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') // implementation 'com.android.support:support-v4:27.1.1' implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.fragment:fragment:1.2.5' implementation 'com.google.android.material:material:1.2.1' testImplementation 'junit:junit:4.12' // implementation 'com.android.support:appcompat-v7:27.1.1' // implementation 'com.android.support:design:27.1.1' implementation project(':GameSDK') // implementation project(':IAP5Helper') // implementation 'com.gumptech.sdk:GameSDK:4.8.0' // implementation 'com.gump.game.sdk:SamsungIAP:5.1.1' }