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
8 changes: 4 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ react-native-purchases/
│ ├── RNPurchasesConverters.kt
│ ├── RNPurchasesPackage.java
│ └── GoogleUpgradeInfo.java
├── ios/ # iOS native module (Obj-C/Swift)
│ ├── RNPurchases.m
│ └── PurchasesPlugin.swift
├── ios/ # iOS native module (Obj-C)
│ ├── RNPurchases.h
│ └── RNPurchases.m
├── __tests__/ # Jest test suites
├── examples/
│ ├── MagicWeather/ # Complete example app
Expand Down Expand Up @@ -105,7 +105,7 @@ yarn prepare-expo
1. **TypeScript Wrapper** (`src/purchases.ts`) — Type-safe public API
2. **Native Bridge** (`PurchasesHybridCommon`) — iOS/Android hybrid mappings come from the corresponding PHC libraries
3. **Native Modules**:
- iOS: `ios/RNPurchases.m`, `ios/PurchasesPlugin.swift`
- iOS: `ios/RNPurchases.m`
- Android: `android/.../RNPurchasesModule.java`
4. **Browser Fallback** (`src/browser/`) — For web/Expo Go/Rork Sandbox environments

Expand Down
4 changes: 0 additions & 4 deletions ios/RNPurchases-Bridging-Header.h

This file was deleted.

8 changes: 0 additions & 8 deletions ios/RNPurchases.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
objects = {

/* Begin PBXBuildFile section */
3552B97D252CF5900098008A /* PurchasesPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3552B97C252CF5900098008A /* PurchasesPlugin.swift */; };
B3E7B58A1CC2AC0600A0062D /* RNPurchases.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNPurchases.m */; };
/* End PBXBuildFile section */

Expand All @@ -25,8 +24,6 @@

/* Begin PBXFileReference section */
134814201AA4EA6300B7C361 /* libRNPurchases.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNPurchases.a; sourceTree = BUILT_PRODUCTS_DIR; };
3552B97B252CF5900098008A /* RNPurchases-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RNPurchases-Bridging-Header.h"; sourceTree = "<group>"; };
3552B97C252CF5900098008A /* PurchasesPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PurchasesPlugin.swift; sourceTree = "<group>"; };
B3E7B5881CC2AC0600A0062D /* RNPurchases.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNPurchases.h; sourceTree = "<group>"; };
B3E7B5891CC2AC0600A0062D /* RNPurchases.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNPurchases.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -60,12 +57,10 @@
58B511D21A9E6C8500147676 = {
isa = PBXGroup;
children = (
3552B97C252CF5900098008A /* PurchasesPlugin.swift */,
B3E7B5881CC2AC0600A0062D /* RNPurchases.h */,
B3E7B5891CC2AC0600A0062D /* RNPurchases.m */,
134814211AA4EA7D00B7C361 /* Products */,
35493AC8202D4BCD004DFA39 /* Frameworks */,
3552B97B252CF5900098008A /* RNPurchases-Bridging-Header.h */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -129,7 +124,6 @@
buildActionMask = 2147483647;
files = (
B3E7B58A1CC2AC0600A0062D /* RNPurchases.m in Sources */,
3552B97D252CF5900098008A /* PurchasesPlugin.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -236,7 +230,6 @@
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = RNPurchases;
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "RNPurchases-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
};
Expand All @@ -261,7 +254,6 @@
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = RNPurchases;
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "RNPurchases-Bridging-Header.h";
SWIFT_VERSION = 5.0;
};
name = Release;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#import "CustomerCenterViewWrapper.h"
#import "UIView+Extensions.h"
#import "UIView+React.h"
#import <React/UIView+React.h>

@import RevenueCatUI;

Expand Down
2 changes: 1 addition & 1 deletion react-native-purchases-ui/ios/PaywallViewWrapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#import "PaywallViewWrapper.h"
#import "UIView+Extensions.h"
#import "UIView+React.h"
#import <React/UIView+React.h>

@import PurchasesHybridCommonUI;
@import RevenueCat;
Expand Down
9 changes: 0 additions & 9 deletions react-native-purchases-ui/ios/PurchasesPlugin.swift

This file was deleted.

4 changes: 0 additions & 4 deletions react-native-purchases-ui/ios/RNPaywalls-Bridging-Header.h

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
354FF7CD2B6423CB0050DDFD /* RNPaywalls.m in Sources */ = {isa = PBXBuildFile; fileRef = 354FF7C22B6423CB0050DDFD /* RNPaywalls.m */; };
354FF7CE2B6423CB0050DDFD /* RCPaywallFooterViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 354FF7C62B6423CB0050DDFD /* RCPaywallFooterViewManager.m */; };
354FF7CF2B6423CB0050DDFD /* PaywallViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 354FF7C72B6423CB0050DDFD /* PaywallViewManager.m */; };
354FF7D02B6423CB0050DDFD /* PurchasesPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 354FF7C92B6423CB0050DDFD /* PurchasesPlugin.swift */; };
354FF7D12B6423CB0050DDFD /* UIView+Extensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 354FF7CA2B6423CB0050DDFD /* UIView+Extensions.m */; };
/* End PBXBuildFile section */

Expand All @@ -29,17 +28,14 @@

/* Begin PBXFileReference section */
354FF7B52B6422970050DDFD /* libRNPaywalls.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNPaywalls.a; sourceTree = BUILT_PRODUCTS_DIR; };
354FF7BF2B6423CA0050DDFD /* RNPaywalls-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RNPaywalls-Bridging-Header.h"; sourceTree = "<group>"; };
354FF7C02B6423CB0050DDFD /* RNPaywalls.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNPaywalls.h; sourceTree = "<group>"; };
354FF7C12B6423CB0050DDFD /* PaywallViewWrapper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PaywallViewWrapper.m; sourceTree = "<group>"; };
354FF7C22B6423CB0050DDFD /* RNPaywalls.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNPaywalls.m; sourceTree = "<group>"; };
354FF7C32B6423CB0050DDFD /* RNPaywalls-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "RNPaywalls-Bridging-Header.h"; sourceTree = "<group>"; };
354FF7C42B6423CB0050DDFD /* PaywallViewWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PaywallViewWrapper.h; sourceTree = "<group>"; };
354FF7C52B6423CB0050DDFD /* RCPaywallFooterViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCPaywallFooterViewManager.h; sourceTree = "<group>"; };
354FF7C62B6423CB0050DDFD /* RCPaywallFooterViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCPaywallFooterViewManager.m; sourceTree = "<group>"; };
354FF7C72B6423CB0050DDFD /* PaywallViewManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PaywallViewManager.m; sourceTree = "<group>"; };
354FF7C82B6423CB0050DDFD /* UIView+Extensions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+Extensions.h"; sourceTree = "<group>"; };
354FF7C92B6423CB0050DDFD /* PurchasesPlugin.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PurchasesPlugin.swift; sourceTree = "<group>"; };
354FF7CA2B6423CB0050DDFD /* UIView+Extensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+Extensions.m"; sourceTree = "<group>"; };
354FF7CB2B6423CB0050DDFD /* PaywallViewManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PaywallViewManager.h; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand All @@ -62,16 +58,13 @@
354FF7C72B6423CB0050DDFD /* PaywallViewManager.m */,
354FF7C42B6423CB0050DDFD /* PaywallViewWrapper.h */,
354FF7C12B6423CB0050DDFD /* PaywallViewWrapper.m */,
354FF7C92B6423CB0050DDFD /* PurchasesPlugin.swift */,
354FF7C52B6423CB0050DDFD /* RCPaywallFooterViewManager.h */,
354FF7C62B6423CB0050DDFD /* RCPaywallFooterViewManager.m */,
354FF7C32B6423CB0050DDFD /* RNPaywalls-Bridging-Header.h */,
354FF7C02B6423CB0050DDFD /* RNPaywalls.h */,
354FF7C22B6423CB0050DDFD /* RNPaywalls.m */,
354FF7C82B6423CB0050DDFD /* UIView+Extensions.h */,
354FF7CA2B6423CB0050DDFD /* UIView+Extensions.m */,
354FF7B62B6422970050DDFD /* Products */,
354FF7BF2B6423CA0050DDFD /* RNPaywalls-Bridging-Header.h */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -145,7 +138,6 @@
354FF7CE2B6423CB0050DDFD /* RCPaywallFooterViewManager.m in Sources */,
354FF7CD2B6423CB0050DDFD /* RNPaywalls.m in Sources */,
354FF7CC2B6423CB0050DDFD /* PaywallViewWrapper.m in Sources */,
354FF7D02B6423CB0050DDFD /* PurchasesPlugin.swift in Sources */,
354FF7D12B6423CB0050DDFD /* UIView+Extensions.m in Sources */,
354FF7CF2B6423CB0050DDFD /* PaywallViewManager.m in Sources */,
);
Expand Down Expand Up @@ -281,7 +273,6 @@
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "RNPaywalls-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -296,7 +287,6 @@
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "RNPaywalls-Bridging-Header.h";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down