Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
fallenstardust
YGOMobile
Commits
99da0806
Commit
99da0806
authored
Dec 04, 2019
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分渠道填写APP_ID
改在线依赖
parent
8fc1ad5f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
12 deletions
+21
-12
mobile/build.gradle
mobile/build.gradle
+5
-4
mobile/libs/bugly_crashreport_upgrade-1.4.2.aar
mobile/libs/bugly_crashreport_upgrade-1.4.2.aar
+0
-0
mobile/src/main/AndroidManifest.xml
mobile/src/main/AndroidManifest.xml
+5
-2
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
+11
-6
No files found.
mobile/build.gradle
View file @
99da0806
...
@@ -22,15 +22,15 @@ android {
...
@@ -22,15 +22,15 @@ android {
}
}
productFlavors
{
productFlavors
{
cn
{
cn
{
manifestPlaceholders
=
[
PGYER_APPID:
"5be72b17bccbc9898012d35f713c57ff
"
]
manifestPlaceholders
=
[
APP_ID:
"0b6f110306
"
]
}
}
en
{
en
{
applicationIdSuffix
".EN"
applicationIdSuffix
".EN"
manifestPlaceholders
=
[
PGYER_APPID:
"c94918f2b9ca85a0b77567ca53218121
"
]
manifestPlaceholders
=
[
APP_ID:
"9c66525dfa
"
]
}
}
ko
{
ko
{
applicationIdSuffix
".KO"
applicationIdSuffix
".KO"
manifestPlaceholders
=
[
PGYER_APPID:
"885b0ff6e389b741aff1d62011f9a8ac
"
]
manifestPlaceholders
=
[
APP_ID:
"0488398d8a
"
]
}
}
}
}
buildTypes
{
buildTypes
{
...
@@ -115,6 +115,7 @@ dependencies {
...
@@ -115,6 +115,7 @@ dependencies {
//跨进程SharedPreferencesPlus工具
//跨进程SharedPreferencesPlus工具
implementation
'com.github.zhangliangming:PreferencesProvider:v1.3'
implementation
'com.github.zhangliangming:PreferencesProvider:v1.3'
//Tencent bugly
//Tencent bugly
implementation
(
name:
'bugly_crashreport_upgrade-1.4.2'
,
ext:
'aar'
)
implementation
'com.tencent.bugly:crashreport_upgrade:latest.release'
implementation
'com.tencent.bugly:nativecrashreport:latest.release'
}
}
mobile/libs/bugly_crashreport_upgrade-1.4.2.aar
deleted
100644 → 0
View file @
8fc1ad5f
File deleted
mobile/src/main/AndroidManifest.xml
View file @
99da0806
...
@@ -190,8 +190,11 @@
...
@@ -190,8 +190,11 @@
android:theme=
"@android:style/Theme.Translucent"
/>
android:theme=
"@android:style/Theme.Translucent"
/>
<meta-data
<meta-data
android:name=
"PGYER_APPID"
android:name=
"BUGLY_APPID"
android:value=
"${PGYER_APPID}"
/>
android:value=
"${APP_ID}"
/>
<meta-data
android:name=
"BUGLY_ENABLE_DEBUG"
android:value=
"true"
/>
<!-- 为防止Service被系统回收,可以尝试通过提高服务的优先级解决,1000是最高优先级,数字越小,优先级越低 -->
<!-- 为防止Service被系统回收,可以尝试通过提高服务的优先级解决,1000是最高优先级,数字越小,优先级越低 -->
<!--android:priority="1000"-->
<!--android:priority="1000"-->
<service
<service
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
View file @
99da0806
package
cn.garymb.ygomobile.ui.home
;
package
cn.garymb.ygomobile.ui.home
;
import
android.content.ComponentName
;
import
android.content.ComponentName
;
import
android.content.Context
;
import
android.content.DialogInterface
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.content.pm.ApplicationInfo
;
import
android.content.pm.PackageManager
;
import
android.graphics.Color
;
import
android.graphics.Color
;
import
android.net.Uri
;
import
android.net.Uri
;
import
android.os.Bundle
;
import
android.os.Bundle
;
...
@@ -41,7 +41,6 @@ import org.greenrobot.eventbus.EventBus;
...
@@ -41,7 +41,6 @@ import org.greenrobot.eventbus.EventBus;
import
org.greenrobot.eventbus.Subscribe
;
import
org.greenrobot.eventbus.Subscribe
;
import
org.greenrobot.eventbus.ThreadMode
;
import
org.greenrobot.eventbus.ThreadMode
;
import
java.io.File
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.List
;
import
java.util.List
;
...
@@ -125,12 +124,18 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
...
@@ -125,12 +124,18 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
//trpay
//trpay
TrPay
.
getInstance
(
HomeActivity
.
this
).
initPaySdk
(
"e1014da420ea4405898c01273d6731b6"
,
"YGOMobile"
);
TrPay
.
getInstance
(
HomeActivity
.
this
).
initPaySdk
(
"e1014da420ea4405898c01273d6731b6"
,
"YGOMobile"
);
//初始化bugly
//初始化bugly
Bugly
.
init
(
getApplicationContext
(),
"0b6f110306"
,
true
);
ApplicationInfo
appInfo
=
null
;
try
{
appInfo
=
this
.
getPackageManager
().
getApplicationInfo
(
getPackageName
(),
PackageManager
.
GET_META_DATA
);
}
catch
(
PackageManager
.
NameNotFoundException
e
)
{
e
.
printStackTrace
();
}
String
msg
=
appInfo
.
metaData
.
getString
(
"BUGLY_APPID"
);
Bugly
.
init
(
this
,
msg
,
true
);
//check update
//check update
Beta
.
checkUpgrade
(
false
,
tru
e
);
Beta
.
checkUpgrade
(
false
,
fals
e
);
//ServiceDuelAssistant
//ServiceDuelAssistant
startDuelService
(
this
);
startDuelService
(
this
);
//萌卡
//萌卡
StartMycard
();
StartMycard
();
checkNotch
();
checkNotch
();
...
...
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