Skip to content

Commit

Permalink
you build variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiserdragon2 committed Sep 4, 2024
1 parent e37c632 commit a7590ea
Show file tree
Hide file tree
Showing 1,495 changed files with 17,804 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,4 @@ app/release/baselineProfiles/1/snow-v1-release.dm
app/release/output-metadata.json
/app/release
/mail
**/you/res/drawable-anydpi/
31 changes: 31 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,37 @@ android {
debuggable true
minifyEnabled false
}
applicationVariants.all { variant ->

if (variant.flavorName == "you") {
variant.preBuildProvider.get().dependsOn(":preparehelper:runyou")
}else if (variant.flavorName == "normal") {
variant.preBuildProvider.get().dependsOn(":preparehelper:runnormal")
}
// Add more conditions for additional flavors
}
}

flavorDimensions += "variant"
productFlavors {
normal {
dimension "variant"
resValue "string", "app_name", "Snow"
}
you {
dimension "variant"
minSdkVersion "26"
applicationIdSuffix '.you'
resValue "string", "app_name", "Snow Material You"
}

}

sourceSets {
normal { res.srcDirs = ['src/normal/res'] }
you { res.srcDirs = ['src/you/res'] }
}

namespace 'org.baitmooth.snow'
compileOptions {
encoding = 'UTF-8'
Expand All @@ -64,6 +94,7 @@ dependencies {
}



// Code for automatically copying appfilter.xml and drawable.xml
// from `res/xml` directory to `assets` directory
tasks.register('copyXMLs') {
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit a7590ea

Please sign in to comment.