diff --git a/GameSDKDemo/build.gradle b/GameSDKDemo/build.gradle index 0f4c778..918ef25 100644 --- a/GameSDKDemo/build.gradle +++ b/GameSDKDemo/build.gradle @@ -36,7 +36,7 @@ repositories { } android { - compileSdkVersion 26 + compileSdkVersion 27 buildToolsVersion '28.0.3' signingConfigs { @@ -51,6 +51,7 @@ android { defaultConfig { minSdkVersion 14 targetSdkVersion 27 + applicationId "mx.she.rd4" versionCode 6 versionName "1.4" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" @@ -69,7 +70,10 @@ android { lintOptions { abortOnError false } - + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_7 + targetCompatibility JavaVersion.VERSION_1_7 + } applicationVariants.all { variant -> variant.outputs.all { @@ -81,12 +85,12 @@ android { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.android.support:support-v4:26.1.0' + implementation 'com.android.support:support-v4:27.1.1' testImplementation 'junit:junit:4.12' - implementation 'com.android.support:appcompat-v7:26.1.0' - implementation 'com.android.support:design:26.1.0' + 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.7.0' + implementation 'com.gumptech.sdk:GameSDK:4.7.1' // implementation 'com.gumptech.sdk:SamsungIAP:5.1.1' } diff --git a/GameSDKDemo/src/main/java/com/gumptech/sdk/demo/MainActivity.java b/GameSDKDemo/src/main/java/com/gumptech/sdk/demo/MainActivity.java index 94208b6..bba4002 100644 --- a/GameSDKDemo/src/main/java/com/gumptech/sdk/demo/MainActivity.java +++ b/GameSDKDemo/src/main/java/com/gumptech/sdk/demo/MainActivity.java @@ -35,8 +35,8 @@ public class MainActivity extends AppCompatActivity implements PurchaseCallback private Button btnPay; private Button btnIap; - private String appId = "100"; - private String appKey = "f899139df5e1059396431415e770c6dd"; + private String appId = "10036"; + private String appKey = "7c127e0c66f06e58c7c7310a7c6fa488"; private GumpUser gumpUser; /** @@ -44,7 +44,6 @@ public class MainActivity extends AppCompatActivity implements PurchaseCallback */ String serverId = "100"; String roleId = "41080"; - String product = "test"; @Override @@ -270,7 +269,7 @@ public class MainActivity extends AppCompatActivity implements PurchaseCallback @Override public void onPurchaseError(int code, String msg) { - Log.i(TAG, "purchase error"); + Log.i(TAG, "purchase error:"+code+","+msg); } @Override diff --git a/GameSDKDemo/src/main/java/com/gumptech/sdk/demo/PaymentInfoSubmitFragment.java b/GameSDKDemo/src/main/java/com/gumptech/sdk/demo/PaymentInfoSubmitFragment.java index e205061..ab05d43 100644 --- a/GameSDKDemo/src/main/java/com/gumptech/sdk/demo/PaymentInfoSubmitFragment.java +++ b/GameSDKDemo/src/main/java/com/gumptech/sdk/demo/PaymentInfoSubmitFragment.java @@ -7,7 +7,6 @@ import android.os.Bundle; import android.support.annotation.NonNull; import android.support.design.widget.TextInputLayout; import android.support.v4.app.DialogFragment; -import android.support.v4.app.Fragment; import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; @@ -15,9 +14,7 @@ import android.view.LayoutInflater; import android.view.View; -/** - * A simple {@link Fragment} subclass. - */ + public class PaymentInfoSubmitFragment extends DialogFragment { interface OnSubmitListener { @@ -33,9 +30,7 @@ public class PaymentInfoSubmitFragment extends DialogFragment { etRoleId, etExtra; - public PaymentInfoSubmitFragment() { - } public static PaymentInfoSubmitFragment newInstance(OnSubmitListener listener) { PaymentInfoSubmitFragment fragment = new PaymentInfoSubmitFragment(); diff --git a/README.md b/README.md index 00b72ad..bf3987d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Gump SDK 4 for Android接入文档 -V4.7.0 -2019年02月21日 +V4.7.1 +2019年03月19日 ## 版本概述 @@ -21,7 +21,7 @@ V4.7.0 } } dependencies { - implementation 'com.gumptech.sdk:GameSDK:4.7.0' + implementation 'com.gumptech.sdk:GameSDK:4.7.1' }