Commit 442dd93729a3f8e615f6cf7079d4f021ffe913ac

Authored by 赵康
1 parent 1e361ab0fb
Exists in master

4.7.0:修改依赖为远程依赖

Showing 1 changed file with 2 additions and 2 deletions Inline Diff

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