Skip to content

Commit

Permalink
Show suggested book
Browse files Browse the repository at this point in the history
  • Loading branch information
lockieRichter committed Mar 14, 2024
1 parent 6143de0 commit 93ccf43
Show file tree
Hide file tree
Showing 5 changed files with 358 additions and 143 deletions.
72 changes: 63 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Flutter Workflow

on: [push, workflow_dispatch]
jobs:
build:
runs-on: macos-latest
ios:
runs-on: macos-14
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -15,7 +15,42 @@ jobs:
java-version: '11'

- name: Install Flutter
uses: subosito/flutter-action@v2
uses: subosito/[email protected]
with:
channel: 'stable'
cache: true

- name: Install dependencies
run: flutter pub get

- name: Generate code
run: flutter pub run build_runner build --delete-conflicting-outputs

- name: Run tests
run: flutter test --coverage

- name: Create GoogleService-Info.plist file
env:
GOOGLE_SERVICES_INFO_PLIST: ${{ secrets.GOOGLE_SERVICES_INFO_PLIST }}
run: touch ${GITHUB_WORKSPACE}/ios/Runner/GoogleService-Info.plist && echo $GOOGLE_SERVICES_INFO_PLIST > ${GITHUB_WORKSPACE}/ios/Runner/GoogleService-Info.plist

- name: Build iOS
run: flutter build ios --release --no-codesign

android:
runs-on: macos-14
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'

- name: Install Flutter
uses: subosito/[email protected]
with:
channel: 'stable'
cache: true
Expand All @@ -37,13 +72,32 @@ jobs:
- name: Build Android appbundle
run: flutter build appbundle

- name: Create GoogleService-Info.plist file
env:
GOOGLE_SERVICES_INFO_PLIST: ${{ secrets.GOOGLE_SERVICES_INFO_PLIST }}
run: touch ${GITHUB_WORKSPACE}/ios/Runner/GoogleService-Info.plist && echo $GOOGLE_SERVICES_INFO_PLIST > ${GITHUB_WORKSPACE}/ios/Runner/GoogleService-Info.plist
web:
runs-on: macos-14
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Build iOS
run: flutter build ios --release --no-codesign
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'

- name: Install Flutter
uses: subosito/[email protected]
with:
channel: 'stable'
cache: true

- name: Install dependencies
run: flutter pub get

- name: Generate code
run: flutter pub run build_runner build --delete-conflicting-outputs

- name: Run tests
run: flutter test --coverage

- name: Build Web
run: flutter build web
5 changes: 5 additions & 0 deletions assets/translations/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@
"hint": "Title oder ISBN",
"title": "Titelsuche"
},
"random_book": {
"description": "TODO",
"move_to_reading": "TODO",
"title": "TODO"
},
"recommendations": {
"add-to-wishlist": "Zur Wunschliste hinzufügen",
"empty": "Keine Vorschläge verfügbar.",
Expand Down
5 changes: 5 additions & 0 deletions assets/translations/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@
"hint": "Title or ISBN",
"title": "Title search"
},
"random_book": {
"description": "Can't decide which book to read next? We've got you covered. Let us decide for you what you should read next.",
"move_to_reading": "Move To Reading",
"title": "Pick Random Book"
},
"recommendations": {
"add-to-wishlist": "Add to wishlist",
"empty": "No recommendations available.",
Expand Down
Loading

0 comments on commit 93ccf43

Please sign in to comment.