Skip to content

Commit

Permalink
added Package file, updated readme, updated min version to 10.2 to ma…
Browse files Browse the repository at this point in the history
…tch podspec (#25)

Co-authored-by: mrpc <[email protected]>
  • Loading branch information
rpcarson and mrpc authored May 11, 2022
1 parent c8a5402 commit 3ae8530
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 21 deletions.
3 changes: 1 addition & 2 deletions MTGSDKSwift.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Pod::Spec.new do |s|
s.name = 'MTGSDKSwift'
s.version = '1.1'
s.version = '1.1.1'
s.summary = 'Magic: The Gathering SDK - Swift'
s.description = <<-DESC
A lightweight framework that makes interacting with the magicthegathering.io api quick, easy and safe.
Expand All @@ -20,4 +20,3 @@
s.source_files = 'MTGSDKSwift/**/*.swift'
s.swift_version = '4.1'
end

12 changes: 10 additions & 2 deletions MTGSDKSwift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
5B6092D9215EA8E000CDD46A /* Resources in Resources */ = {isa = PBXBuildFile; fileRef = 5B6092D8215EA8DF00CDD46A /* Resources */; };
5B6DC20C1E64A01A000DF60C /* CardSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B6DC20B1E64A01A000DF60C /* CardSet.swift */; };
5B6DC20E1E64A1A0000DF60C /* SearchParameter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B6DC20D1E64A1A0000DF60C /* SearchParameter.swift */; };
5B71E73A282BED55006C7D1F /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 5B71E739282BED55006C7D1F /* README.md */; };
5B87D68720596D6B0098553C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B87D68620596D6B0098553C /* AppDelegate.swift */; };
5B87D68920596D6B0098553C /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B87D68820596D6B0098553C /* ViewController.swift */; };
5B87D68C20596D6B0098553C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5B87D68A20596D6B0098553C /* Main.storyboard */; };
Expand Down Expand Up @@ -65,6 +66,8 @@
5B6092D8215EA8DF00CDD46A /* Resources */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Resources; sourceTree = "<group>"; };
5B6DC20B1E64A01A000DF60C /* CardSet.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CardSet.swift; sourceTree = "<group>"; };
5B6DC20D1E64A1A0000DF60C /* SearchParameter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SearchParameter.swift; sourceTree = "<group>"; };
5B71E739282BED55006C7D1F /* README.md */ = {isa = PBXFileReference; explicitFileType = net.daringfireball.markdown; fileEncoding = 4; path = README.md; sourceTree = "<group>"; };
5B71E73B282BEFFD006C7D1F /* Package.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
5B87D68420596D6B0098553C /* TestApplication.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TestApplication.app; sourceTree = BUILT_PRODUCTS_DIR; };
5B87D68620596D6B0098553C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
5B87D68820596D6B0098553C /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -136,6 +139,8 @@
5BD04D9F1E64943C00E5ED27 = {
isa = PBXGroup;
children = (
5B71E739282BED55006C7D1F /* README.md */,
5B71E73B282BEFFD006C7D1F /* Package.swift */,
5BD04DAB1E64943C00E5ED27 /* MTGSDKSwift */,
5BD04DB61E64943C00E5ED27 /* MTGSDKSwiftTests */,
5B87D68520596D6B0098553C /* TestApplication */,
Expand Down Expand Up @@ -322,6 +327,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5B71E73A282BED55006C7D1F /* README.md in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -501,7 +507,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -548,7 +554,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand All @@ -571,6 +577,7 @@
INFOPLIST_FILE = MTGSDKSwift/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 1.1.1;
PRODUCT_BUNDLE_IDENTIFIER = com.rpcarson.MTGSDKSwift;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -591,6 +598,7 @@
INFOPLIST_FILE = MTGSDKSwift/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 1.1.1;
PRODUCT_BUNDLE_IDENTIFIER = com.rpcarson.MTGSDKSwift;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down
33 changes: 16 additions & 17 deletions MTGSDKSwift/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,23 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>wizards.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
</dict>
</dict>
</dict>

<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>wizards.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
</dict>
</dict>
</dict>
</dict>
</plist>
29 changes: 29 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "MTGSDKSwift",
platforms: [
.iOS(.v9)
],
products: [
.library(
name: "MTGSDKSwift",
targets: ["MTGSDKSwift"]),
],
dependencies: [],
targets: [
.target(
name: "MTGSDKSwift",
dependencies: [],
path: "MTGSDKSwift"
),
.testTarget(
name: "MTGSDKSwiftTests",
dependencies: [],
path: "MTGSDKSwiftTests"
),
]
)
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@


#### Installation

##### Install with SPM

##### Install with Cocoapods
- add `pod 'MTGSDKSwift'` to your podfile
- run pod install
Expand Down

0 comments on commit 3ae8530

Please sign in to comment.