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
6dace959
Commit
6dace959
authored
Dec 06, 2017
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split ABIs for smaller apk size
parent
d5c1455a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
mobile/build.gradle
mobile/build.gradle
+19
-1
No files found.
mobile/build.gradle
View file @
6dace959
import
com.android.build.OutputFile
import
java.util.regex.Matcher
import
java.util.regex.Matcher
import
java.util.regex.Pattern
import
java.util.regex.Pattern
...
@@ -19,7 +20,7 @@ android {
...
@@ -19,7 +20,7 @@ android {
applicationId
"com.github.shadowsocks"
applicationId
"com.github.shadowsocks"
minSdkVersion
rootProject
.
minSdkVersion
minSdkVersion
rootProject
.
minSdkVersion
targetSdkVersion
rootProject
.
sdkVersion
targetSdkVersion
rootProject
.
sdkVersion
versionCode
200
versionCode
1
versionName
"4.4.0"
versionName
"4.4.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
vectorDrawables
.
useSupportLibrary
true
vectorDrawables
.
useSupportLibrary
true
...
@@ -37,6 +38,15 @@ android {
...
@@ -37,6 +38,15 @@ android {
}
}
lintOptions
{
lintOptions
{
abortOnError
false
abortOnError
false
checkReleaseBuilds
false
}
splits
{
abi
{
enable
true
reset
()
include
'armeabi-v7a'
,
'arm64-v8a'
,
'x86'
universalApk
false
}
}
}
sourceSets
.
main
.
jniLibs
.
srcDirs
+=
sourceSets
.
main
.
jniLibs
.
srcDirs
+=
new
File
(
project
(
':core'
).
buildDir
,
"intermediates/bundles/${getCurrentFlavor()}/jni"
)
new
File
(
project
(
':core'
).
buildDir
,
"intermediates/bundles/${getCurrentFlavor()}/jni"
)
...
@@ -78,3 +88,11 @@ repositories {
...
@@ -78,3 +88,11 @@ repositories {
}
}
apply
plugin:
'com.google.gms.google-services'
apply
plugin:
'com.google.gms.google-services'
ext
.
abiCodes
=
[
'armeabi-v7a'
:
1
,
'arm64-v8a'
:
2
,
x86:
3
]
android
.
applicationVariants
.
all
{
variant
->
variant
.
outputs
.
each
{
output
->
def
baseAbiVersionCode
=
project
.
ext
.
abiCodes
.
get
(
output
.
getFilter
(
OutputFile
.
ABI
))
if
(
baseAbiVersionCode
!=
null
)
output
.
versionCodeOverride
=
baseAbiVersionCode
*
1000
+
variant
.
versionCode
}
}
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