Commit 7b52014d1ad873d57095f02f7898643280020c10
1 parent
442dd93729
Exists in
master
version4.7.1
Showing 4 changed files with 17 additions and 19 deletions Side-by-side Diff
GameSDKDemo/build.gradle
| ... | ... | @@ -36,7 +36,7 @@ repositories { |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | android { |
| 39 | - compileSdkVersion 26 | |
| 39 | + compileSdkVersion 27 | |
| 40 | 40 | buildToolsVersion '28.0.3' |
| 41 | 41 | |
| 42 | 42 | signingConfigs { |
| ... | ... | @@ -51,6 +51,7 @@ android { |
| 51 | 51 | defaultConfig { |
| 52 | 52 | minSdkVersion 14 |
| 53 | 53 | targetSdkVersion 27 |
| 54 | + applicationId "mx.she.rd4" | |
| 54 | 55 | versionCode 6 |
| 55 | 56 | versionName "1.4" |
| 56 | 57 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
| ... | ... | @@ -69,7 +70,10 @@ android { |
| 69 | 70 | lintOptions { |
| 70 | 71 | abortOnError false |
| 71 | 72 | } |
| 72 | - | |
| 73 | + compileOptions { | |
| 74 | + sourceCompatibility JavaVersion.VERSION_1_7 | |
| 75 | + targetCompatibility JavaVersion.VERSION_1_7 | |
| 76 | + } | |
| 73 | 77 | applicationVariants.all { |
| 74 | 78 | variant -> |
| 75 | 79 | variant.outputs.all { |
| ... | ... | @@ -81,12 +85,12 @@ android { |
| 81 | 85 | |
| 82 | 86 | dependencies { |
| 83 | 87 | implementation fileTree(include: ['*.jar'], dir: 'libs') |
| 84 | - implementation 'com.android.support:support-v4:26.1.0' | |
| 88 | + implementation 'com.android.support:support-v4:27.1.1' | |
| 85 | 89 | testImplementation 'junit:junit:4.12' |
| 86 | - implementation 'com.android.support:appcompat-v7:26.1.0' | |
| 87 | - implementation 'com.android.support:design:26.1.0' | |
| 90 | + implementation 'com.android.support:appcompat-v7:27.1.1' | |
| 91 | + implementation 'com.android.support:design:27.1.1' | |
| 88 | 92 | // implementation project(':GameSDK') |
| 89 | 93 | // implementation project(':IAP5Helper') |
| 90 | - implementation 'com.gumptech.sdk:GameSDK:4.7.0' | |
| 94 | + implementation 'com.gumptech.sdk:GameSDK:4.7.1' | |
| 91 | 95 | // implementation 'com.gumptech.sdk:SamsungIAP:5.1.1' |
| 92 | 96 | } |
GameSDKDemo/src/main/java/com/gumptech/sdk/demo/MainActivity.java
| ... | ... | @@ -35,8 +35,8 @@ public class MainActivity extends AppCompatActivity implements PurchaseCallback |
| 35 | 35 | private Button btnPay; |
| 36 | 36 | private Button btnIap; |
| 37 | 37 | |
| 38 | - private String appId = "100"; | |
| 39 | - private String appKey = "f899139df5e1059396431415e770c6dd"; | |
| 38 | + private String appId = "10036"; | |
| 39 | + private String appKey = "7c127e0c66f06e58c7c7310a7c6fa488"; | |
| 40 | 40 | private GumpUser gumpUser; |
| 41 | 41 | |
| 42 | 42 | /** |
| ... | ... | @@ -44,7 +44,6 @@ public class MainActivity extends AppCompatActivity implements PurchaseCallback |
| 44 | 44 | */ |
| 45 | 45 | String serverId = "100"; |
| 46 | 46 | String roleId = "41080"; |
| 47 | - String product = "test"; | |
| 48 | 47 | |
| 49 | 48 | |
| 50 | 49 | @Override |
| ... | ... | @@ -270,7 +269,7 @@ public class MainActivity extends AppCompatActivity implements PurchaseCallback |
| 270 | 269 | |
| 271 | 270 | @Override |
| 272 | 271 | public void onPurchaseError(int code, String msg) { |
| 273 | - Log.i(TAG, "purchase error"); | |
| 272 | + Log.i(TAG, "purchase error:"+code+","+msg); | |
| 274 | 273 | } |
| 275 | 274 | |
| 276 | 275 | @Override |
GameSDKDemo/src/main/java/com/gumptech/sdk/demo/PaymentInfoSubmitFragment.java
| ... | ... | @@ -7,7 +7,6 @@ import android.os.Bundle; |
| 7 | 7 | import android.support.annotation.NonNull; |
| 8 | 8 | import android.support.design.widget.TextInputLayout; |
| 9 | 9 | import android.support.v4.app.DialogFragment; |
| 10 | -import android.support.v4.app.Fragment; | |
| 11 | 10 | import android.text.Editable; |
| 12 | 11 | import android.text.TextUtils; |
| 13 | 12 | import android.text.TextWatcher; |
| ... | ... | @@ -15,9 +14,7 @@ import android.view.LayoutInflater; |
| 15 | 14 | import android.view.View; |
| 16 | 15 | |
| 17 | 16 | |
| 18 | -/** | |
| 19 | - * A simple {@link Fragment} subclass. | |
| 20 | - */ | |
| 17 | + | |
| 21 | 18 | public class PaymentInfoSubmitFragment extends DialogFragment { |
| 22 | 19 | |
| 23 | 20 | interface OnSubmitListener { |
| ... | ... | @@ -33,9 +30,7 @@ public class PaymentInfoSubmitFragment extends DialogFragment { |
| 33 | 30 | etRoleId, |
| 34 | 31 | etExtra; |
| 35 | 32 | |
| 36 | - public PaymentInfoSubmitFragment() { | |
| 37 | 33 | |
| 38 | - } | |
| 39 | 34 | |
| 40 | 35 | public static PaymentInfoSubmitFragment newInstance(OnSubmitListener listener) { |
| 41 | 36 | PaymentInfoSubmitFragment fragment = new PaymentInfoSubmitFragment(); |
README.md
| 1 | 1 | # Gump SDK 4 for Android接入文档 |
| 2 | 2 | |
| 3 | 3 | |
| 4 | -V4.7.0 | |
| 5 | -2019年02月21日 | |
| 4 | +V4.7.1 | |
| 5 | +2019年03月19日 | |
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | ## 版本概述 |
| ... | ... | @@ -21,7 +21,7 @@ V4.7.0 |
| 21 | 21 | } |
| 22 | 22 | } |
| 23 | 23 | dependencies { |
| 24 | - implementation 'com.gumptech.sdk:GameSDK:4.7.0' | |
| 24 | + implementation 'com.gumptech.sdk:GameSDK:4.7.1' | |
| 25 | 25 | |
| 26 | 26 | } |
| 27 | 27 |