Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/actions/setup-android/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ runs:
flutter-version: 3.29.3
channel: stable
cache: true

- name: Enable Swift Package Manager
run: flutter config --enable-swift-package-manager
shell: bash

- name: Install Flutter dependencies
working-directory: auth0_flutter/example
Expand Down
14 changes: 9 additions & 5 deletions .github/actions/setup-darwin/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ runs:
channel: stable
cache: true

- name: Install Flutter dependencies
working-directory: auth0_flutter/example
run: flutter pub get
shell: bash

- name: Setup Xcode
run: sudo xcode-select --switch /Applications/Xcode_${{ inputs.xcode }}.app/Contents/Developer
shell: bash
Expand All @@ -63,6 +58,15 @@ runs:
run: xcodebuild -version | tee .xcode-version
shell: bash

- name: Enable Swift Package Manager
run: flutter config --enable-swift-package-manager
shell: bash

- name: Install Flutter dependencies
working-directory: auth0_flutter/example
run: flutter pub get
shell: bash

- id: restore-pods-cache
name: Restore Pods cache
uses: actions/cache@v5
Expand Down
5 changes: 4 additions & 1 deletion .github/actions/setup-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ runs:
flutter-version: ${{ inputs.flutter }}
channel: stable
cache: true


- name: Enable Swift Package Manager
run: flutter config --enable-swift-package-manager
shell: bash
- name: Install Flutter dependencies
working-directory: ${{ inputs.working-directory }}
run: flutter pub get
Expand Down
5 changes: 5 additions & 0 deletions auth0_flutter/darwin/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ Icon?
/Flutter/Generated.xcconfig
/Flutter/ephemeral/
/Flutter/flutter_export_environment.sh

# Swift Package Manager
.build/
.swiftpm/
FlutterFramework/
7 changes: 0 additions & 7 deletions auth0_flutter/darwin/Classes/Auth0FlutterPlugin.h

This file was deleted.

15 changes: 0 additions & 15 deletions auth0_flutter/darwin/Classes/Auth0FlutterPlugin.m

This file was deleted.

29 changes: 0 additions & 29 deletions auth0_flutter/darwin/auth0_flutter.podspec

This file was deleted.

32 changes: 32 additions & 0 deletions auth0_flutter/darwin/auth0_flutter/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions auth0_flutter/darwin/auth0_flutter/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// swift-tools-version: 5.9
import PackageDescription

let package = Package(
name: "auth0_flutter",
platforms: [
.iOS("14.0"),
.macOS("11.0"),
],
products: [
.library(name: "auth0-flutter", targets: ["auth0_flutter"]),
],
dependencies: [
.package(url: "https://github.com/auth0/Auth0.swift", exact: "2.18.0"),
.package(url: "https://github.com/auth0/JWTDecode.swift", exact: "3.3.0"),
.package(url: "https://github.com/auth0/SimpleKeychain", exact: "1.3.0"),
],
targets: [
.target(
name: "auth0_flutter",
dependencies: [
.product(name: "Auth0", package: "Auth0.swift"),
.product(name: "JWTDecode", package: "JWTDecode.swift"),
.product(name: "SimpleKeychain", package: "SimpleKeychain"),
],
path: "Sources/auth0_flutter"
),
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Flutter
import FlutterMacOS
#endif

public class SwiftAuth0FlutterPlugin: NSObject, FlutterPlugin {
public class Auth0FlutterPlugin: NSObject, FlutterPlugin {
static var handlers: [FlutterPlugin.Type] = [WebAuthHandler.self,
AuthAPIHandler.self,
DPoPHandler.self,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#if os(iOS)
import UIKit

enum SafariViewControllerProperty: String, CaseIterable {
case presentationStyle
}
Expand Down
2 changes: 1 addition & 1 deletion auth0_flutter/example/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ AUTH0_CLIENT_ID=YOUR_AUTH0_CLIENT_ID
# settings page of your Auth0 application with the custom scheme value.
# 2. Update the scheme value in android/app/src/main/res/values/strings.xml
#
AUTH0_CUSTOM_SCHEME=YOUR_AUTH0_CUSTOM_SCHEME
AUTH0_CUSTOM_SCHEME=YOUR_AUTH0_CUSTOM_SCHEME
Loading
Loading