Skip to content

Commit 29e7c3d

Browse files
committed
cocoapods to spm conversion
1 parent b67744c commit 29e7c3d

130 files changed

Lines changed: 53 additions & 85 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

auth0_flutter/darwin/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@ Icon?
3636
/Flutter/Generated.xcconfig
3737
/Flutter/ephemeral/
3838
/Flutter/flutter_export_environment.sh
39+
40+
# Swift Package Manager
41+
.build/
42+
.swiftpm/
43+
FlutterFramework/

auth0_flutter/darwin/auth0_flutter.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Pod::Spec.new do |s|
1111
s.license = { :file => '../LICENSE' }
1212
s.author = { 'Auth0' => 'support@auth0.com' }
1313
s.source = { :path => '.' }
14-
s.source_files = 'Classes/**/*'
14+
s.source_files = 'auth0_flutter/Sources/auth0_flutter/**/*.{h,m,swift}'
15+
s.public_header_files = 'auth0_flutter/Sources/auth0_flutter/include/**/*.h'
1516

1617
s.ios.deployment_target = '14.0'
1718
s.ios.dependency 'Flutter'
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// swift-tools-version: 5.9
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "auth0_flutter",
6+
platforms: [
7+
.iOS("14.0"),
8+
.macOS("11.0"),
9+
],
10+
products: [
11+
.library(name: "auth0-flutter", targets: ["auth0_flutter"]),
12+
],
13+
dependencies: [
14+
.package(name: "FlutterFramework", path: "../FlutterFramework"),
15+
.package(url: "https://github.com/auth0/Auth0.swift", exact: "2.18.0"),
16+
.package(url: "https://github.com/auth0/JWTDecode.swift", exact: "3.3.0"),
17+
.package(url: "https://github.com/auth0/SimpleKeychain", exact: "1.3.0"),
18+
],
19+
targets: [
20+
.target(
21+
name: "auth0_flutter",
22+
dependencies: [
23+
.product(name: "FlutterFramework", package: "FlutterFramework"),
24+
.product(name: "Auth0", package: "Auth0.swift"),
25+
.product(name: "JWTDecode", package: "JWTDecode.swift"),
26+
.product(name: "SimpleKeychain", package: "SimpleKeychain"),
27+
],
28+
path: "Sources/auth0_flutter",
29+
cSettings: [
30+
.headerSearchPath("include/auth0_flutter"),
31+
]
32+
),
33+
]
34+
)

auth0_flutter/darwin/Classes/Auth0FlutterPlugin.m renamed to auth0_flutter/darwin/auth0_flutter/Sources/auth0_flutter/Auth0FlutterPlugin.m

File renamed without changes.

auth0_flutter/darwin/Classes/AuthAPI/AuthAPICustomTokenExchangeMethodHandler.swift renamed to auth0_flutter/darwin/auth0_flutter/Sources/auth0_flutter/AuthAPI/AuthAPICustomTokenExchangeMethodHandler.swift

File renamed without changes.

auth0_flutter/darwin/Classes/AuthAPI/AuthAPIEmailPasswordlessLoginMethodHandler.swift renamed to auth0_flutter/darwin/auth0_flutter/Sources/auth0_flutter/AuthAPI/AuthAPIEmailPasswordlessLoginMethodHandler.swift

File renamed without changes.

auth0_flutter/darwin/Classes/AuthAPI/AuthAPIExtensions.swift renamed to auth0_flutter/darwin/auth0_flutter/Sources/auth0_flutter/AuthAPI/AuthAPIExtensions.swift

File renamed without changes.

auth0_flutter/darwin/Classes/AuthAPI/AuthAPIHandler.swift renamed to auth0_flutter/darwin/auth0_flutter/Sources/auth0_flutter/AuthAPI/AuthAPIHandler.swift

File renamed without changes.

auth0_flutter/darwin/Classes/AuthAPI/AuthAPILoginUsernameOrEmailMethodHandler.swift renamed to auth0_flutter/darwin/auth0_flutter/Sources/auth0_flutter/AuthAPI/AuthAPILoginUsernameOrEmailMethodHandler.swift

File renamed without changes.

auth0_flutter/darwin/Classes/AuthAPI/AuthAPILoginWithEmailMethodHandler.swift renamed to auth0_flutter/darwin/auth0_flutter/Sources/auth0_flutter/AuthAPI/AuthAPILoginWithEmailMethodHandler.swift

File renamed without changes.

0 commit comments

Comments
 (0)