Blame view
GameSDKDemo/build.gradle
2.63 KB
|
d6bc71fcb
|
1 |
apply plugin: 'com.android.application' |
|
f97711df6
|
2 3 4 |
/*The config for internal testing,you could ignore it * gump内部测试使用,你可以自行配置,或者直接删除这部分内容 * --start-- |
|
188bc4cf8
|
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
*/
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)
}
/*
|
|
f97711df6
|
24 25 26 |
* The config for internal testing,you could ignore it * gump内部测试使用,你可以自行配置,或者直接删除这部分内容 * --end-- |
|
188bc4cf8
|
27 |
*/ |
|
43932caac
|
28 |
repositories {
|
|
f97711df6
|
29 |
maven {
|
|
c4a5d1b80
|
30 |
url "http://117.50.8.198:8081/nexus/content/repositories/sdk" |
|
d6bc71fcb
|
31 |
} |
|
c4a5d1b80
|
32 33 |
jcenter()
google()
|
|
d6bc71fcb
|
34 35 36 |
}
android {
|
|
6a217e5ca
|
37 |
compileSdkVersion 26 |
|
f97711df6
|
38 |
buildToolsVersion '28.0.3' |
|
d6bc71fcb
|
39 |
|
|
188bc4cf8
|
40 41 42 43 44 45 46 47 |
signingConfigs {
release {
storeFile keyfile
storePassword keystorePSW
keyPassword keystoreAliasPSW
keyAlias keystoreAlias
}
}
|
|
d6bc71fcb
|
48 |
defaultConfig {
|
|
c4a5d1b80
|
49 |
minSdkVersion 14 |
|
4a6edc661
|
50 |
targetSdkVersion 27 |
|
f97711df6
|
51 52 |
versionCode 6
versionName "1.4"
|
|
7a5aadf06
|
53 |
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
|
188bc4cf8
|
54 |
signingConfig signingConfigs.release |
|
d6bc71fcb
|
55 |
} |
|
d6bc71fcb
|
56 57 58 59 |
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
188bc4cf8
|
60 61 62 63 |
zipAlignEnabled true
}
debug {
signingConfig signingConfigs.release
|
|
d6bc71fcb
|
64 65 |
}
}
|
|
43932caac
|
66 |
lintOptions {
|
|
d6bc71fcb
|
67 68 |
abortOnError false
}
|
|
188bc4cf8
|
69 |
|
|
4a6edc661
|
70 71 72 73 |
applicationVariants.all {
variant ->
variant.outputs.all {
outputFileName = "GameSDKDemo-" + variant.name + defaultConfig.versionName + ".apk"
|
|
f97711df6
|
74 75 |
}
}
|
|
d6bc71fcb
|
76 77 78 |
}
dependencies {
|
|
c4a5d1b80
|
79 |
implementation fileTree(include: ['*.jar'], dir: 'libs') |
|
4a6edc661
|
80 |
implementation 'com.android.support:support-v4:26.1.0' |
|
c4a5d1b80
|
81 |
testImplementation 'junit:junit:4.12' |
|
6a217e5ca
|
82 |
implementation 'com.android.support:appcompat-v7:26.1.0' |
|
4a6edc661
|
83 84 85 86 87 |
implementation 'com.android.support:design:26.1.0'
implementation project(':GameSDK')
// implementation project(':IAP5Helper')
// implementation 'com.gumptech.sdk:GameSDK:4.6.5'
// implementation 'com.gumptech.sdk:SamsungIAP:5.1.1'
|
|
d6bc71fcb
|
88 |
} |