IDPROD-1942 part1: Create empty StripeIdentity project (#279)

Follows `iOS SDK Runbook: Adding a new module`
This commit is contained in:
Mel 2021-07-15 13:32:28 -07:00
parent 63f3d3a67f
commit a76fed8361
13 changed files with 668 additions and 0 deletions

View File

@ -81,6 +81,16 @@ jobs:
- run: "bundle exec fastlane stripecore_tests"
- archive_logs
stripeidentity-tests:
executor: mac-executor
steps:
- attach_workspace:
at: .
- prep_environment
- run: "bundle exec fastlane stripeidentity_tests"
- archive_logs
e2e-only:
executor: mac-executor
@ -202,6 +212,9 @@ workflows:
- stripecore-tests:
requires:
- ci-builds
- stripeidentity-tests:
requires:
- ci-builds
- ui-tests:
requires:
- ci-builds

View File

@ -41,6 +41,14 @@ let package = Package(
resources: [
.process("Info.plist")
]
),
.target(
name: "StripeIdentity",
path: "StripeIdentity/StripeIdentity",
exclude: ["Info.plist"],
resources: [
.process("Info.plist")
]
)
]
)

View File

@ -10,6 +10,9 @@
<FileRef
location = "group:StripeCore/StripeCore.xcodeproj">
</FileRef>
<FileRef
location = "group:StripeIdentity/StripeIdentity.xcodeproj">
</FileRef>
<Group
location = "container:"
name = "Examples">

20
StripeIdentity.podspec Normal file
View File

@ -0,0 +1,20 @@
Pod::Spec.new do |s|
s.name = 'StripeIdentity'
# Do not update s.version directly.
# Instead, update the VERSION file and run ./ci_scripts/update_version.sh
s.version = '21.7.0'
s.summary = 'StripeIdentity is a web-based API that confirms the identity of global users.'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.homepage = 'https://stripe.com/docs/mobile/ios'
s.authors = { 'Stripe' => 'support+github@stripe.com' }
s.source = { :git => 'https://github.com/stripe/stripe-ios.git', :tag => "#{s.version}" }
s.frameworks = 'Foundation', 'Security', 'WebKit', 'PassKit', 'Contacts', 'CoreLocation'
s.requires_arc = true
s.platform = :ios
s.ios.deployment_target = '11.0'
s.swift_version = '5.0'
s.weak_framework = 'SwiftUI'
s.source_files = 'StripeIdentity/StripeIdentity/**/*.swift'
end

View File

@ -0,0 +1,427 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
E6E146B126950E1E007BDCD8 /* StripeIdentity.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E6E146A726950E1E007BDCD8 /* StripeIdentity.framework */; };
E6E146B626950E1E007BDCD8 /* StripeIdentityTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6E146B526950E1E007BDCD8 /* StripeIdentityTests.swift */; };
E6E146B826950E1E007BDCD8 /* StripeIdentity.h in Headers */ = {isa = PBXBuildFile; fileRef = E6E146AA26950E1E007BDCD8 /* StripeIdentity.h */; settings = {ATTRIBUTES = (Public, ); }; };
E6E146CC26950E64007BDCD8 /* StripeiOS Tests-Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = E6E146C226950E64007BDCD8 /* StripeiOS Tests-Debug.xcconfig */; };
E6E146CD26950E64007BDCD8 /* StripeiOS-Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = E6E146C326950E64007BDCD8 /* StripeiOS-Debug.xcconfig */; };
E6E146CE26950E64007BDCD8 /* Project-Release.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = E6E146C426950E64007BDCD8 /* Project-Release.xcconfig */; };
E6E146CF26950E64007BDCD8 /* StripeiOS Tests-Release.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = E6E146C526950E64007BDCD8 /* StripeiOS Tests-Release.xcconfig */; };
E6E146D026950E64007BDCD8 /* Project-Shared.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = E6E146C626950E64007BDCD8 /* Project-Shared.xcconfig */; };
E6E146D126950E64007BDCD8 /* Version.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = E6E146C726950E64007BDCD8 /* Version.xcconfig */; };
E6E146D226950E64007BDCD8 /* StripeiOS Tests-Shared.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = E6E146C826950E64007BDCD8 /* StripeiOS Tests-Shared.xcconfig */; };
E6E146D326950E64007BDCD8 /* StripeiOS-Shared.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = E6E146C926950E64007BDCD8 /* StripeiOS-Shared.xcconfig */; };
E6E146D426950E64007BDCD8 /* Project-Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = E6E146CA26950E64007BDCD8 /* Project-Debug.xcconfig */; };
E6E146D526950E64007BDCD8 /* StripeiOS-Release.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = E6E146CB26950E64007BDCD8 /* StripeiOS-Release.xcconfig */; };
E6E146D8269512B8007BDCD8 /* Placeholder.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6E146D7269512B8007BDCD8 /* Placeholder.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
E6E146B226950E1E007BDCD8 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = E6E1469E26950E1E007BDCD8 /* Project object */;
proxyType = 1;
remoteGlobalIDString = E6E146A626950E1E007BDCD8;
remoteInfo = StripeIdentity;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
E6E146A726950E1E007BDCD8 /* StripeIdentity.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = StripeIdentity.framework; sourceTree = BUILT_PRODUCTS_DIR; };
E6E146AA26950E1E007BDCD8 /* StripeIdentity.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StripeIdentity.h; sourceTree = "<group>"; };
E6E146AB26950E1E007BDCD8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E6E146B026950E1E007BDCD8 /* StripeIdentityTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StripeIdentityTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
E6E146B526950E1E007BDCD8 /* StripeIdentityTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StripeIdentityTests.swift; sourceTree = "<group>"; };
E6E146B726950E1E007BDCD8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E6E146C226950E64007BDCD8 /* StripeiOS Tests-Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "StripeiOS Tests-Debug.xcconfig"; sourceTree = "<group>"; };
E6E146C326950E64007BDCD8 /* StripeiOS-Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "StripeiOS-Debug.xcconfig"; sourceTree = "<group>"; };
E6E146C426950E64007BDCD8 /* Project-Release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Project-Release.xcconfig"; sourceTree = "<group>"; };
E6E146C526950E64007BDCD8 /* StripeiOS Tests-Release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "StripeiOS Tests-Release.xcconfig"; sourceTree = "<group>"; };
E6E146C626950E64007BDCD8 /* Project-Shared.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Project-Shared.xcconfig"; sourceTree = "<group>"; };
E6E146C726950E64007BDCD8 /* Version.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Version.xcconfig; sourceTree = "<group>"; };
E6E146C826950E64007BDCD8 /* StripeiOS Tests-Shared.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "StripeiOS Tests-Shared.xcconfig"; sourceTree = "<group>"; };
E6E146C926950E64007BDCD8 /* StripeiOS-Shared.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "StripeiOS-Shared.xcconfig"; sourceTree = "<group>"; };
E6E146CA26950E64007BDCD8 /* Project-Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "Project-Debug.xcconfig"; sourceTree = "<group>"; };
E6E146CB26950E64007BDCD8 /* StripeiOS-Release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = "StripeiOS-Release.xcconfig"; sourceTree = "<group>"; };
E6E146D7269512B8007BDCD8 /* Placeholder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Placeholder.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
E6E146A426950E1E007BDCD8 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
E6E146AD26950E1E007BDCD8 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
E6E146B126950E1E007BDCD8 /* StripeIdentity.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
E6E1469D26950E1E007BDCD8 = {
isa = PBXGroup;
children = (
E6E146C126950E64007BDCD8 /* BuildConfigurations */,
E6E146A926950E1E007BDCD8 /* StripeIdentity */,
E6E146B426950E1E007BDCD8 /* StripeIdentityTests */,
E6E146A826950E1E007BDCD8 /* Products */,
);
sourceTree = "<group>";
};
E6E146A826950E1E007BDCD8 /* Products */ = {
isa = PBXGroup;
children = (
E6E146A726950E1E007BDCD8 /* StripeIdentity.framework */,
E6E146B026950E1E007BDCD8 /* StripeIdentityTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
E6E146A926950E1E007BDCD8 /* StripeIdentity */ = {
isa = PBXGroup;
children = (
E6E146D6269512A1007BDCD8 /* Source */,
E6E146AA26950E1E007BDCD8 /* StripeIdentity.h */,
E6E146AB26950E1E007BDCD8 /* Info.plist */,
);
path = StripeIdentity;
sourceTree = "<group>";
};
E6E146B426950E1E007BDCD8 /* StripeIdentityTests */ = {
isa = PBXGroup;
children = (
E6E146B526950E1E007BDCD8 /* StripeIdentityTests.swift */,
E6E146B726950E1E007BDCD8 /* Info.plist */,
);
path = StripeIdentityTests;
sourceTree = "<group>";
};
E6E146C126950E64007BDCD8 /* BuildConfigurations */ = {
isa = PBXGroup;
children = (
E6E146C226950E64007BDCD8 /* StripeiOS Tests-Debug.xcconfig */,
E6E146C326950E64007BDCD8 /* StripeiOS-Debug.xcconfig */,
E6E146C426950E64007BDCD8 /* Project-Release.xcconfig */,
E6E146C526950E64007BDCD8 /* StripeiOS Tests-Release.xcconfig */,
E6E146C626950E64007BDCD8 /* Project-Shared.xcconfig */,
E6E146C726950E64007BDCD8 /* Version.xcconfig */,
E6E146C826950E64007BDCD8 /* StripeiOS Tests-Shared.xcconfig */,
E6E146C926950E64007BDCD8 /* StripeiOS-Shared.xcconfig */,
E6E146CA26950E64007BDCD8 /* Project-Debug.xcconfig */,
E6E146CB26950E64007BDCD8 /* StripeiOS-Release.xcconfig */,
);
name = BuildConfigurations;
path = ../BuildConfigurations;
sourceTree = "<group>";
};
E6E146D6269512A1007BDCD8 /* Source */ = {
isa = PBXGroup;
children = (
E6E146D7269512B8007BDCD8 /* Placeholder.swift */,
);
path = Source;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
E6E146A226950E1E007BDCD8 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
E6E146B826950E1E007BDCD8 /* StripeIdentity.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
E6E146A626950E1E007BDCD8 /* StripeIdentity */ = {
isa = PBXNativeTarget;
buildConfigurationList = E6E146BB26950E1E007BDCD8 /* Build configuration list for PBXNativeTarget "StripeIdentity" */;
buildPhases = (
E6E146A226950E1E007BDCD8 /* Headers */,
E6E146A326950E1E007BDCD8 /* Sources */,
E6E146A426950E1E007BDCD8 /* Frameworks */,
E6E146A526950E1E007BDCD8 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = StripeIdentity;
productName = StripeIdentity;
productReference = E6E146A726950E1E007BDCD8 /* StripeIdentity.framework */;
productType = "com.apple.product-type.framework";
};
E6E146AF26950E1E007BDCD8 /* StripeIdentityTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = E6E146BE26950E1E007BDCD8 /* Build configuration list for PBXNativeTarget "StripeIdentityTests" */;
buildPhases = (
E6E146AC26950E1E007BDCD8 /* Sources */,
E6E146AD26950E1E007BDCD8 /* Frameworks */,
E6E146AE26950E1E007BDCD8 /* Resources */,
);
buildRules = (
);
dependencies = (
E6E146B326950E1E007BDCD8 /* PBXTargetDependency */,
);
name = StripeIdentityTests;
productName = StripeIdentityTests;
productReference = E6E146B026950E1E007BDCD8 /* StripeIdentityTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
E6E1469E26950E1E007BDCD8 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1250;
LastUpgradeCheck = 1250;
TargetAttributes = {
E6E146A626950E1E007BDCD8 = {
CreatedOnToolsVersion = 12.5;
LastSwiftMigration = 1250;
};
E6E146AF26950E1E007BDCD8 = {
CreatedOnToolsVersion = 12.5;
};
};
};
buildConfigurationList = E6E146A126950E1E007BDCD8 /* Build configuration list for PBXProject "StripeIdentity" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = E6E1469D26950E1E007BDCD8;
productRefGroup = E6E146A826950E1E007BDCD8 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
E6E146A626950E1E007BDCD8 /* StripeIdentity */,
E6E146AF26950E1E007BDCD8 /* StripeIdentityTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
E6E146A526950E1E007BDCD8 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E6E146CF26950E64007BDCD8 /* StripeiOS Tests-Release.xcconfig in Resources */,
E6E146D226950E64007BDCD8 /* StripeiOS Tests-Shared.xcconfig in Resources */,
E6E146D026950E64007BDCD8 /* Project-Shared.xcconfig in Resources */,
E6E146CC26950E64007BDCD8 /* StripeiOS Tests-Debug.xcconfig in Resources */,
E6E146CD26950E64007BDCD8 /* StripeiOS-Debug.xcconfig in Resources */,
E6E146D526950E64007BDCD8 /* StripeiOS-Release.xcconfig in Resources */,
E6E146CE26950E64007BDCD8 /* Project-Release.xcconfig in Resources */,
E6E146D426950E64007BDCD8 /* Project-Debug.xcconfig in Resources */,
E6E146D326950E64007BDCD8 /* StripeiOS-Shared.xcconfig in Resources */,
E6E146D126950E64007BDCD8 /* Version.xcconfig in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
E6E146AE26950E1E007BDCD8 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
E6E146A326950E1E007BDCD8 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E6E146D8269512B8007BDCD8 /* Placeholder.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
E6E146AC26950E1E007BDCD8 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E6E146B626950E1E007BDCD8 /* StripeIdentityTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
E6E146B326950E1E007BDCD8 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = E6E146A626950E1E007BDCD8 /* StripeIdentity */;
targetProxy = E6E146B226950E1E007BDCD8 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
E6E146B926950E1E007BDCD8 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = E6E146CA26950E64007BDCD8 /* Project-Debug.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
E6E146BA26950E1E007BDCD8 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = E6E146C426950E64007BDCD8 /* Project-Release.xcconfig */;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};
name = Release;
};
E6E146BC26950E1E007BDCD8 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = E6E146C326950E64007BDCD8 /* StripeiOS-Debug.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = Y28TH9SHX7;
INFOPLIST_FILE = StripeIdentity/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.stripe.stripe-identity";
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
E6E146BD26950E1E007BDCD8 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = E6E146CB26950E64007BDCD8 /* StripeiOS-Release.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = Y28TH9SHX7;
INFOPLIST_FILE = StripeIdentity/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.stripe.stripe-identity";
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SWIFT_VERSION = 5.0;
};
name = Release;
};
E6E146BF26950E1E007BDCD8 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = E6E146C226950E64007BDCD8 /* StripeiOS Tests-Debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = Y28TH9SHX7;
INFOPLIST_FILE = StripeIdentityTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.stripe.StripeIdentityTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
E6E146C026950E1E007BDCD8 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = E6E146C526950E64007BDCD8 /* StripeiOS Tests-Release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = Y28TH9SHX7;
INFOPLIST_FILE = StripeIdentityTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.stripe.StripeIdentityTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
E6E146A126950E1E007BDCD8 /* Build configuration list for PBXProject "StripeIdentity" */ = {
isa = XCConfigurationList;
buildConfigurations = (
E6E146B926950E1E007BDCD8 /* Debug */,
E6E146BA26950E1E007BDCD8 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
E6E146BB26950E1E007BDCD8 /* Build configuration list for PBXNativeTarget "StripeIdentity" */ = {
isa = XCConfigurationList;
buildConfigurations = (
E6E146BC26950E1E007BDCD8 /* Debug */,
E6E146BD26950E1E007BDCD8 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
E6E146BE26950E1E007BDCD8 /* Build configuration list for PBXNativeTarget "StripeIdentityTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
E6E146BF26950E1E007BDCD8 /* Debug */,
E6E146C026950E1E007BDCD8 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = E6E1469E26950E1E007BDCD8 /* Project object */;
}

View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E6E146A626950E1E007BDCD8"
BuildableName = "StripeIdentity.framework"
BlueprintName = "StripeIdentity"
ReferencedContainer = "container:StripeIdentity.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E6E146AF26950E1E007BDCD8"
BuildableName = "StripeIdentityTests.xctest"
BlueprintName = "StripeIdentityTests"
ReferencedContainer = "container:StripeIdentity.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E6E146A626950E1E007BDCD8"
BuildableName = "StripeIdentity.framework"
BlueprintName = "StripeIdentity"
ReferencedContainer = "container:StripeIdentity.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -0,0 +1,22 @@
<?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>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
</plist>

View File

@ -0,0 +1,14 @@
//
// Placeholder.swift
// StripeIdentity
//
// Created by Mel Ludowise on 7/6/21.
//
import Foundation
/*
TODO(mludowise|IDPROD-1942):
This is a dummy placeholder swift file to make `pod lib lint` validate.
It will be deleted when we migrate code from `Stripe` -> `StripeCore`.
*/

View File

@ -0,0 +1,18 @@
//
// StripeIdentity.h
// StripeIdentity
//
// Created by Mel Ludowise on 7/6/21.
//
#import <Foundation/Foundation.h>
//! Project version number for StripeIdentity.
FOUNDATION_EXPORT double StripeIdentityVersionNumber;
//! Project version string for StripeIdentity.
FOUNDATION_EXPORT const unsigned char StripeIdentityVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <StripeIdentity/PublicHeader.h>

View File

@ -0,0 +1,22 @@
<?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>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

View File

@ -0,0 +1,33 @@
//
// StripeIdentityTests.swift
// StripeIdentityTests
//
// Created by Mel Ludowise on 7/6/21.
//
import XCTest
@testable import StripeIdentity
class StripeIdentityTests: XCTestCase {
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}
}

View File

@ -13,6 +13,10 @@ frameworks_to_archive='[
{
"scheme": "StripeCore",
"framework_name": "StripeCore"
},
{
"scheme": "StripeIdentity",
"framework_name": "StripeIdentity"
}
]'

View File

@ -97,6 +97,7 @@ platform :ios do
Dir.chdir("..") do
sh("rm -rf build-ci-tests")
sh("./ci_scripts/test.rb --build-only --scheme StripeiOS")
sh("./ci_scripts/test.rb --build-only --scheme StripeIdentity")
sh("./ci_scripts/test.rb --build-only --scheme 'Basic Integration'")
sh("./ci_scripts/test.rb --build-only --scheme 'IntegrationTester'")
sh("./ci_scripts/test.rb --build-only --scheme 'LocalizationTester'")
@ -116,6 +117,12 @@ platform :ios do
end
end
lane :stripeidentity_tests do
Dir.chdir("..") do
sh("./ci_scripts/test.rb --scheme StripeIdentity --device '#{DEFAULT_TEST_DEVICE}' --version #{DEFAULT_TEST_VERSION}")
end
end
lane :paymentsheet_tests do
Dir.chdir("..") do
sh("./ci_scripts/test.rb --scheme 'PaymentSheet Example' --device 'iPhone 12' --version 14.5")