Compare commits

...

6 Commits

Author SHA1 Message Date
fa2fb66f44 取消实名认证身份证类型输入限制 2021-11-05 11:12:16 +08:00
9982ebea9e 版本更新到 5.3.3 2021-11-05 11:07:34 +08:00
2b30cc1f41 Merge branch 'hotfix-v5.3.2-412-crash' into 'release'
修复部分闪退

See merge request halo/android/assistant-android!142
2021-11-05 11:06:54 +08:00
96a19eb5ee 修复部分闪退
1. 部分5.0设备启动读取错误abi造成闪退的问题
2. 部分华为鸿蒙设备读取系统类型闪退的问题
2021-11-05 11:05:26 +08:00
85276d462f Merge branch 'hotfix-v5.3.2-412-fix_realname_input' into 'release'
修复实名身份证号无法输入 X 的问题

See merge request halo/android/assistant-android!141
2021-11-05 09:59:50 +08:00
44aebc39ea 修复实名身份证号无法输入 X 的问题 2021-11-05 09:58:42 +08:00
6 changed files with 22 additions and 9 deletions

View File

@ -47,7 +47,11 @@ android {
ndk {
// 如果不添加 `arm64` 调用系统的 PackageManager 的方法读取安装包信息的时候会出现 native 层闪退,草
abiFilters "armeabi-v7a", "arm64-v8a", "x86"
// 添加了 `arm64` 以后部分 5.0 的设备会报用错 so 的问题,
// couldn't find DSO to load: libimagepipeline.so caused by: dlopen failed: "/data/data/com.gh.gamecenter/lib-main/libimagepipeline.so" is 64-bit instead of 32-bit result: 0
// 以 OPPO R7PLUS 为例,明明设备是骁龙 615ARMv8-64 bit 的设备却不支持 arm64 的 abi
// 惊了
abiFilters "armeabi-v7a", "x86"
}
renderscriptTargetApi 18

View File

@ -207,6 +207,9 @@ public class Constants {
// 新分类2.0引导
public static final String SP_SHOW_CATEGORY_GUIDE = "show_category_guide";
// 用户是否需要 weibo x86 so
public static final String SP_USER_NEED_WEIBO_X86_SO = "user_need_weibo_x86_so";
// 内容视频播放选项
public static final String SP_CONTENT_VIDEO_OPTION = "content_video_option";

View File

@ -3,6 +3,7 @@ package com.gh.common.util
import android.app.Activity
import android.content.Intent
import com.gh.common.constant.Config
import com.gh.common.constant.Constants
import com.gh.gamecenter.R
import com.gh.gamecenter.user.LoginTag
import com.halo.assistant.HaloApp
@ -169,6 +170,15 @@ object LoginHelper {
// 微博登录
@JvmStatic
fun loginWithWeibo(loginCallback: LoginCallback, context: Activity) {
tryWithDefaultCatch {
if (SPUtils.getBoolean(Constants.SP_USER_NEED_WEIBO_X86_SO)) {
SentryHelper.onEvent(
"weibo_sdk_login_error",
"exception_digest", "no_x86_so");
}
}
mWBAPI = WBAPIFactory.createWBAPI(context) //初始化微博分享
mLoginCallback = WeakReference(loginCallback)
mWBAPI.registerApp(

View File

@ -1010,9 +1010,7 @@ public class MainActivity extends BaseActivity {
// 所以 x86 的 AS 模拟器/ Genymotion 会初始化失败,但实测部分硬性需要提供 x86 SO 的模拟器 (如雷电) 却又能正常使用
// 这里加个简单日志,看看到底有没有(有多少)真实设备出现初始化失败的问题
if (!BuildConfig.DEBUG) {
SentryHelper.INSTANCE.onEvent(
"weibo_sdk_init_error",
"exception_digest", e.getLocalizedMessage());
SPUtils.setBoolean(Constants.SP_USER_NEED_WEIBO_X86_SO, true);
e.printStackTrace();
}
}

View File

@ -126,9 +126,7 @@
android:layout_height="40dp"
android:layout_marginTop="12dp"
android:background="@drawable/bg_shape_fa_radius_2"
android:digits="0123456789X"
android:hint="请输入本人真实身份证号码"
android:inputType="number"
android:padding="8dp"
android:singleLine="true"
android:textColor="@color/text_333333"

View File

@ -7,8 +7,8 @@ ext {
targetSdkVersion = 26
// application info (每个大版本之间的 versionCode 增加 20)
versionCode = 412
versionName = "5.3.2"
versionCode = 413
versionName = "5.3.3"
applicationId = "com.gh.gamecenter"
// AndroidX
@ -100,7 +100,7 @@ ext {
skeleton = "1.1.1"
shimmerlayout = "2.1.0"
mta = "6.7.9"
romChecker = "1.0.2"
romChecker = "1.0.3"
oss = "2.9.2"
toolargetool = "0.3.0"
chart = "3.1.0"