Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ target 'ReactNativeSdkExample' do
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

target 'ReactNativeSdkExampleTests' do
inherit! :complete
# Pods for testing
end

post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
Expand Down
141 changes: 40 additions & 101 deletions example/ios/ReactNativeSdkExample.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions example/ios/ReactNativeSdkExample/AppDelegate.h

This file was deleted.

33 changes: 0 additions & 33 deletions example/ios/ReactNativeSdkExample/AppDelegate.mm

This file was deleted.

56 changes: 56 additions & 0 deletions example/ios/ReactNativeSdkExample/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
//
// AppDelegate.swift
// ReactNativeSdkExample
//
// Created by Loren Posen on 6/11/25.
//

import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider

@main
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?

var reactNativeDelegate: ReactNativeDelegate?
var reactNativeFactory: RCTReactNativeFactory?

func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
let delegate = ReactNativeDelegate()
let factory = RCTReactNativeFactory(delegate: delegate)
delegate.dependencyProvider = RCTAppDependencyProvider()

reactNativeDelegate = delegate
reactNativeFactory = factory

window = UIWindow(frame: UIScreen.main.bounds)

factory.startReactNative(
withModuleName: "ReactNativeSdkExample",
in: window,
launchOptions: launchOptions
)

return true
}
}

class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
override func sourceURL(for bridge: RCTBridge) -> URL? {
self.bundleURL()
}

override func bundleURL() -> URL? {
#if DEBUG
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
}

10 changes: 0 additions & 10 deletions example/ios/ReactNativeSdkExample/main.m

This file was deleted.

4 changes: 4 additions & 0 deletions example/ios/ReactNativeSdkExampleTests-Bridging-Header.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//

10 changes: 6 additions & 4 deletions ios/RNIterableAPI.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/* Begin PBXBuildFile section */
AC13877D243BA05600A02674 /* Serialization.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC13877C243BA05600A02674 /* Serialization.swift */; };
AC76DC322423C2290071587E /* ReactIterableAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC76DC302423C2290071587E /* ReactIterableAPI.swift */; };
ACDDDF2224212BB9001686E5 /* RNIterableAPI.m in Sources */ = {isa = PBXBuildFile; fileRef = ACDDDF2124212BB9001686E5 /* RNIterableAPI.m */; };
ACDDDF2224212BB9001686E5 /* RNIterableAPI.mm in Sources */ = {isa = PBXBuildFile; fileRef = ACDDDF2124212BB9001686E5 /* RNIterableAPI.mm */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
Expand All @@ -25,11 +25,12 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
779227302DFA3AD400D69EC0 /* RNIterableAPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNIterableAPI.h; sourceTree = "<group>"; };
AC13877C243BA05600A02674 /* Serialization.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Serialization.swift; sourceTree = "<group>"; };
AC547A9024004D39008782E7 /* libRNIterableAPI.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNIterableAPI.a; sourceTree = BUILT_PRODUCTS_DIR; };
AC76DC302423C2290071587E /* ReactIterableAPI.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ReactIterableAPI.swift; sourceTree = "<group>"; };
AC76DC312423C2290071587E /* RNIterable-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "RNIterable-Bridging-Header.h"; sourceTree = "<group>"; };
ACDDDF2124212BB9001686E5 /* RNIterableAPI.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNIterableAPI.m; sourceTree = "<group>"; };
ACDDDF2124212BB9001686E5 /* RNIterableAPI.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RNIterableAPI.mm; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -65,7 +66,8 @@
AC13877C243BA05600A02674 /* Serialization.swift */,
AC76DC302423C2290071587E /* ReactIterableAPI.swift */,
AC76DC312423C2290071587E /* RNIterable-Bridging-Header.h */,
ACDDDF2124212BB9001686E5 /* RNIterableAPI.m */,
ACDDDF2124212BB9001686E5 /* RNIterableAPI.mm */,
779227302DFA3AD400D69EC0 /* RNIterableAPI.h */,
);
path = RNIterableAPI;
sourceTree = "<group>";
Expand Down Expand Up @@ -130,7 +132,7 @@
files = (
AC76DC322423C2290071587E /* ReactIterableAPI.swift in Sources */,
AC13877D243BA05600A02674 /* Serialization.swift in Sources */,
ACDDDF2224212BB9001686E5 /* RNIterableAPI.m in Sources */,
ACDDDF2224212BB9001686E5 /* RNIterableAPI.mm in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
9 changes: 9 additions & 0 deletions ios/RNIterableAPI/RNIterableAPI.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
// RNIterableAPI.h
// RNIterableAPI
//
// Created by Loren Posen on 6/11/25.
// Copyright © 2025 Iterable. All rights reserved.
//
#import <React/RCTBridgeModule.h>

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// Created by Tapash Majumder on 3/19/20.
// Copyright © 2020 Iterable. All rights reserved.
//

#import <React/RCTBridgeModule.h>
#import "RNIterableAPI.h"

@interface RCT_EXTERN_REMAP_MODULE(RNIterableAPI, ReactIterableAPI, NSObject)

Expand Down