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 3, 2024
1 parent 6520b13 commit d6fd05d
Show file tree
Hide file tree
Showing 9 changed files with 368 additions and 140 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
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ SPEC CHECKSUMS:
FirebaseSessions: 2f348975f6d1c139231c180e12194161da2e0cd6
FirebaseSharedSwift: 2fbf73618288b7a36b2014b957745dcdd781389e
FirebaseStorage: 8505bae8ac6662474b5b50e07759fb2765c15746
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_barcode_scanner: 7a1144744c28dc0c57a8de7218ffe5ec59a9e4bf
google_sign_in_ios: 1bfaf6607b44cd1b24c4d4bc39719870440f9ce1
GoogleAppMeasurement: bb3c564c3efb933136af0e94899e0a46167466a8
Expand Down
2 changes: 1 addition & 1 deletion ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1430;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Loading

0 comments on commit d6fd05d

Please sign in to comment.