Skip to content

Commit 93fffb5

Browse files
committed
feat: add support for SPM
1 parent 2273cfb commit 93fffb5

21 files changed

+65
-824
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,16 @@ node_modules
55
# iOS files
66
Pods
77
Podfile.lock
8+
Package.resolved
89
Build
910
xcuserdata
11+
/.build
12+
/Packages
13+
xcuserdata/
14+
DerivedData/
15+
.swiftpm/configuration/registries.json
16+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
17+
.netrc
1018

1119
# macOS files
1220
.DS_Store

CapacitorCommunityGenericOAuth2.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
1010
s.homepage = package['repository']['url']
1111
s.author = package['author']
1212
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13-
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
13+
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
1414
s.ios.deployment_target = '13.0'
1515
s.dependency 'Capacitor'
1616
s.dependency 'OAuthSwift', '2.2.0'

Package.swift

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// swift-tools-version: 5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "CapacitorCommunityGenericOauth2",
6+
platforms: [.iOS(.v13)],
7+
products: [
8+
.library(
9+
name: "CapacitorCommunityGenericOauth2",
10+
targets: ["GenericOAuth2Plugin"])
11+
],
12+
dependencies: [
13+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "6.0.0"),
14+
.package(url: "https://github.com/OAuthSwift/OAuthSwift.git", from: "2.2.0")
15+
],
16+
targets: [
17+
.target(
18+
name: "GenericOAuth2Plugin",
19+
dependencies: [
20+
.product(name: "Capacitor", package: "capacitor-swift-pm"),
21+
.product(name: "Cordova", package: "capacitor-swift-pm"),
22+
.product(name: "OAuthSwift", package: "OAuthSwift")
23+
],
24+
path: "ios/Sources"
25+
),
26+
.testTarget(
27+
name: "GenericOAuth2PluginTests",
28+
dependencies: ["GenericOAuth2Plugin"],
29+
path: "ios/Tests"
30+
)
31+
]
32+
)

ios/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
xcuserdata/
5+
DerivedData/
6+
.swiftpm/configuration/registries.json
7+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
8+
.netrc

ios/Plugin.xcodeproj/project.pbxproj

Lines changed: 0 additions & 581 deletions
This file was deleted.

ios/Plugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
This file was deleted.

ios/Plugin.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

Lines changed: 0 additions & 8 deletions
This file was deleted.

ios/Plugin.xcodeproj/xcshareddata/xcschemes/Plugin.xcscheme

Lines changed: 0 additions & 77 deletions
This file was deleted.

ios/Plugin.xcodeproj/xcshareddata/xcschemes/PluginTests.xcscheme

Lines changed: 0 additions & 68 deletions
This file was deleted.

ios/Plugin.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)