Skip to content

Commit

Permalink
Add CI job to check iOS/macOS symlinks [SDK-4714] 1/2 (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket authored Nov 23, 2023
1 parent 844e03c commit 19afea6
Show file tree
Hide file tree
Showing 65 changed files with 159 additions and 68 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/check-symlinks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Symlinks

on:
pull_request:
types:
- opened
- synchronize

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
check-symlinks:
name: Check symlinks of iOS/macOS native code
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Run check
run: |
scripts/generate-symlinks.sh
if git diff HEAD --quiet --diff-filter=ACDRT; then
echo $'\nNo changes detected in the iOS/macOS files that require updating the symlinks.'
echo 'All good.'
else
echo $'\nDetected changes in the iOS/macOS files that require updating the symlinks.'
echo "Please run 'scripts/generate-symlinks.sh' from the repository root and commit the changes."
exit 1
fi
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ jobs:
- name: Test auth0_flutter package
working-directory: auth0_flutter
run: |
flutter test --tags browser --platform chrome
flutter test --coverage --exclude-tags browser
flutter test --tags browser --platform chrome
flutter test --coverage --exclude-tags browser
- name: Upload coverage report
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
Expand Down
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.

Loading

0 comments on commit 19afea6

Please sign in to comment.