Skip to content

Commit b465459

Browse files
committed
Reverts removal of cocoapods
1 parent 019f182 commit b465459

8 files changed

Lines changed: 45 additions & 131 deletions

File tree

.github/actions/setup-darwin/action.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ runs:
3131
run: echo "platform=$(echo ${{ inputs.platform }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
3232
shell: bash
3333

34-
- name: Set up Ruby
35-
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # pin@v1.310.0
36-
with:
37-
ruby-version: ${{ inputs.ruby }}
38-
bundler-cache: true
39-
cache-version: 1
40-
working-directory: auth0_flutter/example/${{ steps.lowercase-platform.outputs.platform }}
41-
4234
- name: Install Flutter
4335
uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # pin@v2.23.0
4436
with:
@@ -61,14 +53,24 @@ runs:
6153

6254
- name: Fix iOS minimum deployment target for SPM
6355
if: inputs.platform == 'iOS'
64-
working-directory: auth0_flutter/example/ios/Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage
65-
run: sed -i '' 's/\.iOS(".*")/\.iOS("14.0")/g' Package.swift
56+
run: |
57+
PACKAGE_FILE="auth0_flutter/example/ios/Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage/Package.swift"
58+
if [ ! -f "$PACKAGE_FILE" ]; then
59+
echo "::error::FlutterGeneratedPluginSwiftPackage/Package.swift not found at expected path"
60+
exit 1
61+
fi
62+
sed -i '' 's/\.iOS(".*")/\.iOS("14.0")/g' "$PACKAGE_FILE"
6663
shell: bash
6764

6865
- name: Fix macOS minimum deployment target for SPM
6966
if: inputs.platform == 'macOS'
70-
working-directory: auth0_flutter/example/macos/Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage
71-
run: sed -i '' 's/\.macOS(".*")/\.macOS("11.0")/g' Package.swift
67+
run: |
68+
PACKAGE_FILE="auth0_flutter/example/macos/Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage/Package.swift"
69+
if [ ! -f "$PACKAGE_FILE" ]; then
70+
echo "::error::FlutterGeneratedPluginSwiftPackage/Package.swift not found at expected path"
71+
exit 1
72+
fi
73+
sed -i '' 's/\.macOS(".*")/\.macOS("11.0")/g' "$PACKAGE_FILE"
7274
shell: bash
7375

7476
- name: Set .env

.github/workflows/check-symlinks.yml

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

Report.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

auth0_flutter/darwin/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ Icon?
4040
# Swift Package Manager
4141
.build/
4242
.swiftpm/
43+
Package.resolved
4344
FlutterFramework/
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
3+
# Run `pod lib lint auth0_flutter.podspec` to validate before publishing.
4+
#
5+
Pod::Spec.new do |s|
6+
s.name = 'auth0_flutter'
7+
s.version = '2.1.0'
8+
s.summary = 'Auth0 SDK for Flutter'
9+
s.description = 'Auth0 SDK for Flutter Android, iOS, macOS, Windows, and web apps.'
10+
s.homepage = 'https://auth0.com'
11+
s.license = { :file => '../LICENSE' }
12+
s.author = { 'Auth0' => 'support@auth0.com' }
13+
s.source = { :path => '.' }
14+
s.source_files = 'auth0_flutter/Sources/auth0_flutter/**/*'
15+
16+
s.ios.deployment_target = '14.0'
17+
s.ios.dependency 'Flutter'
18+
19+
s.osx.deployment_target = '11.0'
20+
s.osx.dependency 'FlutterMacOS'
21+
22+
s.dependency 'Auth0', '2.18.0'
23+
s.dependency 'JWTDecode', '3.3.0'
24+
s.dependency 'SimpleKeychain', '1.3.0'
25+
26+
# Flutter.framework does not contain a i386 slice.
27+
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
28+
s.swift_version = ['5.7', '5.8', '5.9']
29+
end

auth0_flutter/darwin/auth0_flutter/Package.resolved

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

auth0_flutter/darwin/auth0_flutter/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let package = Package(
88
.macOS("11.0"),
99
],
1010
products: [
11-
.library(name: "auth0-flutter", targets: ["auth0_flutter"]),
11+
.library(name: "auth0_flutter", targets: ["auth0_flutter"]),
1212
],
1313
dependencies: [
1414
.package(url: "https://github.com/auth0/Auth0.swift", exact: "2.18.0"),

scripts/generate-symlinks.sh

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

0 commit comments

Comments
 (0)