Skip to content

Commit 91a1f32

Browse files
committed
feat: prepare example iOS app
1 parent ccc1c3b commit 91a1f32

File tree

6 files changed

+64
-2
lines changed

6 files changed

+64
-2
lines changed

example/ios/LocalizationSettingsExample.xcodeproj/project.pbxproj

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
1313
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1414
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
15+
2376423229E0D9D20037F7CE /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 2376423429E0D9D20037F7CE /* Localizable.strings */; };
1516
7699B88040F8A987B510C191 /* libPods-LocalizationSettingsExample-LocalizationSettingsExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-LocalizationSettingsExample-LocalizationSettingsExampleTests.a */; };
1617
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
1718
/* End PBXBuildFile section */
@@ -37,6 +38,9 @@
3738
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = LocalizationSettingsExample/Info.plist; sourceTree = "<group>"; };
3839
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = LocalizationSettingsExample/main.m; sourceTree = "<group>"; };
3940
19F6CBCC0A4E27FBF8BF4A61 /* libPods-LocalizationSettingsExample-LocalizationSettingsExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-LocalizationSettingsExample-LocalizationSettingsExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
41+
2376423329E0D9D20037F7CE /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
42+
2376423529E0D9D60037F7CE /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/Localizable.strings; sourceTree = "<group>"; };
43+
2376423629E0D9D70037F7CE /* pl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pl; path = pl.lproj/Localizable.strings; sourceTree = "<group>"; };
4044
3B4392A12AC88292D35C810B /* Pods-LocalizationSettingsExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LocalizationSettingsExample.debug.xcconfig"; path = "Target Support Files/Pods-LocalizationSettingsExample/Pods-LocalizationSettingsExample.debug.xcconfig"; sourceTree = "<group>"; };
4145
5709B34CF0A7D63546082F79 /* Pods-LocalizationSettingsExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LocalizationSettingsExample.release.xcconfig"; path = "Target Support Files/Pods-LocalizationSettingsExample/Pods-LocalizationSettingsExample.release.xcconfig"; sourceTree = "<group>"; };
4246
5B7EB9410499542E8C5724F5 /* Pods-LocalizationSettingsExample-LocalizationSettingsExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LocalizationSettingsExample-LocalizationSettingsExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-LocalizationSettingsExample-LocalizationSettingsExampleTests/Pods-LocalizationSettingsExample-LocalizationSettingsExampleTests.debug.xcconfig"; sourceTree = "<group>"; };
@@ -92,6 +96,7 @@
9296
13B07FB61A68108700A75B9A /* Info.plist */,
9397
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
9498
13B07FB71A68108700A75B9A /* main.m */,
99+
2376423429E0D9D20037F7CE /* Localizable.strings */,
95100
);
96101
name = LocalizationSettingsExample;
97102
sourceTree = "<group>";
@@ -218,6 +223,8 @@
218223
knownRegions = (
219224
en,
220225
Base,
226+
fr,
227+
pl,
221228
);
222229
mainGroup = 83CBB9F61A601CBA00E9B192;
223230
productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
@@ -243,6 +250,7 @@
243250
buildActionMask = 2147483647;
244251
files = (
245252
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
253+
2376423229E0D9D20037F7CE /* Localizable.strings in Resources */,
246254
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
247255
);
248256
runOnlyForDeploymentPostprocessing = 0;
@@ -427,6 +435,19 @@
427435
};
428436
/* End PBXTargetDependency section */
429437

438+
/* Begin PBXVariantGroup section */
439+
2376423429E0D9D20037F7CE /* Localizable.strings */ = {
440+
isa = PBXVariantGroup;
441+
children = (
442+
2376423329E0D9D20037F7CE /* en */,
443+
2376423529E0D9D60037F7CE /* fr */,
444+
2376423629E0D9D70037F7CE /* pl */,
445+
);
446+
name = Localizable.strings;
447+
sourceTree = "<group>";
448+
};
449+
/* End PBXVariantGroup section */
450+
430451
/* Begin XCBuildConfiguration section */
431452
00E356F61AD99517003FC87E /* Debug */ = {
432453
isa = XCBuildConfiguration;
@@ -564,7 +585,7 @@
564585
COPY_PHASE_STRIP = NO;
565586
ENABLE_STRICT_OBJC_MSGSEND = YES;
566587
ENABLE_TESTABILITY = YES;
567-
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
588+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
568589
GCC_C_LANGUAGE_STANDARD = gnu99;
569590
GCC_DYNAMIC_NO_PIC = NO;
570591
GCC_NO_COMMON_BLOCKS = YES;
@@ -598,6 +619,7 @@
598619
"-DFOLLY_MOBILE=1",
599620
"-DFOLLY_USE_LIBCPP=1",
600621
);
622+
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
601623
SDKROOT = iphoneos;
602624
};
603625
name = Debug;
@@ -635,7 +657,7 @@
635657
COPY_PHASE_STRIP = YES;
636658
ENABLE_NS_ASSERTIONS = NO;
637659
ENABLE_STRICT_OBJC_MSGSEND = YES;
638-
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
660+
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
639661
GCC_C_LANGUAGE_STANDARD = gnu99;
640662
GCC_NO_COMMON_BLOCKS = YES;
641663
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -661,6 +683,7 @@
661683
"-DFOLLY_MOBILE=1",
662684
"-DFOLLY_USE_LIBCPP=1",
663685
);
686+
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
664687
SDKROOT = iphoneos;
665688
VALIDATE_PRODUCT = YES;
666689
};

example/ios/LocalizationSettingsExample.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
Localizable.strings
3+
LocalizationSettingsExample
4+
5+
Created by Jakub Grzywacz on 08/04/2023.
6+
7+
*/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
Localizable.strings
3+
LocalizationSettingsExample
4+
5+
Created by Jakub Grzywacz on 08/04/2023.
6+
7+
*/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
Localizable.strings
3+
LocalizationSettingsExample
4+
5+
Created by Jakub Grzywacz on 08/04/2023.
6+
7+
*/

0 commit comments

Comments
 (0)