Skip to content

Commit

Permalink
Use symlinks with relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Nov 21, 2023
1 parent ea59acb commit 2985c3f
Show file tree
Hide file tree
Showing 63 changed files with 121 additions and 65 deletions.
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Assets/.gitkeep
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Classes/Auth0FlutterPlugin.h
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Classes/Auth0FlutterPlugin.m
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Classes/AuthAPI/AuthAPIExtensions.swift
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Classes/AuthAPI/AuthAPIHandler.swift
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Classes/Extensions.swift
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Classes/HandlerError.swift
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Classes/MethodHandler.swift
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Classes/Models.swift
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Classes/Properties.swift
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Classes/SwiftAuth0FlutterPlugin.swift
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Classes/WebAuth/WebAuthExtensions.swift
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Classes/WebAuth/WebAuthHandler.swift
2 changes: 1 addition & 1 deletion auth0_flutter/ios/Classes/WebAuth/WebAuthModels.swift
1 change: 0 additions & 1 deletion auth0_flutter/ios/auth0_flutter.podspec

This file was deleted.

29 changes: 29 additions & 0 deletions auth0_flutter/ios/auth0_flutter.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint auth0_flutter.podspec` to validate before publishing.
#
Pod::Spec.new do |s|
s.name = 'auth0_flutter'
s.version = '1.3.1'
s.summary = 'Auth0 SDK for Flutter'
s.description = 'Auth0 SDK for Flutter Android and iOS apps.'
s.homepage = 'https://auth0.com'
s.license = { :file => '../LICENSE' }
s.author = { 'Auth0' => '[email protected]' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'

s.ios.deployment_target = '13.0'
s.ios.dependency 'Flutter'

s.osx.deployment_target = '11.0'
s.osx.dependency 'FlutterMacOS'

s.dependency 'Auth0', '2.3.2'
s.dependency 'JWTDecode', '3.0.1'
s.dependency 'SimpleKeychain', '1.0.1'

# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
s.swift_version = ['5.3', '5.4', '5.5', '5.6', '5.7']
end
2 changes: 1 addition & 1 deletion auth0_flutter/macos/Assets/.gitkeep
2 changes: 1 addition & 1 deletion auth0_flutter/macos/Classes/Auth0FlutterPlugin.h
2 changes: 1 addition & 1 deletion auth0_flutter/macos/Classes/Auth0FlutterPlugin.m
2 changes: 1 addition & 1 deletion auth0_flutter/macos/Classes/AuthAPI/AuthAPIHandler.swift
2 changes: 1 addition & 1 deletion auth0_flutter/macos/Classes/Extensions.swift
2 changes: 1 addition & 1 deletion auth0_flutter/macos/Classes/HandlerError.swift
2 changes: 1 addition & 1 deletion auth0_flutter/macos/Classes/MethodHandler.swift
2 changes: 1 addition & 1 deletion auth0_flutter/macos/Classes/Models.swift
2 changes: 1 addition & 1 deletion auth0_flutter/macos/Classes/Properties.swift
2 changes: 1 addition & 1 deletion auth0_flutter/macos/Classes/SwiftAuth0FlutterPlugin.swift
2 changes: 1 addition & 1 deletion auth0_flutter/macos/Classes/WebAuth/WebAuthHandler.swift
2 changes: 1 addition & 1 deletion auth0_flutter/macos/Classes/WebAuth/WebAuthModels.swift
1 change: 0 additions & 1 deletion auth0_flutter/macos/auth0_flutter.podspec

This file was deleted.

29 changes: 29 additions & 0 deletions auth0_flutter/macos/auth0_flutter.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint auth0_flutter.podspec` to validate before publishing.
#
Pod::Spec.new do |s|
s.name = 'auth0_flutter'
s.version = '1.3.1'
s.summary = 'Auth0 SDK for Flutter'
s.description = 'Auth0 SDK for Flutter Android and iOS apps.'
s.homepage = 'https://auth0.com'
s.license = { :file => '../LICENSE' }
s.author = { 'Auth0' => '[email protected]' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'

s.ios.deployment_target = '13.0'
s.ios.dependency 'Flutter'

s.osx.deployment_target = '11.0'
s.osx.dependency 'FlutterMacOS'

s.dependency 'Auth0', '2.3.2'
s.dependency 'JWTDecode', '3.0.1'
s.dependency 'SimpleKeychain', '1.0.1'

# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
s.swift_version = ['5.3', '5.4', '5.5', '5.6', '5.7']
end
6 changes: 3 additions & 3 deletions scripts/generate-symlinks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ for file in "${files[@]}"; do
mkdir -p "$target_dir"

case "$file" in
# If it's a .gitignore file, copy it
(*'.gitignore') cp -v "$file" "$target_dir" ;;
# If it's a .gitignore or Podspec file, copy it
(*'.gitignore' | *'.podspec') cp -v "$file" "$target_dir" ;;
# Else symlink it
(*) ln -sv "$repo_path/$file" "$target_file" ;;
(*) ln -sv "$file" "$target_file" ;;
esac
done
done
Expand Down

0 comments on commit 2985c3f

Please sign in to comment.