Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.
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
4 changes: 2 additions & 2 deletions .github/workflows/deploy-cocoapods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:

- name: Validate Podspec
run: |
pod lib lint IosIAP.podspec --allow-warnings
pod lib lint openiap.podspec --allow-warnings

- name: Deploy to CocoaPods Trunk
if: github.event_name == 'release'
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
COCOAPODS_VALIDATOR_SKIP_XCODEBUILD: 1
run: |
pod trunk push IosIAP.podspec --allow-warnings
pod trunk push openiap.podspec --allow-warnings
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"type": "node-terminal",
"request": "launch",
"name": "📱 Build & Run Example (iOS Simulator)",
"command": "xcodebuild -project Martie.xcodeproj -scheme IosIapExample -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.5' build",
"command": "xcodebuild -project Martie.xcodeproj -scheme OpenIapExample -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.5' build",
"cwd": "${workspaceFolder}/Example",
"group": "build"
},
Expand Down
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"cSpell.words": [
"hyodotdev",
"netrc",
"openiap",
"swiftpm",
"tvos",
"watchos",
"xcuserdata",
"xcworkspace",
"xcworkspacedata"
]
}
12 changes: 6 additions & 6 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
# Claude Development Guidelines for ios-iap
# Claude Development Guidelines for OpenIAP

## Swift Naming Conventions for Acronyms

### General Rule

- **Acronyms should be ALL CAPS only when they appear as a suffix**
- **When acronyms appear at the beginning or middle, use Pascal case (first letter caps, rest lowercase)**
- **Package/Module names follow the same rule: `IosIAP` (iOS at beginning = `Ios`, IAP as suffix = `IAP`)**
- **Package/Module names follow the same rule: `OpenIAP` (Open at beginning = `Open`, IAP as suffix = `IAP`)**

### Examples

#### ✅ Correct

- `IosIAP` (Package name: iOS at beginning, IAP as suffix)
- `OpenIAP` (Package name: Open at beginning, IAP as suffix)
- `IapManager` (IAP at beginning)
- `IapPurchase` (IAP at beginning)
- `IapError` (IAP at beginning)
- `IosIapTests` (both iOS and IAP at beginning/middle)
- `OpenIapTests` (both Open and IAP at beginning/middle)
- `ProductIAP` (IAP as suffix)
- `ManagerIAP` (IAP as suffix)

#### ❌ Incorrect

- `IosIap` (should be `IosIAP` - IAP is suffix)
- `OpenIap` (should be `OpenIAP` - IAP is suffix)
- `IAPManager` (should be `IapManager`)
- `IAPPurchase` (should be `IapPurchase`)
- `IAPError` (should be `IapError`)
- `IosIAPTests` (should be `IosIapTests` - IAP is in middle, not suffix)
- `OpenIAPTests` (should be `OpenIapTests` - IAP is in middle, not suffix)

### Specific Cases

Expand Down
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing to IosIAP
# Contributing to OpenIAP

Thank you for your interest in contributing! We love your input and appreciate your efforts to make IosIAP better.
Thank you for your interest in contributing! We love your input and appreciate your efforts to make OpenIAP better.

## Quick Start

Expand All @@ -16,8 +16,8 @@ Thank you for your interest in contributing! We love your input and appreciate y

```bash
# Clone your fork
git clone https://github.com/YOUR_USERNAME/ios-iap.git
cd ios-iap
git clone https://github.com/YOUR_USERNAME/openiap-apple.git
cd openiap-apple

# Open in Xcode
open Package.swift
Expand All @@ -35,7 +35,7 @@ swift test

### Naming Conventions

- **Acronyms**: Use Pascal case when at beginning/middle (`IapModule`, `IosIapTests`)
- **Acronyms**: Use Pascal case when at beginning/middle (`IapModule`, `OpenIapTests`)
- **Acronyms as suffix**: Use all caps (`ProductIAP`, `ManagerIOS`)
- See [CLAUDE.md](CLAUDE.md) for detailed naming rules

Expand Down
54 changes: 27 additions & 27 deletions Example/Martie.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
C0E1F5E92C8F1A9400123456 /* IosIapExampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = C0E1F5E82C8F1A9400123456 /* IosIapExampleApp.swift */; };
C0E1F5E92C8F1A9400123456 /* OpenIapExampleApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = C0E1F5E82C8F1A9400123456 /* OpenIapExampleApp.swift */; };
C0E1F5EB2C8F1A9400123456 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C0E1F5EA2C8F1A9400123456 /* ContentView.swift */; };
C0E1F5ED2C8F1A9500123456 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C0E1F5EC2C8F1A9500123456 /* Assets.xcassets */; };
C0E1F5F02C8F1A9500123456 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C0E1F5EF2C8F1A9500123456 /* Preview Assets.xcassets */; };
Expand All @@ -18,12 +18,12 @@
C0E1F6002C8F1ABA00123456 /* OfferCodeScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = C0E1F5FF2C8F1ABA00123456 /* OfferCodeScreen.swift */; };
C0E1F6022C8F1AC000123456 /* StoreViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = C0E1F6012C8F1AC000123456 /* StoreViewModel.swift */; };
C0E1F6042C8F1AC500123456 /* AppColors.swift in Sources */ = {isa = PBXBuildFile; fileRef = C0E1F6032C8F1AC500123456 /* AppColors.swift */; };
C0E1F6072C8F1AD000123456 /* IosIAP in Frameworks */ = {isa = PBXBuildFile; productRef = C0E1F6062C8F1AD000123456 /* IosIAP */; };
C0E1F6072C8F1AD000123456 /* OpenIAP in Frameworks */ = {isa = PBXBuildFile; productRef = C0E1F6062C8F1AD000123456 /* OpenIAP */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
C0E1F5E52C8F1A9400123456 /* IosIapExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IosIapExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
C0E1F5E82C8F1A9400123456 /* IosIapExampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IosIapExampleApp.swift; sourceTree = "<group>"; };
C0E1F5E52C8F1A9400123456 /* OpenIapExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OpenIapExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
C0E1F5E82C8F1A9400123456 /* OpenIapExampleApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenIapExampleApp.swift; sourceTree = "<group>"; };
C0E1F5EA2C8F1A9400123456 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
C0E1F5EC2C8F1A9500123456 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
C0E1F5EF2C8F1A9500123456 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
Expand All @@ -41,7 +41,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
C0E1F6072C8F1AD000123456 /* IosIAP in Frameworks */,
C0E1F6072C8F1AD000123456 /* OpenIAP in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -51,31 +51,31 @@
C0E1F5DC2C8F1A9400123456 = {
isa = PBXGroup;
children = (
C0E1F5E72C8F1A9400123456 /* IosIapExample */,
C0E1F5E72C8F1A9400123456 /* OpenIapExample */,
C0E1F5E62C8F1A9400123456 /* Products */,
);
sourceTree = "<group>";
};
C0E1F5E62C8F1A9400123456 /* Products */ = {
isa = PBXGroup;
children = (
C0E1F5E52C8F1A9400123456 /* IosIapExample.app */,
C0E1F5E52C8F1A9400123456 /* OpenIapExample.app */,
);
name = Products;
sourceTree = "<group>";
};
C0E1F5E72C8F1A9400123456 /* IosIapExample */ = {
C0E1F5E72C8F1A9400123456 /* OpenIapExample */ = {
isa = PBXGroup;
children = (
C0E1F6082C8F1AD500123456 /* Screens */,
C0E1F6092C8F1ADB00123456 /* ViewModels */,
C0E1F60A2C8F1AE000123456 /* Models */,
C0E1F5E82C8F1A9400123456 /* IosIapExampleApp.swift */,
C0E1F5E82C8F1A9400123456 /* OpenIapExampleApp.swift */,
C0E1F5EA2C8F1A9400123456 /* ContentView.swift */,
C0E1F5EC2C8F1A9500123456 /* Assets.xcassets */,
C0E1F5EE2C8F1A9500123456 /* Preview Content */,
);
path = IosIapExample;
path = OpenIapExample;
sourceTree = "<group>";
};
C0E1F5EE2C8F1A9500123456 /* Preview Content */ = {
Expand Down Expand Up @@ -117,9 +117,9 @@
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
C0E1F5E42C8F1A9400123456 /* IosIapExample */ = {
C0E1F5E42C8F1A9400123456 /* OpenIapExample */ = {
isa = PBXNativeTarget;
buildConfigurationList = C0E1F5F32C8F1A9500123456 /* Build configuration list for PBXNativeTarget "IosIapExample" */;
buildConfigurationList = C0E1F5F32C8F1A9500123456 /* Build configuration list for PBXNativeTarget "OpenIapExample" */;
buildPhases = (
C0E1F5E12C8F1A9400123456 /* Sources */,
C0E1F5E22C8F1A9400123456 /* Frameworks */,
Expand All @@ -129,12 +129,12 @@
);
dependencies = (
);
name = IosIapExample;
name = OpenIapExample;
packageProductDependencies = (
C0E1F6062C8F1AD000123456 /* IosIAP */,
C0E1F6062C8F1AD000123456 /* OpenIAP */,
);
productName = IosIapExample;
productReference = C0E1F5E52C8F1A9400123456 /* IosIapExample.app */;
productName = OpenIapExample;
productReference = C0E1F5E52C8F1A9400123456 /* OpenIapExample.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
Expand All @@ -152,7 +152,7 @@
};
};
};
buildConfigurationList = C0E1F5E02C8F1A9400123456 /* Build configuration list for PBXProject "IosIapExample" */;
buildConfigurationList = C0E1F5E02C8F1A9400123456 /* Build configuration list for PBXProject "OpenIapExample" */;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
Expand All @@ -168,7 +168,7 @@
projectDirPath = "";
projectRoot = "";
targets = (
C0E1F5E42C8F1A9400123456 /* IosIapExample */,
C0E1F5E42C8F1A9400123456 /* OpenIapExample */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -198,7 +198,7 @@
C0E1F6002C8F1ABA00123456 /* OfferCodeScreen.swift in Sources */,
C0E1F6022C8F1AC000123456 /* StoreViewModel.swift in Sources */,
C0E1F6042C8F1AC500123456 /* AppColors.swift in Sources */,
C0E1F5E92C8F1A9400123456 /* IosIapExampleApp.swift in Sources */,
C0E1F5E92C8F1A9400123456 /* OpenIapExampleApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -331,11 +331,11 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"IosIapExample/Preview Content\"";
DEVELOPMENT_ASSET_PATHS = "\"OpenIapExample/Preview Content\"";
DEVELOPMENT_TEAM = PRDQGB267K;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = "IosIAP Example";
INFOPLIST_KEY_CFBundleDisplayName = "OpenIAP Example";
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
Expand All @@ -362,11 +362,11 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"IosIapExample/Preview Content\"";
DEVELOPMENT_ASSET_PATHS = "\"OpenIapExample/Preview Content\"";
DEVELOPMENT_TEAM = PRDQGB267K;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = "IosIAP Example";
INFOPLIST_KEY_CFBundleDisplayName = "OpenIAP Example";
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
Expand All @@ -389,7 +389,7 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
C0E1F5E02C8F1A9400123456 /* Build configuration list for PBXProject "IosIapExample" */ = {
C0E1F5E02C8F1A9400123456 /* Build configuration list for PBXProject "OpenIapExample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C0E1F5F12C8F1A9500123456 /* Debug */,
Expand All @@ -398,7 +398,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
C0E1F5F32C8F1A9500123456 /* Build configuration list for PBXNativeTarget "IosIapExample" */ = {
C0E1F5F32C8F1A9500123456 /* Build configuration list for PBXNativeTarget "OpenIapExample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C0E1F5F42C8F1A9500123456 /* Debug */,
Expand All @@ -417,10 +417,10 @@
/* End XCLocalSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
C0E1F6062C8F1AD000123456 /* IosIAP */ = {
C0E1F6062C8F1AD000123456 /* OpenIAP */ = {
isa = XCSwiftPackageProductDependency;
package = C0E1F6052C8F1AD000123456 /* XCLocalSwiftPackageReference ".." */;
productName = IosIAP;
productName = OpenIAP;
};
/* End XCSwiftPackageProductDependency section */
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import SwiftUI
import IosIAP
import OpenIAP

@main
@available(iOS 15.0, *)
struct IosIapExampleApp: App {
struct OpenIapExampleApp: App {
var body: some Scene {
WindowGroup {
ContentView()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SwiftUI
import IosIAP
import OpenIAP

@available(iOS 15.0, *)
struct AvailablePurchasesScreen: View {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SwiftUI
import IosIAP
import OpenIAP

@available(iOS 15.0, *)
struct HomeScreen: View {
Expand All @@ -16,7 +16,7 @@ struct HomeScreen: View {
.foregroundColor(AppColors.primary)

VStack(alignment: .leading, spacing: 4) {
Text("iOS IAP Example")
Text("OpenIAP Example")
.font(.headline)

Text("iOS")
Expand Down Expand Up @@ -82,7 +82,7 @@ struct HomeScreen: View {
}
}
.background(AppColors.background)
.navigationTitle("IAP Features")
.navigationTitle("OpenIAP Features")
.navigationBarTitleDisplayMode(.large)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SwiftUI
import IosIAP
import OpenIAP

@available(iOS 15.0, *)
struct OfferCodeScreen: View {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SwiftUI
import IosIAP
import OpenIAP

@available(iOS 15.0, *)
struct PurchaseFlowScreen: View {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SwiftUI
import IosIAP
import OpenIAP

@available(iOS 15.0, *)
struct SubscriptionFlowScreen: View {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SwiftUI
import IosIAP
import OpenIAP

@MainActor
@available(iOS 15.0, *)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SwiftUI
import IosIAP
import OpenIAP

@MainActor
@available(iOS 15.0, *)
Expand Down
10 changes: 5 additions & 5 deletions Example/workspace-state.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
{
"basedOn" : null,
"packageRef" : {
"identity" : "ios-iap",
"identity" : "openiap-apple",
"kind" : "fileSystem",
"location" : "/Users/hyo/Github/hyochan/ios-iap",
"name" : "IosIAP"
"location" : "/Users/hyo/Github/hyodotdev/openiap-apple",
"name" : "OpenIAP"
},
"state" : {
"name" : "fileSystem",
"path" : "/Users/hyo/Github/hyochan/ios-iap"
"path" : "/Users/hyo/Github/hyodotdev/openiap-apple"
},
"subpath" : "ios-iap"
"subpath" : "openiap-apple"
}
],
"prebuilts" : [
Expand Down
Loading
Loading