Skip to content

Commit

Permalink
Extract out ios r1 version and use an env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonjenniges committed Sep 10, 2024
1 parent bffe01a commit b537b20
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
name: reader-sdk-flutter-plugin

on: [push]

env:
IOS_READER_SDK_VERSION: 1.7.4

jobs:
install-and-test:
runs-on: macos-latest
steps:

- name: Cleanup
run: |
sudo rm -rf /Users/runner/.gradle/caches
sudo rm -rf /Library/Developer/CoreSimulator/Profiles/Runtimes/*
sudo rm -rf ~/Library/Developer/Xcode/DerivedData/*
sudo rm -rf ~/Library/Developer/Xcode/Archives/*
sudo rm -rf ~/Library/Caches/*
sudo rm -rf /Library/Developer/CoreSimulator/Profiles/Runtimes/*
sudo rm -rf /Users/runner/Library/Developer/CoreSimulator/Caches/*
sudo rm -rf /Users/runner/Library/Developer/CoreSimulator/Devices/*
sudo rm -rf /Users/runner/.gradle/caches
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -44,7 +49,7 @@ jobs:
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.7.4 > /dev/null
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 $IOS_READER_SDK_VERSION > /dev/null
flutter clean
flutter pub get
Expand Down

0 comments on commit b537b20

Please sign in to comment.