Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
9a91dce9
Commit
9a91dce9
authored
Jun 22, 2022
by
sheteng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合规修改
parent
40b5093c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
23 deletions
+25
-23
app/build.gradle.kts
app/build.gradle.kts
+2
-2
app/src/main/java/com/ccwangluo/accelerator/App.kt
app/src/main/java/com/ccwangluo/accelerator/App.kt
+2
-3
app/src/main/java/com/ccwangluo/accelerator/receiver/AppDownloadReceiver.java
...m/ccwangluo/accelerator/receiver/AppDownloadReceiver.java
+0
-3
app/src/main/java/com/ccwangluo/accelerator/ui/MainActivity.kt
...rc/main/java/com/ccwangluo/accelerator/ui/MainActivity.kt
+18
-14
app/src/main/java/com/ccwangluo/accelerator/utils/SysUtils.kt
...src/main/java/com/ccwangluo/accelerator/utils/SysUtils.kt
+1
-0
channels.txt
channels.txt
+2
-1
No files found.
app/build.gradle.kts
View file @
9a91dce9
...
...
@@ -139,7 +139,7 @@ dependencies {
implementation
(
"com.github.open-android:JieCaoVideoPlayer:0.1.0"
)
implementation
(
"com.tencent.bugly:crashreport_upgrade:
1.5.23
"
)
//其中latest.release指代最新版本号,也可以指定明确的版本号,例如1.2.0
implementation
(
"com.tencent.bugly:nativecrashreport:
3.9.2"
)
//其中latest.release指代最新版本号,也可以指定明确的版本号,例如2.2.0
implementation
(
"com.tencent.bugly:crashreport_upgrade:
latest.release
"
)
//其中latest.release指代最新版本号,也可以指定明确的版本号,例如1.2.0
implementation
(
"com.tencent.bugly:nativecrashreport:
latest.release"
)
implementation
(
"com.tencent.tpns:tpns:1.3.2.0-release"
)
}
\ No newline at end of file
app/src/main/java/com/ccwangluo/accelerator/App.kt
View file @
9a91dce9
...
...
@@ -39,8 +39,8 @@ class App : Application(), androidx.work.Configuration.Provider by Core {
SysUtils
.
initChannel
(
this
)
UMConfigure
.
i
nit
(
this
,
"61f0aa7fe014255fcb06a0bd"
,
"umeng"
,
UMConfigure
.
DEVICE_TYPE_PHONE
,
""
)
UMConfigure
.
preI
nit
(
this
,
"61f0aa7fe014255fcb06a0bd"
,
"umeng"
)
// 微信设置
PlatformConfig
.
setWeixin
(
"wx9271931475fae8ce"
,
"8f8686adb87efa476af92f2ccd196dad"
);
...
...
@@ -151,7 +151,6 @@ class App : Application(), androidx.work.Configuration.Provider by Core {
Beta
.
upgradeDialogLayoutId
=
R
.
layout
.
dialog_app_upgrade
Bugly
.
init
(
this
,
"e030f74df5"
,
true
)
}
override
fun
onConfigurationChanged
(
newConfig
:
Configuration
)
{
...
...
app/src/main/java/com/ccwangluo/accelerator/receiver/AppDownloadReceiver.java
View file @
9a91dce9
package
com.ccwangluo.accelerator.receiver
;
import
static
com
.
tencent
.
bugly
.
beta
.
tinker
.
TinkerManager
.
getApplication
;
import
android.app.DownloadManager
;
import
android.content.BroadcastReceiver
;
...
...
@@ -10,8 +9,6 @@ import android.database.Cursor;
import
android.net.Uri
;
import
android.text.TextUtils
;
import
com.xuexiang.xutil.app.AppUtils
;
public
class
AppDownloadReceiver
extends
BroadcastReceiver
{
@Override
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
...
...
app/src/main/java/com/ccwangluo/accelerator/ui/MainActivity.kt
View file @
9a91dce9
...
...
@@ -25,7 +25,9 @@ import com.github.shadowsocks.utils.StartService
import
com.hjq.toast.ToastUtils
import
com.tencent.android.tpush.XGIOperateCallback
import
com.tencent.android.tpush.XGPushManager
import
com.tencent.bugly.Bugly
import
com.tencent.tauth.Tencent
import
com.umeng.commonsdk.UMConfigure
import
com.umeng.socialize.UMShareAPI
import
com.xuexiang.xpage.base.XPageActivity
import
com.xuexiang.xpage.core.PageOption
...
...
@@ -52,27 +54,18 @@ class MainActivity() : XPageActivity() {
acceleratorViewModel
=
ViewModelProvider
(
this
).
get
(
AccelertorViewModel
::
class
.
java
)
// app 启动
if
(
SettingSPUtils
.
lastAPPOpenReportTime
==
0L
||
System
.
currentTimeMillis
()
-
SettingSPUtils
.
lastAPPOpenReportTime
>
30
*
60
*
1000
)
{
DataRePortUtils
.
report
(
"start_app"
)
SettingSPUtils
.
lastAPPOpenReportTime
=
System
.
currentTimeMillis
()
}
initPhoneUtils
()
PageOption
.
to
(
SplashFragment
::
class
.
java
).
open
(
this
)
Tencent
.
setIsPermissionGranted
(
true
)
//隐私协议
if
(!
SettingSPUtils
.
isAgreePrivacy
)
{
PrivacyDialog
(
this
,
HttpConfig
.
HTML_HOST_PRIVACY
+
"index.html"
)
{
if
(
it
)
{
SettingSPUtils
.
isAgreePrivacy
=
true
DataRePortUtils
.
report
(
"st_agrmt_ok"
)
PhoneUtils
.
initSdk
(
application
)
PhoneUtils
.
getPhoneInfo
()
PermissionDialog
(
this
)
{
getPermission
()
DataRePortUtils
.
report
(
"st_agrmt_ok"
)
}.
show
<
PermissionDialog
>()
}
else
{
finish
()
...
...
@@ -88,13 +81,25 @@ class MainActivity() : XPageActivity() {
AcceleratorUtils
.
initContext
(
this
,
connect
)
mSensorManager
=
getSystemService
(
SENSOR_SERVICE
)
as
SensorManager
mSensorEventListener
=
JCVideoPlayer
.
JCAutoFullscreenListener
()
DataRePortUtils
.
report
(
"st_app_open"
)
AcceleratorUtils
.
initConnect
(
this
)
registerReceiver
(
appDownReceiver
,
IntentFilter
(
DownloadManager
.
ACTION_DOWNLOAD_COMPLETE
))
}
private
fun
getPermission
()
{
Bugly
.
init
(
this
,
"e030f74df5"
,
false
)
UMConfigure
.
init
(
this
,
"61f0aa7fe014255fcb06a0bd"
,
"umeng"
,
UMConfigure
.
DEVICE_TYPE_PHONE
,
""
)
PageOption
.
to
(
SplashFragment
::
class
.
java
).
open
(
this
)
//QQ官方sdk授权
Tencent
.
setIsPermissionGranted
(
true
)
// app 启动
if
(
SettingSPUtils
.
lastAPPOpenReportTime
==
0L
||
System
.
currentTimeMillis
()
-
SettingSPUtils
.
lastAPPOpenReportTime
>
30
*
60
*
1000
)
{
DataRePortUtils
.
report
(
"start_app"
)
SettingSPUtils
.
lastAPPOpenReportTime
=
System
.
currentTimeMillis
()
}
DataRePortUtils
.
report
(
"st_app_open"
)
PermissionUtils
.
permission
(
Manifest
.
permission
.
WRITE_EXTERNAL_STORAGE
,
Manifest
.
permission
.
READ_EXTERNAL_STORAGE
...
...
@@ -147,8 +152,7 @@ class MainActivity() : XPageActivity() {
)
AcceleratorUtils
.
checkVpn
(
this
)
//QQ官方sdk授权
Tencent
.
setIsPermissionGranted
(
true
)
}
override
fun
onPause
()
{
...
...
app/src/main/java/com/ccwangluo/accelerator/utils/SysUtils.kt
View file @
9a91dce9
...
...
@@ -132,6 +132,7 @@ object SysUtils {
"baiduzhushou"
->
7
"wufan"
->
8
"share"
->
9
"update"
->
10
else
->
1
}
}
...
...
channels.txt
View file @
9a91dce9
...
...
@@ -6,4 +6,5 @@ yingyongbao
OPPO
baiduzhushou
wufan
share
\ No newline at end of file
share
update
\ No newline at end of file
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