Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ClashForAndroid
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
ClashForAndroid
Commits
c7d33c68
There was an error fetching the commit references. Please try again later.
Commit
c7d33c68
authored
3 years ago
by
Kr328
Browse files
Options
Downloads
Patches
Plain Diff
Chore: clean build gradle
parent
b2661d31
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.gradle.kts
+13
-19
13 additions, 19 deletions
build.gradle.kts
with
13 additions
and
19 deletions
build.gradle.kts
+
13
−
19
View file @
c7d33c68
...
...
@@ -34,29 +34,19 @@ subprojects {
apply
(
plugin
=
if
(
isApp
)
"com.android.application"
else
"com.android.library"
)
extensions
.
configure
<
BaseExtension
>
{
val
minSdkVersion
=
21
val
targetSdkVersion
=
31
val
buildVersionCode
=
205003
val
buildVersionName
=
"2.5.3"
val
defaultDimension
=
"feature"
ndkVersion
=
"23.0.7599858"
compileSdkVersion
(
targetSdkVersion
)
defaultConfig
{
if
(
isApp
)
{
applicationId
=
"com.github.kr328.clash"
}
minSdk
=
minSdkVersion
targetSdk
=
targetSdkVersion
minSdk
=
21
targetSdk
=
31
versionName
=
buildVersionName
versionCode
=
buildVersionCode
versionName
=
"2.5.3"
versionCode
=
205003
resValue
(
"string"
,
"release_name"
,
"v$
buildV
ersionName"
)
resValue
(
"integer"
,
"release_code"
,
"$
buildV
ersionCode"
)
resValue
(
"string"
,
"release_name"
,
"v$
v
ersionName"
)
resValue
(
"integer"
,
"release_code"
,
"$
v
ersionCode"
)
externalNativeBuild
{
cmake
{
...
...
@@ -71,6 +61,10 @@ subprojects {
}
}
ndkVersion
=
"23.0.7599858"
compileSdkVersion
(
defaultConfig
.
targetSdk
!!
)
if
(
isApp
)
{
packagingOptions
{
excludes
.
add
(
"DebugProbesKt.bin"
)
...
...
@@ -78,11 +72,11 @@ subprojects {
}
productFlavors
{
flavorDimensions
(
defaultDimension
)
flavorDimensions
(
"feature"
)
create
(
"foss"
)
{
isDefault
=
true
dimension
=
default
Dimension
dimension
=
flavor
Dimension
List
[
0
]
versionNameSuffix
=
".foss"
buildConfigField
(
"boolean"
,
"PREMIUM"
,
"Boolean.parseBoolean(\"false\")"
)
...
...
@@ -92,7 +86,7 @@ subprojects {
}
}
create
(
"premium"
)
{
dimension
=
default
Dimension
dimension
=
flavor
Dimension
List
[
0
]
versionNameSuffix
=
".premium"
buildConfigField
(
"boolean"
,
"PREMIUM"
,
"Boolean.parseBoolean(\"true\")"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment