Skip to content

Commit b2afdca

Browse files
committed
chore: add module name RNIterableAPI
1 parent 04d830a commit b2afdca

3 files changed

Lines changed: 34 additions & 28 deletions

File tree

example/ios/ReactNativeSdkExample.xcodeproj/project.pbxproj

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
77E3B5792EA71A4B001449CE /* JwtTokenModule.swift in Sources */ = {isa = PBXBuildFile; fileRef = 77E3B5762EA71A4B001449CE /* JwtTokenModule.swift */; };
1616
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
1717
A3A40C20801B8F02005FA4C0 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 1FC6B09E65A7BD9F6864C5D8 /* PrivacyInfo.xcprivacy */; };
18-
B804593B76DC91CD857236FC /* libPods-ReactNativeSdkExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FA4B1C707F844C0A8CFB73F4 /* libPods-ReactNativeSdkExample.a */; };
18+
EB0D43EFAA5400C8CE9BD718 /* libPods-ReactNativeSdkExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 274D967BFE0AC884F8ECC7AD /* libPods-ReactNativeSdkExample.a */; };
1919
/* End PBXBuildFile section */
2020

2121
/* Begin PBXContainerItemProxy section */
@@ -32,23 +32,23 @@
3232
00E356EE1AD99517003FC87E /* ReactNativeSdkExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNativeSdkExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3333
00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3434
00E356F21AD99517003FC87E /* ReactNativeSdkExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeSdkExampleTests.m; sourceTree = "<group>"; };
35-
09E5CA38B321A5355583A2DD /* Pods-ReactNativeSdkExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeSdkExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample.release.xcconfig"; sourceTree = "<group>"; };
3635
13B07F961A680F5B00A75B9A /* ReactNativeSdkExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeSdkExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
3736
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeSdkExample/Images.xcassets; sourceTree = "<group>"; };
3837
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeSdkExample/Info.plist; sourceTree = "<group>"; };
3938
13B07FB71A68108700A75B9A /* ReactNativeSdkExample.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; name = ReactNativeSdkExample.entitlements; path = ReactNativeSdkExample/ReactNativeSdkExample.entitlements; sourceTree = "<group>"; };
4039
13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = PrivacyInfo.xcprivacy; path = ReactNativeSdkExample/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
40+
1D5315AB364D7B554AB6BDBF /* Pods-ReactNativeSdkExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeSdkExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample.debug.xcconfig"; sourceTree = "<group>"; };
4141
1FC6B09E65A7BD9F6864C5D8 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = ReactNativeSdkExample/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
42+
274D967BFE0AC884F8ECC7AD /* libPods-ReactNativeSdkExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeSdkExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
43+
2E75418810C1FA96EE7F2A52 /* Pods-ReactNativeSdkExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeSdkExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample.release.xcconfig"; sourceTree = "<group>"; };
4244
779227312DFA3FB500D69EC0 /* ReactNativeSdkExample-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ReactNativeSdkExample-Bridging-Header.h"; sourceTree = "<group>"; };
4345
779227322DFA3FB500D69EC0 /* ReactNativeSdkExampleTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ReactNativeSdkExampleTests-Bridging-Header.h"; sourceTree = "<group>"; };
4446
779227332DFA3FB500D69EC0 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = ReactNativeSdkExample/AppDelegate.swift; sourceTree = "<group>"; };
4547
77E3B5742EA71A4B001449CE /* IterableJwtGenerator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IterableJwtGenerator.swift; sourceTree = "<group>"; };
4648
77E3B5752EA71A4B001449CE /* JwtTokenModule.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = JwtTokenModule.mm; sourceTree = "<group>"; };
4749
77E3B5762EA71A4B001449CE /* JwtTokenModule.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JwtTokenModule.swift; sourceTree = "<group>"; };
4850
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeSdkExample/LaunchScreen.storyboard; sourceTree = "<group>"; };
49-
C1DA5444DC0081630EF179C0 /* Pods-ReactNativeSdkExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeSdkExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample.debug.xcconfig"; sourceTree = "<group>"; };
5051
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
51-
FA4B1C707F844C0A8CFB73F4 /* libPods-ReactNativeSdkExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeSdkExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
5252
/* End PBXFileReference section */
5353

5454
/* Begin PBXFrameworksBuildPhase section */
@@ -63,7 +63,7 @@
6363
isa = PBXFrameworksBuildPhase;
6464
buildActionMask = 2147483647;
6565
files = (
66-
B804593B76DC91CD857236FC /* libPods-ReactNativeSdkExample.a in Frameworks */,
66+
EB0D43EFAA5400C8CE9BD718 /* libPods-ReactNativeSdkExample.a in Frameworks */,
6767
);
6868
runOnlyForDeploymentPostprocessing = 0;
6969
};
@@ -107,7 +107,7 @@
107107
isa = PBXGroup;
108108
children = (
109109
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
110-
FA4B1C707F844C0A8CFB73F4 /* libPods-ReactNativeSdkExample.a */,
110+
274D967BFE0AC884F8ECC7AD /* libPods-ReactNativeSdkExample.a */,
111111
);
112112
name = Frameworks;
113113
sourceTree = "<group>";
@@ -149,8 +149,8 @@
149149
BBD78D7AC51CEA395F1C20DB /* Pods */ = {
150150
isa = PBXGroup;
151151
children = (
152-
C1DA5444DC0081630EF179C0 /* Pods-ReactNativeSdkExample.debug.xcconfig */,
153-
09E5CA38B321A5355583A2DD /* Pods-ReactNativeSdkExample.release.xcconfig */,
152+
1D5315AB364D7B554AB6BDBF /* Pods-ReactNativeSdkExample.debug.xcconfig */,
153+
2E75418810C1FA96EE7F2A52 /* Pods-ReactNativeSdkExample.release.xcconfig */,
154154
);
155155
path = Pods;
156156
sourceTree = "<group>";
@@ -180,13 +180,13 @@
180180
isa = PBXNativeTarget;
181181
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeSdkExample" */;
182182
buildPhases = (
183-
BC0ECB5C70E9CDFEE460DF64 /* [CP] Check Pods Manifest.lock */,
183+
8611E06F81FDE97F529D2E6E /* [CP] Check Pods Manifest.lock */,
184184
13B07F871A680F5B00A75B9A /* Sources */,
185185
13B07F8C1A680F5B00A75B9A /* Frameworks */,
186186
13B07F8E1A680F5B00A75B9A /* Resources */,
187187
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
188-
E429DD2BC394E2F8DFDB9474 /* [CP] Embed Pods Frameworks */,
189-
0D1AB9D1827571B076AE8E96 /* [CP] Copy Pods Resources */,
188+
1E23D51F2EED625C8E695921 /* [CP] Embed Pods Frameworks */,
189+
8BEEA55E95F34E408A649470 /* [CP] Copy Pods Resources */,
190190
);
191191
buildRules = (
192192
);
@@ -271,24 +271,24 @@
271271
shellPath = /bin/sh;
272272
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
273273
};
274-
0D1AB9D1827571B076AE8E96 /* [CP] Copy Pods Resources */ = {
274+
1E23D51F2EED625C8E695921 /* [CP] Embed Pods Frameworks */ = {
275275
isa = PBXShellScriptBuildPhase;
276276
buildActionMask = 2147483647;
277277
files = (
278278
);
279279
inputFileListPaths = (
280-
"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample-resources-${CONFIGURATION}-input-files.xcfilelist",
280+
"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample-frameworks-${CONFIGURATION}-input-files.xcfilelist",
281281
);
282-
name = "[CP] Copy Pods Resources";
282+
name = "[CP] Embed Pods Frameworks";
283283
outputFileListPaths = (
284-
"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample-resources-${CONFIGURATION}-output-files.xcfilelist",
284+
"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample-frameworks-${CONFIGURATION}-output-files.xcfilelist",
285285
);
286286
runOnlyForDeploymentPostprocessing = 0;
287287
shellPath = /bin/sh;
288-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample-resources.sh\"\n";
288+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample-frameworks.sh\"\n";
289289
showEnvVarsInLog = 0;
290290
};
291-
BC0ECB5C70E9CDFEE460DF64 /* [CP] Check Pods Manifest.lock */ = {
291+
8611E06F81FDE97F529D2E6E /* [CP] Check Pods Manifest.lock */ = {
292292
isa = PBXShellScriptBuildPhase;
293293
buildActionMask = 2147483647;
294294
files = (
@@ -310,21 +310,21 @@
310310
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
311311
showEnvVarsInLog = 0;
312312
};
313-
E429DD2BC394E2F8DFDB9474 /* [CP] Embed Pods Frameworks */ = {
313+
8BEEA55E95F34E408A649470 /* [CP] Copy Pods Resources */ = {
314314
isa = PBXShellScriptBuildPhase;
315315
buildActionMask = 2147483647;
316316
files = (
317317
);
318318
inputFileListPaths = (
319-
"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample-frameworks-${CONFIGURATION}-input-files.xcfilelist",
319+
"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample-resources-${CONFIGURATION}-input-files.xcfilelist",
320320
);
321-
name = "[CP] Embed Pods Frameworks";
321+
name = "[CP] Copy Pods Resources";
322322
outputFileListPaths = (
323-
"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample-frameworks-${CONFIGURATION}-output-files.xcfilelist",
323+
"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample-resources-${CONFIGURATION}-output-files.xcfilelist",
324324
);
325325
runOnlyForDeploymentPostprocessing = 0;
326326
shellPath = /bin/sh;
327-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample-frameworks.sh\"\n";
327+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSdkExample/Pods-ReactNativeSdkExample-resources.sh\"\n";
328328
showEnvVarsInLog = 0;
329329
};
330330
/* End PBXShellScriptBuildPhase section */
@@ -420,7 +420,7 @@
420420
};
421421
13B07F941A680F5B00A75B9A /* Debug */ = {
422422
isa = XCBuildConfiguration;
423-
baseConfigurationReference = C1DA5444DC0081630EF179C0 /* Pods-ReactNativeSdkExample.debug.xcconfig */;
423+
baseConfigurationReference = 1D5315AB364D7B554AB6BDBF /* Pods-ReactNativeSdkExample.debug.xcconfig */;
424424
buildSettings = {
425425
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
426426
CLANG_ENABLE_MODULES = YES;
@@ -451,7 +451,7 @@
451451
};
452452
13B07F951A680F5B00A75B9A /* Release */ = {
453453
isa = XCBuildConfiguration;
454-
baseConfigurationReference = 09E5CA38B321A5355583A2DD /* Pods-ReactNativeSdkExample.release.xcconfig */;
454+
baseConfigurationReference = 2E75418810C1FA96EE7F2A52 /* Pods-ReactNativeSdkExample.release.xcconfig */;
455455
buildSettings = {
456456
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
457457
CLANG_ENABLE_MODULES = YES;

example/ios/ReactNativeSdkExample/Info.plist

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,23 @@
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
2424
<string>$(CURRENT_PROJECT_VERSION)</string>
25-
<key>LSRequiresIPhoneOS</key>
26-
<true/>
2725
<key>LSApplicationQueriesSchemes</key>
2826
<array>
29-
<string>javascript</string>
27+
<string>javascript</string>
3028
</array>
29+
<key>LSRequiresIPhoneOS</key>
30+
<true/>
3131
<key>NSAppTransportSecurity</key>
3232
<dict>
33-
<!-- Do not change NSAllowsArbitraryLoads to true, or you will risk app rejection! -->
3433
<key>NSAllowsArbitraryLoads</key>
3534
<false/>
3635
<key>NSAllowsLocalNetworking</key>
3736
<true/>
3837
</dict>
3938
<key>NSLocationWhenInUseUsageDescription</key>
4039
<string></string>
40+
<key>RCTNewArchEnabled</key>
41+
<true/>
4142
<key>UILaunchStoryboardName</key>
4243
<string>LaunchScreen</string>
4344
<key>UIRequiredDeviceCapabilities</key>

ios/RNIterableAPI/RNIterableAPI.mm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,11 @@ - (void)wakeApp {
343343
return std::make_shared<facebook::react::NativeRNIterableAPISpecJSI>(params);
344344
}
345345

346+
+ (NSString *)moduleName
347+
{
348+
return @"RNIterableAPI";
349+
}
350+
346351
#else
347352

348353
// MARK: - RCTBridgeModule integration for Legacy Architecture

0 commit comments

Comments
 (0)