Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
savepopulation authored Jan 2, 2021
2 parents f4ac896 + ed1c963 commit 4f57ac6
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,18 @@
[![alt text][InstagramIcon]][Instagram]
[![alt text][TelegramIcon]][Telegram]

### [#178 Sequence](/codes/Sequence.kt)
### [#181 Sequence](/codes/Sequence.kt)
![alt text](/screenshots/Sequence.png)

### [#180 Providing Build Config Fields on Multi-Dimensional Flavor Types](/codes/MultiDimensionalFlavorConfigFields.gradle)
![alt text](/screenshots/MultiDimensionalFlavorConfigFields.png)

### #179 Bitmap Extension
![alt text](/screenshots/BitmapExtension.png)

### #178 BuildScript vs Allprojects
![alt text](/screenshots/BuildscriptVsAllprojects.png)

### [#177 Transient Annotation](/codes/Transient.kt)
![alt text](/screenshots/Transient.png)

Expand Down
45 changes: 45 additions & 0 deletions codes/MultiDimensionalFlavorConfigFields.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* Providing build config fields on multi-dimensional flavor types
*/

android {
flavorDimensions Dimensions.default, Dimensions.type
productFlavors {
prod {
dimension Dimensions.default
}

beta {
dimension Dimensions.default
}

alpha {
dimension Dimensions.default
}

dev {
dimension Dimensions.default
}

free {
dimension Dimensions.type
}

paid {
dimension Dimensions.type
}
}

// Use combination of the flavor names
libraryVariants.all { variant ->
if (variant.getName().startsWith("prodPaid")) {
variant.buildConfigField 'String', "key", "value"
} else if (variant.getName().startsWith("betaPaid")) {
variant.buildConfigField 'String', "key", "value"
} else if (variant.getName().startsWith("alphaPaid")) {
variant.buildConfigField 'String', "key", "value"
} else if (variant.getName().startsWith("devPaid")) {
variant.buildConfigField 'String', "key", "value"
}
}
}
Binary file modified screenshots/.DS_Store
Binary file not shown.
Binary file added screenshots/BitmapExtension.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/BuildscriptVsAllprojects.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4f57ac6

Please sign in to comment.