diff --git a/android/app/build.gradle b/android/app/build.gradle
index b235dab..8013b53 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -64,7 +64,7 @@ android {
multiDexEnabled true
}
- // AGP 9 turns resValue off by default; the flavors use it for app_name.
+ // AGP 9 turns resValue off by default; the dev and staging flavors use it for app_name.
buildFeatures {
resValues true
}
@@ -80,16 +80,16 @@ android {
dev {
dimension "env"
applicationIdSuffix ".dev"
- resValue "string", "app_name", "Codes USSD (Dev)"
+ resValue "string", "app_name", "USSD Codes (Dev)"
}
staging {
dimension "env"
applicationIdSuffix ".staging"
- resValue "string", "app_name", "Codes USSD (Staging)"
+ resValue "string", "app_name", "USSD Codes (Staging)"
}
prod {
dimension "env"
- resValue "string", "app_name", "Codes USSD"
+ // app_name comes from src/prod/res/values*/strings.xml, one per app language.
}
}
diff --git a/android/app/src/prod/res/values-fr/strings.xml b/android/app/src/prod/res/values-fr/strings.xml
new file mode 100644
index 0000000..d77dcf7
--- /dev/null
+++ b/android/app/src/prod/res/values-fr/strings.xml
@@ -0,0 +1,4 @@
+
+
+ Codes USSD
+
diff --git a/android/app/src/prod/res/values/strings.xml b/android/app/src/prod/res/values/strings.xml
new file mode 100644
index 0000000..b6fa1e5
--- /dev/null
+++ b/android/app/src/prod/res/values/strings.xml
@@ -0,0 +1,4 @@
+
+
+ USSD Codes
+
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
index 39f0b09..655eed1 100644
--- a/ios/Runner.xcodeproj/project.pbxproj
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -7,6 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
+ 340F47BC1ACC846B6F688494 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6CCCEFFB4E94F41654F7038D /* InfoPlist.strings */; };
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
2CBE31F92C33EBE29D14E370 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B55E067D2CC691CF0A7DD3D4 /* Pods_RunnerTests.framework */; };
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
@@ -43,6 +44,8 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
+ A07B2BC037417F431F3DD721 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
+ 06E247DDD60CB913F49D3E52 /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/InfoPlist.strings; sourceTree = ""; };
024E2F5A926C4D1435BFC224 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; };
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
@@ -160,6 +163,7 @@
97C146FD1CF9000F007C117D /* Assets.xcassets */,
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
97C147021CF9000F007C117D /* Info.plist */,
+ 6CCCEFFB4E94F41654F7038D /* InfoPlist.strings */,
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
@@ -243,6 +247,7 @@
knownRegions = (
en,
Base,
+ fr,
);
mainGroup = 97C146E51CF9000F007C117D;
packageReferences = (
@@ -274,6 +279,7 @@
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ 340F47BC1ACC846B6F688494 /* InfoPlist.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -420,6 +426,15 @@
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
+ 6CCCEFFB4E94F41654F7038D /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ A07B2BC037417F431F3DD721 /* en */,
+ 06E247DDD60CB913F49D3E52 /* fr */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "";
+ };
97C146FA1CF9000F007C117D /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index cf80720..0d58a57 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -2,10 +2,15 @@
+ CFBundleLocalizations
+
+ en
+ fr
+
CFBundleDevelopmentRegion
$(DEVELOPMENT_LANGUAGE)
CFBundleDisplayName
- Codes USSD
+ USSD Codes
CFBundleExecutable
$(EXECUTABLE_NAME)
CFBundleIdentifier
@@ -13,7 +18,7 @@
CFBundleInfoDictionaryVersion
6.0
CFBundleName
- Codes USSD
+ USSD Codes
CFBundlePackageType
APPL
CFBundleShortVersionString
diff --git a/ios/Runner/en.lproj/InfoPlist.strings b/ios/Runner/en.lproj/InfoPlist.strings
new file mode 100644
index 0000000..afe1810
--- /dev/null
+++ b/ios/Runner/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "USSD Codes";
+"CFBundleName" = "USSD Codes";
diff --git a/ios/Runner/fr.lproj/InfoPlist.strings b/ios/Runner/fr.lproj/InfoPlist.strings
new file mode 100644
index 0000000..0962f4f
--- /dev/null
+++ b/ios/Runner/fr.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+"CFBundleDisplayName" = "Codes USSD";
+"CFBundleName" = "Codes USSD";