Skip to content

Try to clean derived data after to clean up space #139

Try to clean derived data after to clean up space

Try to clean derived data after to clean up space #139

Workflow file for this run

name: reader-sdk-flutter-plugin
on: [push]
jobs:
install-and-test:
runs-on: macos-latest
steps:
- run: rm -rf /Users/runner/.gradle/caches
- run: sudo rm -rf /Library/Developer/CoreSimulator/Profiles/Runtimes/*
- run: sudo rm -rf ~/Library/Developer/Xcode/DerivedData/*
- run: sudo rm -rf ~/Library/Developer/Xcode/Archives/*
- run: sudo rm -rf ~/Library/Caches/*
- run: sudo rm -rf /Users/runner/Library/Developer/CoreSimulator/Caches/*
- run: sudo rm -rf /Users/runner/Library/Developer/CoreSimulator/Devices/*
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- uses: subosito/flutter-action@v1
with:
channel: 'stable' # or: 'beta', 'dev' or 'master'
- run: flutter pub get
# iOS
- run: |
cd example
flutter pub get
cd ios
ruby <(curl https://connect.squareup.com/readersdk-installer) install --app-id ${{secrets.SQUARE_READER_SDK_APPLICATION_ID}} --repo-password ${{secrets.SQUARE_READER_SDK_REPOSITORY_PASSWORD}} --version 1.6.1 > /dev/null
flutter clean
rm Pods && rm Podfile.lock
flutter pub get
pod update Firebase/CoreOnly
pod install --repo-update
xcodebuild -workspace Runner.xcworkspace -configuration Debug -scheme Runner -sdk iphoneos SKIP_SETUP_SCRIPT=YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
# Android
- run: |
cd example
flutter pub get
cd android
./gradlew clean build -PSQUARE_READER_SDK_APPLICATION_ID=${{secrets.SQUARE_READER_SDK_APPLICATION_ID}} -PSQUARE_READER_SDK_REPOSITORY_PASSWORD=${{secrets.SQUARE_READER_SDK_REPOSITORY_PASSWORD}}