Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_aiyuebao
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_aiyuebao
Commits
80bae7d9
Commit
80bae7d9
authored
Apr 23, 2021
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除权限
parent
c736f1a6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
54 deletions
+58
-54
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+39
-39
LoginPresenter.kt
...java/com/wenshu/aiyuebao/mvp/presenters/LoginPresenter.kt
+2
-2
MyPresenter.kt
...in/java/com/wenshu/aiyuebao/mvp/presenters/MyPresenter.kt
+2
-1
WxLoginActivity.kt
.../java/com/wenshu/aiyuebao/ui/activitys/WxLoginActivity.kt
+14
-11
MyFragment.kt
...c/main/java/com/wenshu/aiyuebao/ui/fragment/MyFragment.kt
+1
-1
No files found.
app/src/main/AndroidManifest.xml
View file @
80bae7d9
...
@@ -4,45 +4,45 @@
...
@@ -4,45 +4,45 @@
package=
"com.wenshu.aiyuebao"
>
package=
"com.wenshu.aiyuebao"
>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.READ_PHONE_STATE"
/
>
<!-- <uses-permission android:name="android.permission.READ_PHONE_STATE" />--
>
<uses-permission
android:name=
"android.permission.ACCESS_WIFI_STATE"
/
>
<!-- <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />--
>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/
>
<!-- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />--
>
<uses-permission
android:name=
"android.permission.ACCESS_COARSE_LOCATION"
/
>
<!-- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />--
>
<uses-permission
android:name=
"android.permission.ACCESS_FINE_LOCATION"
/
>
<!-- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />--
>
<uses-permission
android:name=
"android.permission.REQUEST_INSTALL_PACKAGES"
/
>
<!-- <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />--
>
<uses-permission
android:name=
"android.permission.GET_TASKS"
/
>
<!-- <uses-permission android:name="android.permission.GET_TASKS" />--
>
<uses-permission
android:name=
"android.permission.WAKE_LOCK"
/
>
<!-- <uses-permission android:name="android.permission.WAKE_LOCK" />--
>
<uses-permission
android:name=
"android.permission.WRITE_SETTINGS"
/
>
<!-- <uses-permission android:name="android.permission.WRITE_SETTINGS" />--
>
<uses-permission
android:name=
"android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"
/
>
<!-- <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />--
>
<permission
android:name=
"com.wenshu.aiyuebao.permission.JPUSH_MESSAGE"
/
>
<!-- <permission android:name="com.wenshu.aiyuebao.permission.JPUSH_MESSAGE" />--
>
<uses-permission
android:name=
"android.permission.WRITE_EXTERNAL_STORAGE"
/
>
<!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />--
>
<uses-permission
android:name=
"android.permission.READ_EXTERNAL_STORAGE"
/
>
<!-- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />--
>
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE"
/
>
<!-- <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />--
>
<uses-permission
android:name=
"com.wenshu.aiyuebao.permission.JPUSH_MESSAGE"
/
>
<!-- <uses-permission android:name="com.wenshu.aiyuebao.permission.JPUSH_MESSAGE" />--
>
<uses-permission
android:name=
"android.permission.RECEIVE_USER_PRESENT"
/
>
<!-- <uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" />--
>
<uses-permission
android:name=
"android.permission.VIBRATE"
/
>
<!-- <uses-permission android:name="android.permission.VIBRATE" />--
>
<uses-permission
android:name=
"android.permission.MOUNT_UNMOUNT_FILESYSTEMS"
/
>
<!-- <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />--
>
<uses-permission
android:name=
"android.permission.SYSTEM_ALERT_WINDOW"
/
>
<!-- <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />--
>
<uses-permission
android:name=
"android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"
/
>
<!-- <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />--
>
<uses-permission
android:name=
"android.permission.CHANGE_NETWORK_STATE"
/
>
<!-- <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />--
>
<uses-permission
android:name=
"android.permission.ACCESS_BACKGROUND_LOCATION"
/
>
<!-- <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />--
>
<uses-permission
android:name=
"android.permission.SET_WALLPAPER"
/
>
<!-- <uses-permission android:name="android.permission.SET_WALLPAPER" />--
>
<uses-permission
android:name=
"android.permission.PACKAGE_USAGE_STATS"
/
>
<!-- <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />--
>
<!-- 来电秀
-->
<!-- <!– 来电秀 –>
-->
<uses-permission
android:name=
"android.permission.READ_CALL_LOG"
/
>
<!-- <uses-permission android:name="android.permission.READ_CALL_LOG" />--
>
<uses-permission
android:name=
"android.permission.CALL_PHONE"
/
>
<!-- <uses-permission android:name="android.permission.CALL_PHONE" />--
>
<uses-permission
android:name=
"android.permission.ANSWER_PHONE_CALLS"
/
>
<!-- <uses-permission android:name="android.permission.ANSWER_PHONE_CALLS" />--
>
<uses-permission
android:name=
"com.wenshu.aiyuebao.permission"
/
>
<!-- <uses-permission android:name="com.wenshu.aiyuebao.permission" />--
>
<!-- 蘑菇星球
-->
<!-- <!– 蘑菇星球 –>
-->
<uses-permission
android:name=
"android.permission.REQUEST_DELETE_PACKAGES"
/
>
<!-- <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />--
>
<permission
<!-- <permission-->
android:name=
"com.wenshu.aiyuebao.permission"
<!-- android:name="com.wenshu.aiyuebao.permission"-->
android:protectionLevel=
"normal"
/
>
<!-- android:protectionLevel="normal" />--
>
<!-- 快手SDK内⾃定义的权限,与下载相关,aar中已经申请 -->
<!-- 快手SDK内⾃定义的权限,与下载相关,aar中已经申请 -->
<permission
<permission
...
...
app/src/main/java/com/wenshu/aiyuebao/mvp/presenters/LoginPresenter.kt
View file @
80bae7d9
...
@@ -171,7 +171,7 @@ class LoginPresenter : BasePresenter<LoginView>() {
...
@@ -171,7 +171,7 @@ class LoginPresenter : BasePresenter<LoginView>() {
when
(
code
)
{
when
(
code
)
{
200
->
if
(
data
!=
null
)
{
200
->
if
(
data
!=
null
)
{
UserManager
.
getInstance
().
saveUserInfo
(
data
)
UserManager
.
getInstance
().
saveUserInfo
(
data
)
saveTerminalInfo
(
data
.
consumer
.
pk_id
)
//
saveTerminalInfo(data.consumer.pk_id)
view
.
loginSuc
()
view
.
loginSuc
()
}
}
else
->
view
.
showToast
(
message
)
else
->
view
.
showToast
(
message
)
...
@@ -211,7 +211,7 @@ class LoginPresenter : BasePresenter<LoginView>() {
...
@@ -211,7 +211,7 @@ class LoginPresenter : BasePresenter<LoginView>() {
when
(
code
)
{
when
(
code
)
{
200
->
if
(
data
!=
null
)
{
200
->
if
(
data
!=
null
)
{
UserManager
.
getInstance
().
saveUserInfo
(
data
)
UserManager
.
getInstance
().
saveUserInfo
(
data
)
saveTerminalInfo
(
data
.
consumer
.
pk_id
)
//
saveTerminalInfo(data.consumer.pk_id)
view
.
loginSuc
()
view
.
loginSuc
()
}
}
else
->
view
.
showToast
(
message
)
else
->
view
.
showToast
(
message
)
...
...
app/src/main/java/com/wenshu/aiyuebao/mvp/presenters/MyPresenter.kt
View file @
80bae7d9
...
@@ -169,7 +169,8 @@ open class MyPresenter : BasePresenter<MyView>() {
...
@@ -169,7 +169,8 @@ open class MyPresenter : BasePresenter<MyView>() {
when
(
code
)
{
when
(
code
)
{
200
->
if
(
data
!=
null
)
{
200
->
if
(
data
!=
null
)
{
UserManager
.
getInstance
().
saveUserInfo
(
data
)
UserManager
.
getInstance
().
saveUserInfo
(
data
)
saveTerminalInfo
()
// saveTerminalInfo()
view
.
userLoginSuc
()
}
}
else
->
view
.
showToast
(
message
)
else
->
view
.
showToast
(
message
)
}
}
...
...
app/src/main/java/com/wenshu/aiyuebao/ui/activitys/WxLoginActivity.kt
View file @
80bae7d9
...
@@ -97,17 +97,20 @@ class WxLoginActivity : BaseActivity()
...
@@ -97,17 +97,20 @@ class WxLoginActivity : BaseActivity()
return
return
}
}
RxPermissions
(
this
)
// RxPermissions(this)
.
request
(
Manifest
.
permission
.
READ_PHONE_STATE
)
// .request(Manifest.permission.READ_PHONE_STATE)
.
subscribe
{
granted
:
Boolean
->
// .subscribe { granted: Boolean ->
if
(
granted
)
{
// if (granted) {
// loginApi.setOnLoginListener(this@WxLoginActivity)
// loginApi.setPlatform(Wechat.NAME)
// loginApi.login(this@WxLoginActivity)
// } else {
// showMissingPermissionDialog("设备")
// }
// }
loginApi
.
setOnLoginListener
(
this
@WxLoginActivity
)
loginApi
.
setOnLoginListener
(
this
@WxLoginActivity
)
loginApi
.
setPlatform
(
Wechat
.
NAME
)
loginApi
.
setPlatform
(
Wechat
.
NAME
)
loginApi
.
login
(
this
@WxLoginActivity
)
loginApi
.
login
(
this
@WxLoginActivity
)
}
else
{
showMissingPermissionDialog
(
"设备"
)
}
}
}
}
}
}
}
}
...
...
app/src/main/java/com/wenshu/aiyuebao/ui/fragment/MyFragment.kt
View file @
80bae7d9
...
@@ -1156,7 +1156,7 @@ class MyFragment : BaseFragment(),
...
@@ -1156,7 +1156,7 @@ class MyFragment : BaseFragment(),
}
}
private
fun
initManager
()
{
private
fun
initManager
()
{
BannerManager
.
init
()
//
BannerManager.init()
vedioAdingManager
=
VideoAdingManager
.
getInstance
(
activity
)
vedioAdingManager
=
VideoAdingManager
.
getInstance
(
activity
)
// if (!TextUtils.isEmpty(userManager.userID)) {
// if (!TextUtils.isEmpty(userManager.userID)) {
...
...
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