Skip to content

Commit e8909f3

Browse files
author
Paul Ruiz
committed
Added an example for multiple product flavors and resource folders
1 parent b8a0fe9 commit e8909f3

File tree

7 files changed

+8
-12
lines changed

7 files changed

+8
-12
lines changed

ProductFlavorsandResources/app/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ android {
1212
}
1313
buildTypes {
1414
release {
15+
//This is where the signing cert would be referenced for the release build
1516
}
1617
debug {
18+
//This is where the signing cert would be referenced for the debug build
1719
}
1820
}
1921

ProductFlavorsandResources/app/src/blue/res/values/strings.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<resources>
33

44
<string name="app_name">Gradle Product Flavors - Blue</string>
5-
<string name="main_text">This is the blue product flavor</string>
6-
<string name="action_settings">Settings</string>
5+
<string name="product_flavor_text">This is the blue product flavor</string>
76

87
</resources>

ProductFlavorsandResources/app/src/green/res/values/strings.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<resources>
33

44
<string name="app_name">Gradle Product Flavors - Green</string>
5-
<string name="main_text">This is the green product flavor</string>
6-
<string name="action_settings">Settings</string>
5+
<string name="product_flavor_text">This is the green product flavor</string>
76

87
</resources>

ProductFlavorsandResources/app/src/orange/res/values/strings.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<resources>
33

44
<string name="app_name">Gradle Product Flavors - Orange</string>
5-
<string name="main_text">This is the orange product flavor</string>
6-
<string name="action_settings">Settings</string>
5+
<string name="product_flavor_text">This is the orange product flavor</string>
76

87
</resources>

ProductFlavorsandResources/app/src/purple/res/values/strings.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<resources>
33

44
<string name="app_name">Gradle Product Flavors - Purple</string>
5-
<string name="main_text">This is the purple product flavor</string>
6-
<string name="action_settings">Settings</string>
5+
<string name="product_flavor_text">This is the purple product flavor</string>
76

87
</resources>

ProductFlavorsandResources/app/src/red/res/values/strings.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<resources>
33

44
<string name="app_name">Gradle Product Flavors - Red</string>
5-
<string name="main_text">This is the red product flavor</string>
6-
<string name="action_settings">Settings</string>
5+
<string name="product_flavor_text">This is the red product flavor</string>
76

87
</resources>

ProductFlavorsandResources/app/src/yellow/res/values/strings.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<resources>
33

44
<string name="app_name">Gradle Product Flavors - Yellow</string>
5-
<string name="main_text">This is the yellow product flavor</string>
6-
<string name="action_settings">Settings</string>
5+
<string name="product_flavor_text">This is the yellow product flavor</string>
76

87
</resources>

0 commit comments

Comments
 (0)