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
49720f62
Commit
49720f62
authored
Apr 07, 2019
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update versioncode
parent
0891ecd8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
mobile/build.gradle
mobile/build.gradle
+2
-2
mobile/src/main/java/ocgcore/StringManager.java
mobile/src/main/java/ocgcore/StringManager.java
+12
-12
No files found.
mobile/build.gradle
View file @
49720f62
...
@@ -8,8 +8,8 @@ android {
...
@@ -8,8 +8,8 @@ android {
applicationId
"cn.garymb.ygomobile"
applicationId
"cn.garymb.ygomobile"
minSdkVersion
16
minSdkVersion
16
targetSdkVersion
28
targetSdkVersion
28
versionCode
340
200331
versionCode
340
300407
versionName
"3.4.
2
"
versionName
"3.4.
3
"
flavorDimensions
"versionCode"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
vectorDrawables
.
useSupportLibrary
=
true
ndk
{
ndk
{
...
...
mobile/src/main/java/ocgcore/StringManager.java
View file @
49720f62
...
@@ -35,7 +35,7 @@ public class StringManager implements Closeable {
...
@@ -35,7 +35,7 @@ public class StringManager implements Closeable {
}
}
@Override
@Override
public
void
close
(){
public
void
close
()
{
mSystem
.
clear
();
mSystem
.
clear
();
mCardSets
.
clear
();
mCardSets
.
clear
();
}
}
...
@@ -46,29 +46,29 @@ public class StringManager implements Closeable {
...
@@ -46,29 +46,29 @@ public class StringManager implements Closeable {
File
stringFile
=
new
File
(
AppsSettings
.
get
().
getResourcePath
(),
Constants
.
CORE_STRING_PATH
);
File
stringFile
=
new
File
(
AppsSettings
.
get
().
getResourcePath
(),
Constants
.
CORE_STRING_PATH
);
boolean
rs1
=
loadFile
(
stringFile
.
getAbsolutePath
());
boolean
rs1
=
loadFile
(
stringFile
.
getAbsolutePath
());
boolean
rs2
=
true
;
boolean
rs2
=
true
;
boolean
res3
=
true
;
boolean
res3
=
true
;
if
(
AppsSettings
.
get
().
isReadExpansions
())
{
if
(
AppsSettings
.
get
().
isReadExpansions
())
{
File
stringFile2
=
new
File
(
AppsSettings
.
get
().
getExpansionsPath
(),
Constants
.
CORE_STRING_PATH
);
File
stringFile2
=
new
File
(
AppsSettings
.
get
().
getExpansionsPath
(),
Constants
.
CORE_STRING_PATH
);
rs2
=
loadFile
(
stringFile2
.
getAbsolutePath
());
rs2
=
loadFile
(
stringFile2
.
getAbsolutePath
());
File
[]
files
=
AppsSettings
.
get
().
getExpansionsPath
().
listFiles
();
File
[]
files
=
AppsSettings
.
get
().
getExpansionsPath
().
listFiles
();
if
(
files
!=
null
)
{
if
(
files
!=
null
)
{
for
(
File
file:
files
)
{
for
(
File
file
:
files
)
{
if
(
file
.
isFile
()
&&
file
.
getName
().
endsWith
(
".zip"
))
{
if
(
file
.
isFile
()
&&
file
.
getName
().
endsWith
(
".zip"
))
{
try
{
try
{
ZipFile
zipFile
=
new
ZipFile
(
file
.
getAbsoluteFile
());
ZipFile
zipFile
=
new
ZipFile
(
file
.
getAbsoluteFile
());
ZipEntry
entry
=
zipFile
.
getEntry
(
Constants
.
CORE_STRING_PATH
);
ZipEntry
entry
=
zipFile
.
getEntry
(
Constants
.
CORE_STRING_PATH
);
if
(
entry
!=
null
)
{
if
(
entry
!=
null
)
{
res3
&=
loadFile
(
zipFile
.
getInputStream
(
entry
));
res3
&=
loadFile
(
zipFile
.
getInputStream
(
entry
));
}
}
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
res3
=
false
;
res3
=
false
;
}
}
}
}
}
}
}
}
}
}
return
rs1
&&
rs2
&&
res3
;
return
rs1
&&
rs2
&&
res3
;
}
}
public
boolean
loadFile
(
InputStream
inputStream
)
{
public
boolean
loadFile
(
InputStream
inputStream
)
{
...
...
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