Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #57 from jinSasaki/add-example
Browse files Browse the repository at this point in the history
Add examples
  • Loading branch information
jinSasaki authored Aug 6, 2021
2 parents 25c9e5f + 2df628b commit 746d633
Show file tree
Hide file tree
Showing 34 changed files with 2,101 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
excluded:
- Example

disabled_rules:
- xctfail_message
- nesting
Expand Down
375 changes: 375 additions & 0 deletions Examples/Custom/CustomInAppPurchaseSample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,375 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objects = {

/* Begin PBXBuildFile section */
9388073326BD0EFD00B4E8DF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9388073226BD0EFD00B4E8DF /* AppDelegate.swift */; };
9388073526BD0EFD00B4E8DF /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9388073426BD0EFD00B4E8DF /* SceneDelegate.swift */; };
9388073726BD0EFD00B4E8DF /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9388073626BD0EFD00B4E8DF /* ViewController.swift */; };
9388073A26BD0EFD00B4E8DF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9388073826BD0EFD00B4E8DF /* Main.storyboard */; };
9388073C26BD0EFF00B4E8DF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9388073B26BD0EFF00B4E8DF /* Assets.xcassets */; };
9388073F26BD0EFF00B4E8DF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9388073D26BD0EFF00B4E8DF /* LaunchScreen.storyboard */; };
9388074826BD0FEE00B4E8DF /* InAppPurchase in Frameworks */ = {isa = PBXBuildFile; productRef = 9388074726BD0FEE00B4E8DF /* InAppPurchase */; };
9388074A26BD10A800B4E8DF /* Configuration.storekit in Resources */ = {isa = PBXBuildFile; fileRef = 9388074926BD10A800B4E8DF /* Configuration.storekit */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
9388072F26BD0EFD00B4E8DF /* CustomInAppPurchaseSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CustomInAppPurchaseSample.app; sourceTree = BUILT_PRODUCTS_DIR; };
9388073226BD0EFD00B4E8DF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
9388073426BD0EFD00B4E8DF /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
9388073626BD0EFD00B4E8DF /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
9388073926BD0EFD00B4E8DF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
9388073B26BD0EFF00B4E8DF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
9388073E26BD0EFF00B4E8DF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
9388074026BD0EFF00B4E8DF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
9388074926BD10A800B4E8DF /* Configuration.storekit */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Configuration.storekit; path = ../../Default/InAppPurchaseSample/Configuration.storekit; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
9388072C26BD0EFD00B4E8DF /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
9388074826BD0FEE00B4E8DF /* InAppPurchase in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
9388072626BD0EFD00B4E8DF = {
isa = PBXGroup;
children = (
9388073126BD0EFD00B4E8DF /* CustomInAppPurchaseSample */,
9388073026BD0EFD00B4E8DF /* Products */,
);
sourceTree = "<group>";
};
9388073026BD0EFD00B4E8DF /* Products */ = {
isa = PBXGroup;
children = (
9388072F26BD0EFD00B4E8DF /* CustomInAppPurchaseSample.app */,
);
name = Products;
sourceTree = "<group>";
};
9388073126BD0EFD00B4E8DF /* CustomInAppPurchaseSample */ = {
isa = PBXGroup;
children = (
9388073226BD0EFD00B4E8DF /* AppDelegate.swift */,
9388073426BD0EFD00B4E8DF /* SceneDelegate.swift */,
9388073626BD0EFD00B4E8DF /* ViewController.swift */,
9388074926BD10A800B4E8DF /* Configuration.storekit */,
9388073826BD0EFD00B4E8DF /* Main.storyboard */,
9388073B26BD0EFF00B4E8DF /* Assets.xcassets */,
9388073D26BD0EFF00B4E8DF /* LaunchScreen.storyboard */,
9388074026BD0EFF00B4E8DF /* Info.plist */,
);
path = CustomInAppPurchaseSample;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
9388072E26BD0EFD00B4E8DF /* CustomInAppPurchaseSample */ = {
isa = PBXNativeTarget;
buildConfigurationList = 9388074326BD0EFF00B4E8DF /* Build configuration list for PBXNativeTarget "CustomInAppPurchaseSample" */;
buildPhases = (
9388072B26BD0EFD00B4E8DF /* Sources */,
9388072C26BD0EFD00B4E8DF /* Frameworks */,
9388072D26BD0EFD00B4E8DF /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = CustomInAppPurchaseSample;
packageProductDependencies = (
9388074726BD0FEE00B4E8DF /* InAppPurchase */,
);
productName = CustomInAppPurchaseSample;
productReference = 9388072F26BD0EFD00B4E8DF /* CustomInAppPurchaseSample.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
9388072726BD0EFD00B4E8DF /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1250;
LastUpgradeCheck = 1250;
TargetAttributes = {
9388072E26BD0EFD00B4E8DF = {
CreatedOnToolsVersion = 12.5.1;
};
};
};
buildConfigurationList = 9388072A26BD0EFD00B4E8DF /* Build configuration list for PBXProject "CustomInAppPurchaseSample" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 9388072626BD0EFD00B4E8DF;
packageReferences = (
9388074626BD0FEE00B4E8DF /* XCRemoteSwiftPackageReference "InAppPurchase" */,
);
productRefGroup = 9388073026BD0EFD00B4E8DF /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
9388072E26BD0EFD00B4E8DF /* CustomInAppPurchaseSample */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
9388072D26BD0EFD00B4E8DF /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9388073F26BD0EFF00B4E8DF /* LaunchScreen.storyboard in Resources */,
9388074A26BD10A800B4E8DF /* Configuration.storekit in Resources */,
9388073C26BD0EFF00B4E8DF /* Assets.xcassets in Resources */,
9388073A26BD0EFD00B4E8DF /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
9388072B26BD0EFD00B4E8DF /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9388073726BD0EFD00B4E8DF /* ViewController.swift in Sources */,
9388073326BD0EFD00B4E8DF /* AppDelegate.swift in Sources */,
9388073526BD0EFD00B4E8DF /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
9388073826BD0EFD00B4E8DF /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
9388073926BD0EFD00B4E8DF /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
9388073D26BD0EFF00B4E8DF /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
9388073E26BD0EFF00B4E8DF /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
9388074126BD0EFF00B4E8DF /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.5;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
9388074226BD0EFF00B4E8DF /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.5;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
9388074426BD0EFF00B4E8DF /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = CustomInAppPurchaseSample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = jp.sasakky.CustomInAppPurchaseSample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
9388074526BD0EFF00B4E8DF /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = CustomInAppPurchaseSample/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = jp.sasakky.CustomInAppPurchaseSample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
9388072A26BD0EFD00B4E8DF /* Build configuration list for PBXProject "CustomInAppPurchaseSample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
9388074126BD0EFF00B4E8DF /* Debug */,
9388074226BD0EFF00B4E8DF /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
9388074326BD0EFF00B4E8DF /* Build configuration list for PBXNativeTarget "CustomInAppPurchaseSample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
9388074426BD0EFF00B4E8DF /* Debug */,
9388074526BD0EFF00B4E8DF /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
9388074626BD0FEE00B4E8DF /* XCRemoteSwiftPackageReference "InAppPurchase" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/jinSasaki/InAppPurchase.git";
requirement = {
branch = master;
kind = branch;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
9388074726BD0FEE00B4E8DF /* InAppPurchase */ = {
isa = XCSwiftPackageProductDependency;
package = 9388074626BD0FEE00B4E8DF /* XCRemoteSwiftPackageReference "InAppPurchase" */;
productName = InAppPurchase;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 9388072726BD0EFD00B4E8DF /* Project object */;
}

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>
Loading

0 comments on commit 746d633

Please sign in to comment.