Commit 4b78a30a authored by mengcuiguang's avatar mengcuiguang

准备接入珊瑚sdk

parent b1ff1174
...@@ -10,8 +10,8 @@ android { ...@@ -10,8 +10,8 @@ android {
applicationId "com.mints.highgold" applicationId "com.mints.highgold"
minSdkVersion rootProject.ext.androidMinSdkVersion minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 8 versionCode 9
versionName "1.0.7" versionName "1.0.8"
flavorDimensions "default" flavorDimensions "default"
// dex突破65535的限制 // dex突破65535的限制
......
package com.mints.highgold.ui.fragment; package com.mints.highgold.ui.fragment;
import android.Manifest;
import android.content.ClipData; import android.content.ClipData;
import android.content.ClipboardManager; import android.content.ClipboardManager;
import android.content.Context; import android.content.Context;
...@@ -12,6 +13,7 @@ import android.widget.GridView; ...@@ -12,6 +13,7 @@ import android.widget.GridView;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
import com.component.dly.xzzq_ywsdk.YwSDK_WebActivity;
import com.mints.highgold.BuildConfig; import com.mints.highgold.BuildConfig;
import com.mints.highgold.R; import com.mints.highgold.R;
import com.mints.highgold.common.AppConfig; import com.mints.highgold.common.AppConfig;
...@@ -49,6 +51,7 @@ import com.mints.library.utils.ConstantUtil; ...@@ -49,6 +51,7 @@ import com.mints.library.utils.ConstantUtil;
import com.mints.library.utils.GlideUtils; import com.mints.library.utils.GlideUtils;
import com.mints.library.utils.nodoubleclick.AntiShake; import com.mints.library.utils.nodoubleclick.AntiShake;
import com.scwang.smartrefresh.layout.SmartRefreshLayout; import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.tbruyelle.rxpermissions.RxPermissions;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -268,31 +271,31 @@ public class MyFragment extends BaseFragment ...@@ -268,31 +271,31 @@ public class MyFragment extends BaseFragment
// 自有界面 // 自有界面
switch (hotTourl) { switch (hotTourl) {
case Constant.HOT_ACTIVITY_YWHZ: case Constant.HOT_ACTIVITY_YWHZ:
// if (!userManager.userIsLogin()) { if (!userManager.userIsLogin()) {
// readyGo(WxLoginActivity.class); readyGo(WxLoginActivity.class);
// return; return;
// }
//
// new RxPermissions(getActivity())
// .request(Manifest.permission.READ_PHONE_STATE, Manifest.permission.READ_EXTERNAL_STORAGE)
// .subscribe(granted -> {
// if (granted) {
// try {
// YwSDK_WebActivity.Companion.open(getActivity());
//// toggleIsBack2Left();
// } catch (Exception e) {
// e.printStackTrace();
// showToast("暂不支持该版本");
// }
// } else {
// showMissingPermissionDialog("设备、储存");
// }
// });
boolean main = getActivity() instanceof MainActivity;
if (main) {
MainActivity activity = (MainActivity) getActivity();
activity.clickTab2Layout();
} }
new RxPermissions(getActivity())
.request(Manifest.permission.READ_PHONE_STATE, Manifest.permission.READ_EXTERNAL_STORAGE)
.subscribe(granted -> {
if (granted) {
try {
YwSDK_WebActivity.Companion.open(getActivity());
// toggleIsBack2Left();
} catch (Exception e) {
e.printStackTrace();
showToast("暂不支持该版本");
}
} else {
showMissingPermissionDialog("设备、储存");
}
});
// boolean main = getActivity() instanceof MainActivity;
// if (main) {
// MainActivity activity = (MainActivity) getActivity();
// activity.clickTab2Layout();
// }
break; break;
case Constant.HOT_ACTIVITY_CHB: case Constant.HOT_ACTIVITY_CHB:
readyGo(RedboxActivity.class); readyGo(RedboxActivity.class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment