Skip to content

Commit

Permalink
feat: prepare example iOS app
Browse files Browse the repository at this point in the history
  • Loading branch information
jakex7 committed Apr 8, 2023
1 parent ccc1c3b commit 91a1f32
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 2 deletions.
27 changes: 25 additions & 2 deletions example/ios/LocalizationSettingsExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
2376423229E0D9D20037F7CE /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 2376423429E0D9D20037F7CE /* Localizable.strings */; };
7699B88040F8A987B510C191 /* libPods-LocalizationSettingsExample-LocalizationSettingsExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-LocalizationSettingsExample-LocalizationSettingsExampleTests.a */; };
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */
Expand All @@ -37,6 +38,9 @@
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = LocalizationSettingsExample/Info.plist; sourceTree = "<group>"; };
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = LocalizationSettingsExample/main.m; sourceTree = "<group>"; };
19F6CBCC0A4E27FBF8BF4A61 /* libPods-LocalizationSettingsExample-LocalizationSettingsExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-LocalizationSettingsExample-LocalizationSettingsExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
2376423329E0D9D20037F7CE /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
2376423529E0D9D60037F7CE /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/Localizable.strings; sourceTree = "<group>"; };
2376423629E0D9D70037F7CE /* pl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pl; path = pl.lproj/Localizable.strings; sourceTree = "<group>"; };
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>"; };
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>"; };
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>"; };
Expand Down Expand Up @@ -92,6 +96,7 @@
13B07FB61A68108700A75B9A /* Info.plist */,
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
13B07FB71A68108700A75B9A /* main.m */,
2376423429E0D9D20037F7CE /* Localizable.strings */,
);
name = LocalizationSettingsExample;
sourceTree = "<group>";
Expand Down Expand Up @@ -218,6 +223,8 @@
knownRegions = (
en,
Base,
fr,
pl,
);
mainGroup = 83CBB9F61A601CBA00E9B192;
productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
Expand All @@ -243,6 +250,7 @@
buildActionMask = 2147483647;
files = (
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
2376423229E0D9D20037F7CE /* Localizable.strings in Resources */,
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -427,6 +435,19 @@
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
2376423429E0D9D20037F7CE /* Localizable.strings */ = {
isa = PBXVariantGroup;
children = (
2376423329E0D9D20037F7CE /* en */,
2376423529E0D9D60037F7CE /* fr */,
2376423629E0D9D70037F7CE /* pl */,
);
name = Localizable.strings;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
00E356F61AD99517003FC87E /* Debug */ = {
isa = XCBuildConfiguration;
Expand Down Expand Up @@ -564,7 +585,7 @@
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
Expand Down Expand Up @@ -598,6 +619,7 @@
"-DFOLLY_MOBILE=1",
"-DFOLLY_USE_LIBCPP=1",
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
};
name = Debug;
Expand Down Expand Up @@ -635,7 +657,7 @@
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
Expand All @@ -661,6 +683,7 @@
"-DFOLLY_MOBILE=1",
"-DFOLLY_USE_LIBCPP=1",
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
7 changes: 7 additions & 0 deletions example/ios/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
Localizable.strings
LocalizationSettingsExample

Created by Jakub Grzywacz on 08/04/2023.

*/
7 changes: 7 additions & 0 deletions example/ios/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
Localizable.strings
LocalizationSettingsExample

Created by Jakub Grzywacz on 08/04/2023.

*/
7 changes: 7 additions & 0 deletions example/ios/pl.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
Localizable.strings
LocalizationSettingsExample

Created by Jakub Grzywacz on 08/04/2023.

*/

0 comments on commit 91a1f32

Please sign in to comment.