Commit 2d1a34aa9e882a63f9a5063d84a9b44582e9faa6
1 parent
06e47b8f03
Exists in
master
v4.1.6:修复gp支付无回调的bug
Showing 6 changed files with 7 additions and 8 deletions Side-by-side Diff
GameSDK-release4.1.5.aar
No preview for this file type
GameSDK-release4.1.6.aar
No preview for this file type
GameSDKDemo/build.gradle
... | ... | @@ -10,12 +10,11 @@ android { |
10 | 10 | compileSdkVersion 22 |
11 | 11 | buildToolsVersion "25.0.0" |
12 | 12 | |
13 | - | |
14 | 13 | defaultConfig { |
15 | 14 | minSdkVersion 9 |
16 | 15 | targetSdkVersion 22 |
17 | - versionCode 2 | |
18 | - versionName "1.1" | |
16 | + versionCode 1000002 | |
17 | + versionName "1.0.2" | |
19 | 18 | } |
20 | 19 | |
21 | 20 | buildTypes { |
... | ... | @@ -33,6 +32,6 @@ dependencies { |
33 | 32 | compile fileTree(dir: 'libs', include: ['*.jar']) |
34 | 33 | testCompile 'junit:junit:4.12' |
35 | 34 | compile 'com.android.support:appcompat-v7:22.2.0' |
36 | - compile project(':GameSDK') | |
37 | -// compile(name:'GameSDK-release4.1.4',ext:'aar') | |
35 | +// compile project(':GameSDK') | |
36 | + compile(name:'GameSDK-release4.1.6',ext:'aar') | |
38 | 37 | } |
GameSDKDemo/libs/GameSDK-release4.1.5.aar
No preview for this file type
GameSDKDemo/libs/GameSDK-release4.1.6.aar
No preview for this file type
GameSDKDemo/src/main/java/com/gumptech/sdk/demo/MainActivity.java
... | ... | @@ -30,7 +30,7 @@ public class MainActivity extends Activity implements PurchaseCallback { |
30 | 30 | private Button btnLoginOrLogout; |
31 | 31 | |
32 | 32 | private String appId = "10022"; |
33 | - private String appKey = "93a27b0bd99bac3e68a440b48aa421ab"; | |
33 | + private String appKey = "7e0ff37942c2de60cbcbd27041196ce3"; | |
34 | 34 | private String sessionKey; |
35 | 35 | |
36 | 36 | |
... | ... | @@ -69,7 +69,7 @@ public class MainActivity extends Activity implements PurchaseCallback { |
69 | 69 | @Override |
70 | 70 | public void onClick(View v) { |
71 | 71 | Bundle payInfo = new Bundle(); |
72 | - payInfo.putString("product", "gp_skuId"); | |
72 | + payInfo.putString("product", "renmbl.9"); | |
73 | 73 | payInfo.putFloat("amount", 0.1f); |
74 | 74 | payInfo.putString("extraInfo", "This is demo!"); |
75 | 75 | payInfo.putString("serverId", "100"); |
... | ... | @@ -152,7 +152,7 @@ public class MainActivity extends Activity implements PurchaseCallback { |
152 | 152 | /** |
153 | 153 | * 初始化sdk |
154 | 154 | */ |
155 | - GumpSDK.init(getApplicationContext(), appId, appKey, "1000", new InitializeCallback() { | |
155 | + GumpSDK.init(getApplicationContext(), appId, appKey, "1003", new InitializeCallback() { | |
156 | 156 | @Override |
157 | 157 | public void initComplete(int result) { |
158 | 158 | if (result == GumpSDK.CODE.OK) { |