Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_highgold
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_highgold
Commits
811afb2a
Commit
811afb2a
authored
Jun 28, 2020
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加一键登录
parent
d90937f3
Changes
16
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
257 additions
and
52 deletions
+257
-52
build.gradle
highgold/app/build.gradle
+5
-4
proguard-rules.pro
highgold/app/proguard-rules.pro
+15
-15
AndroidManifest.xml
highgold/app/src/main/AndroidManifest.xml
+26
-0
host_cucc.properties
highgold/app/src/main/assets/cucc/host_cucc.properties
+4
-0
MintsApplication.java
...pp/src/main/java/com/mints/highgold/MintsApplication.java
+19
-3
WxLoginActivity.java
...java/com/mints/highgold/ui/activitys/WxLoginActivity.java
+147
-3
VersusFragment.java
...n/java/com/mints/highgold/ui/fragment/VersusFragment.java
+27
-27
libCtaApiLib.so
highgold/app/src/main/jniLibs/arm64-v8a/libCtaApiLib.so
+0
-0
libjcore238.so
highgold/app/src/main/jniLibs/arm64-v8a/libjcore238.so
+0
-0
libCtaApiLib.so
highgold/app/src/main/jniLibs/armeabi-v7a/libCtaApiLib.so
+0
-0
libjcore238.so
highgold/app/src/main/jniLibs/armeabi-v7a/libjcore238.so
+0
-0
libCtaApiLib.so
highgold/app/src/main/jniLibs/armeabi/libCtaApiLib.so
+0
-0
libjcore238.so
highgold/app/src/main/jniLibs/armeabi/libjcore238.so
+0
-0
ic_activity_arrow.png
...old/app/src/main/res/drawable-xhdpi/ic_activity_arrow.png
+0
-0
activity_wx_login.xml
highgold/app/src/main/res/layout/activity_wx_login.xml
+13
-0
styles.xml
highgold/app/src/main/res/values/styles.xml
+1
-0
No files found.
highgold/app/build.gradle
View file @
811afb2a
...
...
@@ -11,8 +11,8 @@ android {
applicationId
"com.mints.highgold"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
1
5
versionName
"1.1.
4
"
versionCode
1
6
versionName
"1.1.
5
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
@@ -217,8 +217,9 @@ dependencies {
implementation
(
name:
'open_ad_sdk'
,
ext:
'aar'
)
implementation
'pl.droidsonroids.gif:android-gif-drawable:1.2.6'
// 极光推送
implementation
'cn.jiguang.sdk:jpush:3.0.9'
implementation
'cn.jiguang.sdk:jcore:1.1.7'
implementation
'cn.jiguang.sdk:jpush:3.6.6'
implementation
'cn.jiguang.sdk:jcore:2.3.8'
implementation
'cn.jiguang.sdk:jverification:2.6.4'
// 支付宝 SDK AAR 包所需的配置
implementation
(
name:
'alipaySdk-15.7.4-20200228192319-noUtdid'
,
ext:
'aar'
)
// 广点通广告 腾讯
...
...
highgold/app/proguard-rules.pro
View file @
811afb2a
...
...
@@ -347,21 +347,21 @@
# ===================== 极光推送 START ================
# -dontoptimize
# -dontpreverify
#
# -dontwarn cn.jpush.
*
*
# -keep class cn.jpush.
*
* { *; }
# -keep class * extends cn.jpush.android.helpers.JPushMessageReceiver { *; }
#
#
-dontwarn cn.jiguang.
*
*
#
-keep class cn.jiguang.
*
* { *; }
#
# -dontwarn com.google.
*
*
# -keep class com.google.gson.
*
* {*;}
#
# -dontwarn com.google
.
*
*
# -keep class com.google.protobuf.
*
* {*;
}
-keep class * extends cn.jpush.android.helpers.JPushMessageReceiver { *; }
# ===================== 极光一键登录 ================
-dontoptimize
-dontpreverify
-dontwarn cn.jpush.
*
*
-keep class cn.jpush.
*
* { *; }
-dontwarn cn.jiguang.
*
*
-keep class cn.jiguang.
*
* { *; }
-dontwarn com.cmic.
*
*
-keep class com.cmic.
*
* { *; }
-dontwarn com.unicom.
*
*
-keep class com.unicom.
*
* { *; }
-dontwarn cn.com.chinatelecom
.
*
*
-keep class cn.com.chinatelecom.
*
* { *;
}
# ======================= 极光推送 END ================
...
...
highgold/app/src/main/AndroidManifest.xml
View file @
811afb2a
...
...
@@ -299,6 +299,32 @@
android:name=
"android.support.FILE_PROVIDER_PATHS"
android:resource=
"@xml/provider_paths"
/>
</provider>
<!-- 极光一键登录 -->
<!-- since 2.0.0 optional 可选项,使用一键登录功能必须添加 -->
<!-- since 2.1.1 optional 可选项,通过screenOrientation设置授权页面横竖屏展示 -->
<activity
android:name=
"com.cmic.sso.sdk.activity.OAuthActivity"
android:configChanges=
"orientation|keyboardHidden|screenSize"
android:launchMode=
"singleTop"
>
</activity>
<!-- since 2.0.0 optional 可选项,使用一键登录功能必须添加 -->
<!-- since 2.1.1 optional 可选项,通过screenOrientation设置授权页面横竖屏展示 -->
<activity
android:name=
"com.cmic.sso.sdk.activity.LoginAuthActivity"
android:configChanges=
"orientation|keyboardHidden|screenSize"
android:launchMode=
"singleTop"
>
</activity>
<!-- since 2.0.0 optional 可选项,使用一键登录功能必须添加 -->
<!-- since 2.1.1 optional 可选项,通过screenOrientation设置授权页面横竖屏展示 -->
<activity
android:name=
"cn.jiguang.verifysdk.CtLoginActivity"
android:configChanges=
"orientation|keyboardHidden|screenSize"
android:launchMode=
"singleTop"
>
</activity>
<!-- Required -->
<meta-data
android:name=
"JPUSH_APPKEY"
android:value=
"${JPUSH_APPKEY}"
/>
<meta-data
android:name=
"JPUSH_CHANNEL"
android:value=
"${JPUSH_CHANNEL}"
/>
</application>
</manifest>
\ No newline at end of file
highgold/app/src/main/assets/cucc/host_cucc.properties
0 → 100755
View file @
811afb2a
#统计平台
PRODUCE_STATISTICAL
=
https://daily.m.zzx9.cn
#取号平台
PRODUCE_DZH
=
https://auth.wosms.cn
highgold/app/src/main/java/com/mints/highgold/MintsApplication.java
View file @
811afb2a
...
...
@@ -59,6 +59,8 @@ import com.yilan.sdk.ui.configs.YLUIConfig;
import
java.util.Map
;
import
cn.jiguang.verifysdk.api.JVerificationInterface
;
import
cn.jiguang.verifysdk.api.RequestCallback
;
import
cn.jpush.android.api.BasicPushNotificationBuilder
;
import
cn.jpush.android.api.JPushInterface
;
import
rx.Scheduler
;
...
...
@@ -231,10 +233,10 @@ public class MintsApplication extends MultiDexApplication {
// 创神广告
initChuangshen
();
}
// 极光一键登录
initJLogin
();
}
/**
* 移动安装联盟 获取OAID等设备标识符
...
...
@@ -463,6 +465,20 @@ public class MintsApplication extends MultiDexApplication {
.
build
());
}
/**
* 极光一键登录
*/
private
void
initJLogin
()
{
JVerificationInterface
.
setDebugMode
(
true
);
final
long
start
=
System
.
currentTimeMillis
();
JVerificationInterface
.
init
(
this
,
new
RequestCallback
<
String
>()
{
@Override
public
void
onResult
(
int
code
,
String
result
)
{
LogUtil
.
d
(
TAG
,
"[init] code = "
+
code
+
" result = "
+
result
+
" consists = "
+
(
System
.
currentTimeMillis
()
-
start
));
}
});
}
/**
* app退出
*/
...
...
highgold/app/src/main/java/com/mints/highgold/ui/activitys/WxLoginActivity.java
View file @
811afb2a
This diff is collapsed.
Click to expand it.
highgold/app/src/main/java/com/mints/highgold/ui/fragment/VersusFragment.java
View file @
811afb2a
...
...
@@ -1041,34 +1041,34 @@ public class VersusFragment extends BaseFragment
viewVersusWeixin
.
setVisibility
(
View
.
GONE
);
}
//绑定手机号 Complete 0-未完成 1-完成 2-领取
int
challengeMobileComplete
=
data
.
getChallenge_mobile_complete
();
if
(
challengeMobileComplete
==
0
)
{
llVersusMobile
.
setVisibility
(
View
.
VISIBLE
);
viewVersusMobile
.
setVisibility
(
View
.
VISIBLE
);
tvVersusMobileGold
.
setText
(
"+"
+
data
.
getChallenge_mobile_coin
());
// if (!userManager.userIsLogin()) {
// //绑定手机号 Complete 0-未完成 1-完成 2-领取
// int challengeMobileComplete = data.getChallenge_mobile_complete();
// if (challengeMobileComplete == 0) {
// llVersusMobile.setVisibility(View.VISIBLE);
// viewVersusMobile.setVisibility(View.VISIBLE);
// tvVersusMobileGold.setText("+" + data.getChallenge_mobile_coin());
//
//// if (!userManager.userIsLogin()) {
//// tvVersusMobile.setText("去完成");
//// tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_main_water));
////
//// } else {
//// tvVersusMobile.setText("立即领取");
//// tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_tv_gold));
////
//// }
// tvVersusMobile.setText("去完成");
// tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_main_water));
//
// } else {
// } else if (challengeMobileComplete == 1) {
// llVersusMobile.setVisibility(View.VISIBLE);
// viewVersusMobile.setVisibility(View.VISIBLE);
// tvVersusMobileGold.setText("+" + data.getChallenge_mobile_coin());
// tvVersusMobile.setText("立即领取");
// tvVersusMobile.setBackground(getResources().getDrawable(R.drawable.shape_tv_gold));
//
// } else {
// llVersusMobile.setVisibility(View.GONE);
// viewVersusMobile.setVisibility(View.GONE);
// }
tvVersusMobile
.
setText
(
"去完成"
);
tvVersusMobile
.
setBackground
(
getResources
().
getDrawable
(
R
.
drawable
.
shape_main_water
));
}
else
if
(
challengeMobileComplete
==
1
)
{
llVersusMobile
.
setVisibility
(
View
.
VISIBLE
);
viewVersusMobile
.
setVisibility
(
View
.
VISIBLE
);
tvVersusMobileGold
.
setText
(
"+"
+
data
.
getChallenge_mobile_coin
());
tvVersusMobile
.
setText
(
"立即领取"
);
tvVersusMobile
.
setBackground
(
getResources
().
getDrawable
(
R
.
drawable
.
shape_tv_gold
));
}
else
{
llVersusMobile
.
setVisibility
(
View
.
GONE
);
viewVersusMobile
.
setVisibility
(
View
.
GONE
);
}
//首次提现 Complete 0-未完成 1-完成 2-领取
...
...
highgold/app/src/main/jniLibs/arm64-v8a/libCtaApiLib.so
0 → 100755
View file @
811afb2a
File added
highgold/app/src/main/jniLibs/arm64-v8a/libjcore238.so
0 → 100755
View file @
811afb2a
File added
highgold/app/src/main/jniLibs/armeabi-v7a/libCtaApiLib.so
0 → 100755
View file @
811afb2a
File added
highgold/app/src/main/jniLibs/armeabi-v7a/libjcore238.so
0 → 100755
View file @
811afb2a
File added
highgold/app/src/main/jniLibs/armeabi/libCtaApiLib.so
0 → 100755
View file @
811afb2a
File added
highgold/app/src/main/jniLibs/armeabi/libjcore238.so
0 → 100755
View file @
811afb2a
File added
highgold/app/src/main/res/drawable-xhdpi/ic_activity_arrow.png
0 → 100644
View file @
811afb2a
331 Bytes
highgold/app/src/main/res/layout/activity_wx_login.xml
View file @
811afb2a
...
...
@@ -38,6 +38,19 @@
android:textColor=
"@color/white"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/tv_jpush_login"
android:layout_width=
"match_parent"
android:layout_height=
"86pt"
android:layout_marginLeft=
"70pt"
android:layout_marginTop=
"30pt"
android:layout_marginRight=
"70pt"
android:background=
"@drawable/rb_index_selected"
android:gravity=
"center"
android:text=
"一键登录"
android:textColor=
"@color/main_mints"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/tv_mobile_login"
android:layout_width=
"match_parent"
...
...
highgold/app/src/main/res/values/styles.xml
View file @
811afb2a
...
...
@@ -119,4 +119,5 @@
<item
name=
"android:textColor"
>
#cb4a39
</item>
<item
name=
"android:fontFamily"
>
sans-serif-condensed
</item>
</style>
</resources>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment