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
aa3f3f4d
Commit
aa3f3f4d
authored
Sep 10, 2021
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug模式不提示更新
parent
feb2b5b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
mobile/src/main/java/cn/garymb/ygomobile/App.java
mobile/src/main/java/cn/garymb/ygomobile/App.java
+10
-5
No files found.
mobile/src/main/java/cn/garymb/ygomobile/App.java
View file @
aa3f3f4d
...
@@ -18,7 +18,9 @@ import com.tencent.bugly.beta.Beta;
...
@@ -18,7 +18,9 @@ import com.tencent.bugly.beta.Beta;
import
com.yuyh.library.imgsel.ISNav
;
import
com.yuyh.library.imgsel.ISNav
;
import
com.yuyh.library.imgsel.common.ImageLoader
;
import
com.yuyh.library.imgsel.common.ImageLoader
;
import
cn.garymb.ygomobile.lite.BuildConfig
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.lite.R
;
import
cn.garymb.ygomobile.ui.home.MainActivity
;
import
cn.garymb.ygomobile.utils.CrashHandler
;
import
cn.garymb.ygomobile.utils.CrashHandler
;
public
class
App
extends
GameApplication
{
public
class
App
extends
GameApplication
{
...
@@ -37,12 +39,9 @@ public class App extends GameApplication {
...
@@ -37,12 +39,9 @@ public class App extends GameApplication {
initBugly
();
initBugly
();
}
}
@Override
@Override
public
NativeInitOptions
getNativeInitOptions
()
{
public
NativeInitOptions
getNativeInitOptions
()
{
NativeInitOptions
options
=
AppsSettings
.
get
().
getNativeInitOptions
();
return
AppsSettings
.
get
().
getNativeInitOptions
();
return
options
;
}
}
@Override
@Override
...
@@ -156,6 +155,12 @@ public class App extends GameApplication {
...
@@ -156,6 +155,12 @@ public class App extends GameApplication {
Beta
.
strToastYourAreTheLatestVersion
=
this
.
getString
(
R
.
string
.
Already_Lastest
);
Beta
.
strToastYourAreTheLatestVersion
=
this
.
getString
(
R
.
string
.
Already_Lastest
);
Beta
.
strToastCheckingUpgrade
=
this
.
getString
(
R
.
string
.
Checking_Update
);
Beta
.
strToastCheckingUpgrade
=
this
.
getString
(
R
.
string
.
Checking_Update
);
Beta
.
upgradeDialogLayoutId
=
R
.
layout
.
dialog_upgrade
;
Beta
.
upgradeDialogLayoutId
=
R
.
layout
.
dialog_upgrade
;
Beta
.
enableHotfix
=
false
;
Beta
.
autoCheckHotfix
=
false
;
Beta
.
autoCheckUpgrade
=
false
;
Beta
.
autoCheckAppUpgrade
=
false
;
//添加可显示弹窗的Activity
Beta
.
canShowUpgradeActs
.
add
(
MainActivity
.
class
);
ApplicationInfo
appInfo
=
null
;
ApplicationInfo
appInfo
=
null
;
try
{
try
{
appInfo
=
this
.
getPackageManager
().
getApplicationInfo
(
getPackageName
(),
PackageManager
.
GET_META_DATA
);
appInfo
=
this
.
getPackageManager
().
getApplicationInfo
(
getPackageName
(),
PackageManager
.
GET_META_DATA
);
...
@@ -163,6 +168,6 @@ public class App extends GameApplication {
...
@@ -163,6 +168,6 @@ public class App extends GameApplication {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
String
msg
=
appInfo
.
metaData
.
getString
(
"BUGLY_APPID"
);
String
msg
=
appInfo
.
metaData
.
getString
(
"BUGLY_APPID"
);
Bugly
.
init
(
this
,
msg
,
true
);
Bugly
.
init
(
this
,
msg
,
BuildConfig
.
DEBUG_MODE
);
}
}
}
}
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