├── cloud-functions ├── functions │ ├── .gitignore │ ├── package.json │ └── index.js ├── firestore.indexes.json ├── .firebaserc ├── package.json ├── firestore.rules ├── firebase.json └── .gitignore ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── .gitignore └── GoogleService-Info.plist ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ ├── Icon-512.png │ ├── Icon-maskable-192.png │ └── Icon-maskable-512.png ├── manifest.json └── index.html ├── images ├── webb-icon.png └── webb-icon-black.png ├── docs └── images │ ├── unfold.png │ ├── explore.png │ ├── first-image.png │ ├── example-step.png │ └── screenshot-notification.png ├── android ├── app │ ├── src │ │ ├── main │ │ │ ├── ic_launcher-playstore.png │ │ │ ├── launcher_icon-playstore.png │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── launcher_icon.png │ │ │ │ │ ├── launcher_icon_round.png │ │ │ │ │ ├── launcher_icon_background.png │ │ │ │ │ └── launcher_icon_foreground.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── launcher_icon.png │ │ │ │ │ ├── launcher_icon_round.png │ │ │ │ │ ├── launcher_icon_background.png │ │ │ │ │ └── launcher_icon_foreground.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── launcher_icon.png │ │ │ │ │ ├── launcher_icon_round.png │ │ │ │ │ ├── launcher_icon_background.png │ │ │ │ │ └── launcher_icon_foreground.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── launcher_icon.png │ │ │ │ │ ├── launcher_icon_round.png │ │ │ │ │ ├── launcher_icon_background.png │ │ │ │ │ └── launcher_icon_foreground.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── launcher_icon.png │ │ │ │ │ ├── launcher_icon_round.png │ │ │ │ │ ├── launcher_icon_background.png │ │ │ │ │ └── launcher_icon_foreground.png │ │ │ │ ├── drawable-hdpi │ │ │ │ │ └── notification_icon.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ └── notification_icon.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── notification_icon.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ └── notification_icon.png │ │ │ │ ├── drawable-xxxhdpi │ │ │ │ │ └── notification_icon.png │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ │ ├── launcher_icon.xml │ │ │ │ │ └── launcher_icon_round.xml │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── pertl │ │ │ │ │ └── johannes │ │ │ │ │ ├── jwst_status │ │ │ │ │ └── MainActivity.kt │ │ │ │ │ └── where_is_webb │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ ├── google-services.json │ └── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── .metadata ├── README.md ├── .gitignore ├── test └── widget_test.dart ├── analysis_options.yaml ├── lib ├── notification.dart └── main.dart ├── pubspec.yaml └── pubspec.lock /cloud-functions/functions/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/web/favicon.png -------------------------------------------------------------------------------- /cloud-functions/firestore.indexes.json: -------------------------------------------------------------------------------- 1 | { 2 | "indexes": [], 3 | "fieldOverrides": [] 4 | } 5 | -------------------------------------------------------------------------------- /images/webb-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/images/webb-icon.png -------------------------------------------------------------------------------- /cloud-functions/.firebaserc: -------------------------------------------------------------------------------- 1 | { 2 | "projects": { 3 | "default": "jwst-status-7a589" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /docs/images/unfold.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/docs/images/unfold.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/web/icons/Icon-512.png -------------------------------------------------------------------------------- /docs/images/explore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/docs/images/explore.png -------------------------------------------------------------------------------- /docs/images/first-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/docs/images/first-image.png -------------------------------------------------------------------------------- /images/webb-icon-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/images/webb-icon-black.png -------------------------------------------------------------------------------- /docs/images/example-step.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/docs/images/example-step.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /docs/images/screenshot-notification.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/docs/images/screenshot-notification.png -------------------------------------------------------------------------------- /android/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /android/app/src/main/launcher_icon-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/launcher_icon-playstore.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /cloud-functions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "axios": "^0.24.0", 4 | "dayjs": "^1.10.7", 5 | "firebase-functions": "^3.16.0" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-hdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-mdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | android.bundle.enableUncompressedNativeLibs=false 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/notification_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/drawable-hdpi/notification_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/notification_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/drawable-mdpi/notification_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/launcher_icon_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-hdpi/launcher_icon_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/launcher_icon_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-mdpi/launcher_icon_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/notification_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/drawable-xhdpi/notification_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/notification_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/drawable-xxhdpi/notification_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/launcher_icon_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xhdpi/launcher_icon_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/launcher_icon_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xxhdpi/launcher_icon_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxxhdpi/notification_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/drawable-xxxhdpi/notification_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/launcher_icon_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-hdpi/launcher_icon_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/launcher_icon_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-hdpi/launcher_icon_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/launcher_icon_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-mdpi/launcher_icon_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/launcher_icon_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-mdpi/launcher_icon_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/launcher_icon_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon_round.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/launcher_icon_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xhdpi/launcher_icon_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/launcher_icon_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xhdpi/launcher_icon_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/launcher_icon_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xxhdpi/launcher_icon_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/launcher_icon_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xxhdpi/launcher_icon_foreground.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/launcher_icon_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon_background.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/launcher_icon_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon_foreground.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JohannesPertl/where_is_webb/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /cloud-functions/firestore.rules: -------------------------------------------------------------------------------- 1 | rules_version = '2'; 2 | service cloud.firestore { 3 | match /databases/{database}/documents { 4 | match /{document=**} { 5 | allow read, write: if false; 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/pertl/johannes/jwst_status/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.pertl.johannes.jwst_status 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/pertl/johannes/where_is_webb/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.pertl.johannes.where_is_webb 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/launcher_icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/launcher_icon_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 18116933e77adc82f80866c928266a5b4f1ed645 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /cloud-functions/firebase.json: -------------------------------------------------------------------------------- 1 | { 2 | "firestore": { 3 | "rules": "firestore.rules", 4 | "indexes": "firestore.indexes.json" 5 | }, 6 | "functions": { 7 | "source": "functions" 8 | }, 9 | "emulators": { 10 | "functions": { 11 | "port": 5001 12 | }, 13 | "ui": { 14 | "enabled": true 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /cloud-functions/functions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "functions", 3 | "description": "Cloud Functions for Firebase", 4 | "scripts": { 5 | "serve": "firebase emulators:start --only functions", 6 | "shell": "firebase functions:shell", 7 | "start": "npm run shell", 8 | "deploy": "firebase deploy --only functions", 9 | "logs": "firebase functions:log" 10 | }, 11 | "engines": { 12 | "node": "16" 13 | }, 14 | "main": "index.js", 15 | "dependencies": { 16 | "dayjs": "^1.11.8", 17 | "firebase-admin": "^10.0.2", 18 | "firebase-functions": "^3.18.0", 19 | "puppeteer": "^16.2.0" 20 | }, 21 | "devDependencies": { 22 | "firebase-functions-test": "^0.2.0" 23 | }, 24 | "private": true 25 | } 26 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.6.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | classpath 'com.google.gms:google-services:4.3.10' // Google Services plugin 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | rootProject.buildDir = '../build' 23 | subprojects { 24 | project.buildDir = "${rootProject.buildDir}/${project.name}" 25 | project.evaluationDependsOn(':app') 26 | } 27 | 28 | task clean(type: Delete) { 29 | delete rootProject.buildDir 30 | } 31 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 9.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

Where is Webb?

2 |

An android app that keeps you up to date about the James Webb Space Telescope via push notifications.

3 | 4 |

5 | 6 | 7 | 8 |

9 | 10 | ## Install 11 | 12 | Available on the [play store](https://play.google.com/store/apps/details?id=com.pertl.johannes.jwst_status). 13 | 14 | ## How it works 15 | 16 | The app scrapes data from the [official NASA website](https://www.jwst.nasa.gov/content/webbLaunch/whereIsWebb.html) and 17 | displays it in a mobile-friendly way. 18 | It also sends a push notifications about important updates. 19 | 20 | ## Dependencies 21 | 22 | * Flutter 23 | * Node.js 24 | * Firebase 25 | 26 | ## Setup 27 | 28 | `flutter create .` 29 | `flutter run` 30 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "where_is_webb", 3 | "short_name": "where_is_webb", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:jwst_status/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(const MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /ios/GoogleService-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CLIENT_ID 6 | 1063801479888-n1i3klcp9cun5rgq3a4010b0s67tcmo5.apps.googleusercontent.com 7 | REVERSED_CLIENT_ID 8 | com.googleusercontent.apps.1063801479888-n1i3klcp9cun5rgq3a4010b0s67tcmo5 9 | API_KEY 10 | AIzaSyDin1Rd7H1UX5kgDXtPwPJhsiQdCV6KiU0 11 | GCM_SENDER_ID 12 | 1063801479888 13 | PLIST_VERSION 14 | 1 15 | BUNDLE_ID 16 | com.johannespertl.where-is-webb 17 | PROJECT_ID 18 | jwst-status-7a589 19 | STORAGE_BUCKET 20 | jwst-status-7a589.appspot.com 21 | IS_ADS_ENABLED 22 | 23 | IS_ANALYTICS_ENABLED 24 | 25 | IS_APPINVITE_ENABLED 26 | 27 | IS_GCM_ENABLED 28 | 29 | IS_SIGNIN_ENABLED 30 | 31 | GOOGLE_APP_ID 32 | 1:1063801479888:ios:bd012a9b2375fbb91974d5 33 | 34 | -------------------------------------------------------------------------------- /cloud-functions/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | firebase-debug.log* 8 | firebase-debug.*.log* 9 | 10 | # Firebase cache 11 | .firebase/ 12 | 13 | # Firebase config 14 | 15 | # Uncomment this if you'd like others to create their own Firebase project. 16 | # For a team working on the same Firebase project(s), it is recommended to leave 17 | # it commented so all members can deploy to the same project(s) in .firebaserc. 18 | # .firebaserc 19 | 20 | # Runtime data 21 | pids 22 | *.pid 23 | *.seed 24 | *.pid.lock 25 | 26 | # Directory for instrumented libs generated by jscoverage/JSCover 27 | lib-cov 28 | 29 | # Coverage directory used by tools like istanbul 30 | coverage 31 | 32 | # nyc test coverage 33 | .nyc_output 34 | 35 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 36 | .grunt 37 | 38 | # Bower dependency directory (https://bower.io/) 39 | bower_components 40 | 41 | # node-waf configuration 42 | .lock-wscript 43 | 44 | # Compiled binary addons (http://nodejs.org/api/addons.html) 45 | build/Release 46 | 47 | # Dependency directories 48 | node_modules/ 49 | 50 | # Optional npm cache directory 51 | .npm 52 | 53 | # Optional eslint cache 54 | .eslintcache 55 | 56 | # Optional REPL history 57 | .node_repl_history 58 | 59 | # Output of 'npm pack' 60 | *.tgz 61 | 62 | # Yarn Integrity file 63 | .yarn-integrity 64 | 65 | # dotenv environment variables file 66 | .env 67 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | jwst_status 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /android/app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "1063801479888", 4 | "project_id": "jwst-status-7a589", 5 | "storage_bucket": "jwst-status-7a589.appspot.com" 6 | }, 7 | "client": [ 8 | { 9 | "client_info": { 10 | "mobilesdk_app_id": "1:1063801479888:android:97d0587bedd90bd11974d5", 11 | "android_client_info": { 12 | "package_name": "com.pertl.johannes" 13 | } 14 | }, 15 | "oauth_client": [ 16 | { 17 | "client_id": "1063801479888-s5mvgsr6iaap6soem6f6jgbppkdd93l1.apps.googleusercontent.com", 18 | "client_type": 3 19 | } 20 | ], 21 | "api_key": [ 22 | { 23 | "current_key": "AIzaSyDpBUFt5JkUVXJSJjn6vAK-tN10L5FoKqc" 24 | } 25 | ], 26 | "services": { 27 | "appinvite_service": { 28 | "other_platform_oauth_client": [ 29 | { 30 | "client_id": "1063801479888-s5mvgsr6iaap6soem6f6jgbppkdd93l1.apps.googleusercontent.com", 31 | "client_type": 3 32 | } 33 | ] 34 | } 35 | } 36 | }, 37 | { 38 | "client_info": { 39 | "mobilesdk_app_id": "1:1063801479888:android:63def4da4316200d1974d5", 40 | "android_client_info": { 41 | "package_name": "com.pertl.johannes.jwst_status" 42 | } 43 | }, 44 | "oauth_client": [ 45 | { 46 | "client_id": "1063801479888-s5mvgsr6iaap6soem6f6jgbppkdd93l1.apps.googleusercontent.com", 47 | "client_type": 3 48 | } 49 | ], 50 | "api_key": [ 51 | { 52 | "current_key": "AIzaSyDpBUFt5JkUVXJSJjn6vAK-tN10L5FoKqc" 53 | } 54 | ], 55 | "services": { 56 | "appinvite_service": { 57 | "other_platform_oauth_client": [ 58 | { 59 | "client_id": "1063801479888-s5mvgsr6iaap6soem6f6jgbppkdd93l1.apps.googleusercontent.com", 60 | "client_type": 3 61 | } 62 | ] 63 | } 64 | } 65 | } 66 | ], 67 | "configuration_version": "1" 68 | } -------------------------------------------------------------------------------- /lib/notification.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:firebase_core/firebase_core.dart'; 4 | import 'package:firebase_messaging/firebase_messaging.dart'; 5 | 6 | Future onBackgroundMessage(RemoteMessage message) async { 7 | await Firebase.initializeApp(); 8 | 9 | if (message.data.containsKey('data')) { 10 | final data = message.data['data']; 11 | } 12 | if (message.data.containsKey('notification')) { 13 | final notification = message.data['notification']; 14 | } 15 | } 16 | 17 | class FCM { 18 | final _firebaseMessaging = FirebaseMessaging.instance; 19 | 20 | final stepNameCtrl = StreamController.broadcast(); 21 | final stepIndexCtrl = StreamController.broadcast(); 22 | final customLinkCtrl = StreamController.broadcast(); 23 | final customLinkTextCtrl = StreamController.broadcast(); 24 | final customNotificationCtrl = StreamController.broadcast(); 25 | 26 | setNotifications() { 27 | FirebaseMessaging.onBackgroundMessage(onBackgroundMessage); 28 | FirebaseMessaging.onMessage.listen( 29 | (message) async { 30 | // New deployment step 31 | if (message.data.containsKey('step')) { 32 | int step = int.parse(message.data['step']) + 1; 33 | stepIndexCtrl.sink.add(step); 34 | stepNameCtrl.sink.add(message.data['step_name']); 35 | } 36 | 37 | // Custom link button 38 | if (message.data.containsKey('custom_link')) { 39 | customLinkCtrl.sink.add(message.data['custom_link']); 40 | customLinkTextCtrl.sink.add(message.data['custom_link_text']); 41 | } 42 | 43 | // Custom notification 44 | if (message.data.containsKey('custom_notification')) { 45 | customNotificationCtrl.sink.add(message.data['custom_notification']); 46 | } 47 | }, 48 | ); 49 | final token = 50 | _firebaseMessaging.getToken().then((value) => print('Token: $value')); 51 | } 52 | 53 | dispose() { 54 | stepIndexCtrl.close(); 55 | stepNameCtrl.close(); 56 | customLinkCtrl.close(); 57 | customLinkTextCtrl.close(); 58 | customNotificationCtrl.close(); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 13 | 17 | 21 | 26 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 39 | 42 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | apply plugin: 'com.google.gms.google-services' // Google Services plugin 28 | 29 | def keystoreProperties = new Properties() 30 | def keystorePropertiesFile = rootProject.file('key.properties') 31 | if (keystorePropertiesFile.exists()) { 32 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) 33 | } 34 | 35 | android { 36 | compileSdkVersion 31 37 | 38 | compileOptions { 39 | sourceCompatibility JavaVersion.VERSION_1_8 40 | targetCompatibility JavaVersion.VERSION_1_8 41 | } 42 | 43 | kotlinOptions { 44 | jvmTarget = '1.8' 45 | } 46 | 47 | sourceSets { 48 | main.java.srcDirs += 'src/main/kotlin' 49 | } 50 | 51 | defaultConfig { 52 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 53 | applicationId "com.pertl.johannes.jwst_status" 54 | minSdkVersion 19 55 | targetSdkVersion 30 56 | versionCode flutterVersionCode.toInteger() 57 | versionName flutterVersionName 58 | multiDexEnabled true 59 | } 60 | 61 | signingConfigs { 62 | release { 63 | keyAlias keystoreProperties['keyAlias'] 64 | keyPassword keystoreProperties['keyPassword'] 65 | storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null 66 | storePassword keystoreProperties['storePassword'] 67 | } 68 | } 69 | buildTypes { 70 | release { 71 | signingConfig signingConfigs.release 72 | } 73 | } 74 | } 75 | 76 | flutter { 77 | source '../..' 78 | } 79 | 80 | dependencies { 81 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 82 | implementation 'com.google.firebase:firebase-messaging:23.0.0' 83 | implementation 'androidx.multidex:multidex:2.0.1' 84 | } 85 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | where_is_webb 30 | 31 | 32 | 33 | 36 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: jwst_status 2 | description: Notifications for Deployment of the James Webb telescope 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.9+10 19 | 20 | environment: 21 | sdk: ">=2.12.0 <3.0.0" 22 | 23 | # Dependencies specify other packages that your package needs in order to work. 24 | # To automatically upgrade your package dependencies to the latest versions 25 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 26 | # dependencies can be manually updated by changing the version numbers below to 27 | # the latest version available on pub.dev. To see which dependencies have newer 28 | # versions available, run `flutter pub outdated`. 29 | dependencies: 30 | flutter: 31 | sdk: flutter 32 | card_swiper : ^2.0.3 33 | video_player: ^2.2.10 34 | url_launcher: ^6.0.17 35 | firebase_core: ^1.1.0 36 | firebase_messaging: ^11.1.0 37 | # Add the dependency for the FlutterFire plugin for Google Analytics 38 | firebase_analytics: ^9.0.4 39 | 40 | # Add the dependencies for any other Firebase products you want to use in your app 41 | # cloud_firestore: ^0.12.9+5 42 | 43 | # The following adds the Cupertino Icons font to your application. 44 | # Use with the CupertinoIcons class for iOS style icons. 45 | font_awesome_flutter: ^9.2.0 46 | cloud_functions: ^3.2.4 47 | cached_network_image: ^3.2.0 48 | youtube_player_iframe: ^2.2.2 49 | page_transition: ^2.0.4 50 | 51 | dev_dependencies: 52 | flutter_launcher_icons: "^0.9.2" 53 | flutter_test: 54 | sdk: flutter 55 | 56 | flutter_icons: 57 | android: "launcher_icon" 58 | ios: true 59 | image_path: "images/webb-icon-black.png" 60 | adaptive_icon_background: "images/BLACK.png" 61 | # adaptive_icon_foreground: "assets/BLACK.png" 62 | 63 | # The "flutter_lints" package below contains a set of recommended lints to 64 | # encourage good coding practices. The lint set provided by the package is 65 | # activated in the `analysis_options.yaml` file located at the root of your 66 | # package. See that file for information about deactivating specific lint 67 | # rules and activating additional ones. 68 | flutter_lints: ^1.0.0 69 | 70 | # For information on the generic Dart part of this file, see the 71 | # following page: https://dart.dev/tools/pub/pubspec 72 | 73 | # The following section is specific to Flutter. 74 | flutter: 75 | 76 | # The following line ensures that the Material Icons font is 77 | # included with your application, so that you can use the icons in 78 | # the material Icons class. 79 | uses-material-design: true 80 | 81 | # To add assets to your application, add an assets section, like this: 82 | assets: 83 | - images/ 84 | 85 | # An image asset can refer to one or more resolution-specific "variants", see 86 | # https://flutter.dev/assets-and-images/#resolution-aware. 87 | 88 | # For details regarding adding assets from package dependencies, see 89 | # https://flutter.dev/assets-and-images/#from-packages 90 | 91 | # To add custom fonts to your application, add a fonts section here, 92 | # in this "flutter" section. Each entry in this list should have a 93 | # "family" key with the font family name, and a "fonts" key with a 94 | # list giving the asset and other descriptors for the font. For 95 | # example: 96 | # fonts: 97 | # - family: Schyler 98 | # fonts: 99 | # - asset: fonts/Schyler-Regular.ttf 100 | # - asset: fonts/Schyler-Italic.ttf 101 | # style: italic 102 | # - family: Trajan Pro 103 | # fonts: 104 | # - asset: fonts/TrajanPro.ttf 105 | # - asset: fonts/TrajanPro_Bold.ttf 106 | # weight: 700 107 | # 108 | # For details regarding fonts from package dependencies, 109 | # see https://flutter.dev/custom-fonts/#from-packages 110 | -------------------------------------------------------------------------------- /cloud-functions/functions/index.js: -------------------------------------------------------------------------------- 1 | const functions = require("firebase-functions"); 2 | const admin = require("firebase-admin"); 3 | const dayjs = require('dayjs'); 4 | const puppeteer = require('puppeteer'); 5 | dayjs().format(); 6 | admin.initializeApp(); 7 | 8 | const puppeteerOptions = { 9 | args: ['--no-sandbox'], 10 | headless: true, 11 | timeout: 0 12 | }; 13 | 14 | const userAgent = 'Mozilla/5.0 (Windows NT 10.0;Win64) AppleWebkit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36'; 15 | 16 | async function getCurrentDeploymentStep() { 17 | try { 18 | functions.logger.log("Getting current deployment step"); 19 | const stepsCollection = admin.firestore().collection('steps'); 20 | const snapshot = await stepsCollection.orderBy(admin.firestore.FieldPath.documentId(), 'desc').limit(1).get(); 21 | const latestStep = snapshot.docs[0]; // get the first document in the snapshot 22 | return parseInt(latestStep.id); 23 | } catch (error) { 24 | functions.logger.error("Error getting current deployment step", error); 25 | throw error; 26 | } 27 | } 28 | 29 | async function sendCustomNotification(title, body, topic) { 30 | // Note: Old versions of the app only use new_deployment_step topic, so that topic should be used 31 | try { 32 | functions.logger.log("Sending custom notification"); 33 | await admin.messaging().sendToTopic(topic, { 34 | notification: { 35 | title: title, 36 | body: body, 37 | sound: "default" 38 | }, 39 | data: { 40 | click_action: "FLUTTER_NOTIFICATION_CLICK" 41 | }, 42 | }); 43 | } catch (error) { 44 | functions.logger.error("Error sending custom notification", error); 45 | throw error; 46 | } 47 | } 48 | 49 | exports.getCurrentDeploymentStepIndex = functions.https.onCall(async (data, context) => { 50 | try { 51 | return await getCurrentDeploymentStep(); 52 | } catch (error) { 53 | functions.logger.error("Error in getCurrentDeploymentStepIndex", error); 54 | throw new functions.https.HttpsError('internal', 'Internal error occurred'); 55 | } 56 | }); 57 | 58 | exports.getAllDeploymentSteps = functions.https.onCall(async (data, context) => { 59 | try { 60 | functions.logger.log("Getting all deployment steps"); 61 | const allSteps = await admin.firestore().collection('steps').orderBy("index", 'asc').get(); 62 | 63 | const stepsJson = []; 64 | allSteps.forEach(step => { 65 | stepsJson.push(step.data()); 66 | }); 67 | 68 | return stepsJson; 69 | } catch (error) { 70 | functions.logger.error("Error in getAllDeploymentSteps", error); 71 | throw new functions.https.HttpsError('internal', 'Internal error occurred'); 72 | } 73 | }); 74 | 75 | exports.scrapeLatestNews = functions.runWith({memory: "1GB"}).pubsub.schedule('every 2 hours').onRun(async (context) => { 76 | try { 77 | functions.logger.log("Scraping latest news"); 78 | await scrapeLatestNews(); 79 | } catch (error) { 80 | functions.logger.error("Error in scrapeLatestNews", error); 81 | } 82 | }); 83 | 84 | // TODO: Implement 85 | // exports.importAllNews = functions.runWith({memory: "1GB"}).pubsub.schedule('every 5 minutes').onRun(async (context) => { 86 | // try { 87 | // functions.logger.log("Importing all news"); 88 | // await importAllNews(); 89 | // } catch (error) { 90 | // functions.logger.error("Error in importAllNews", error); 91 | // } 92 | // }); 93 | 94 | async function importAllNews() { 95 | let browser; 96 | try { 97 | browser = await puppeteer.launch(puppeteerOptions); 98 | const page = await browser.newPage(); 99 | await page.setUserAgent(userAgent); 100 | 101 | const url = 'https://webbtelescope.org/news/news-releases?itemsPerPage=50&page=1'; 102 | await page.goto(url); 103 | const newsDivs = await page.$$('div.news-listing'); 104 | const newsDivsToImport = newsDivs.slice(0, newsDivs.length - 6).reverse(); // Reverse the array 105 | let index = 47; 106 | 107 | let latestIndex = newsDivsToImport.length + index; 108 | 109 | for (const div of newsDivsToImport) { 110 | const h4 = await div.$('h4'); 111 | const a = await h4.$('a'); 112 | 113 | const title = await a.evaluate(node => node.textContent); 114 | const link = await a.evaluate(node => node.href); 115 | const releaseDate = await div.$eval('span.news-release-date', node => node.textContent); 116 | const img = await div.$eval('img', node => node.src); 117 | 118 | // summary needs to be extracted by going to the link 119 | const summaryPage = await browser.newPage(); 120 | await summaryPage.setUserAgent(userAgent); 121 | 122 | await summaryPage.goto(link); 123 | const summaryElement = await summaryPage.waitForSelector('div.news-abstract'); 124 | let summary = await summaryPage.evaluate(node => node.textContent, summaryElement); 125 | summary = summary.replace("Summary", "").trim(); 126 | summary = summary.replace(/\s{3,}/g, "\n\n\n"); 127 | 128 | await summaryPage.close(); 129 | 130 | await admin.firestore().collection('steps').doc(`${index}`).set({ 131 | name: title, 132 | oneLiner: releaseDate, 133 | status: releaseDate, 134 | description: summary, 135 | image_url: img, 136 | image_url2: img, 137 | info_url: link, 138 | custom_link: link, 139 | custom_link_text: "Full article", 140 | index: index, 141 | current_index: latestIndex, 142 | video_url: "", 143 | youtube_url: "" 144 | }); 145 | 146 | console.log("Title: ", title); 147 | console.log("Link: ", link); 148 | console.log("Release date: ", releaseDate); 149 | console.log("Summary: ", summary); 150 | console.log("Image: ", img); 151 | console.log("====================================="); 152 | index++; 153 | } 154 | 155 | 156 | } catch (error) { 157 | console.error(error); 158 | } finally { 159 | if (browser) { 160 | await browser.close(); 161 | } 162 | } 163 | } 164 | 165 | async function scrapeLatestNews() { 166 | let browser; 167 | try { 168 | browser = await puppeteer.launch(puppeteerOptions); 169 | const page = await browser.newPage(); 170 | await page.setUserAgent(userAgent); 171 | 172 | const url = 'https://webbtelescope.org'; 173 | await page.goto(url); 174 | 175 | const parentSection = await page.waitForSelector('section[data-name="section-latest-news"]'); 176 | const titleElement = await parentSection.$('h3[class="content-prev__head"]'); 177 | const rawTitle = await titleElement.evaluate(node => node.textContent); 178 | const title = rawTitle.trim(); 179 | functions.logger.log("Latest news title: ", title); 180 | 181 | const dateElement = await parentSection.$('div.preheader__item'); 182 | const date = await dateElement.evaluate(node => node.textContent); 183 | console.log("Latest news date: ", date); 184 | 185 | const readMoreDiv = await parentSection.$('div[data-module-dynamic="card"]'); 186 | await readMoreDiv.click(); 187 | await page.waitForTimeout(3000); 188 | 189 | const link = await page.url(); 190 | functions.logger.log("Latest news link: ", link); 191 | 192 | const imageElement = await page.$('img.embedded-img__component'); 193 | const img = await page.evaluate((img) => img.src, imageElement); 194 | 195 | functions.logger.log("Latest news image: ", img); 196 | 197 | await page.goto(link); 198 | const summaryElement = await page.waitForSelector('div.news-abstract'); 199 | const rawSummary = await summaryElement.evaluate(node => node.textContent); 200 | let summary = rawSummary.replace("Summary", "").trim(); 201 | summary = summary.replace(/\s{3,}/g, "\n\n\n"); 202 | functions.logger.log("Latest news summary: ", summary); 203 | 204 | const latestNewsDoc = admin.firestore().collection('steps').doc('47'); 205 | 206 | const snapshot = await latestNewsDoc.get(); 207 | if (snapshot.exists) { 208 | const data = snapshot.data(); 209 | if (data['name'] !== title) { 210 | functions.logger.log("New latest news found, sending notification"); 211 | await sendCustomNotification("New JWST News", title, "new_deployment_step"); 212 | } 213 | await admin.firestore().collection('steps').doc("47").update({ 214 | name: title, 215 | oneliner: date, 216 | status: date, 217 | image_url: img, 218 | image_url2: img, 219 | description: summary, 220 | info_url: link, 221 | custom_link: link, 222 | custom_link_text: "Full article" 223 | }); 224 | } 225 | } catch (error) { 226 | functions.logger.error("Error in scrapeLatestNews", error); 227 | throw error; 228 | } finally { 229 | if (browser) await browser.close(); 230 | } 231 | } 232 | 233 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "3.3.0" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.3.0" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.8.2" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.1.0" 32 | cached_network_image: 33 | dependency: "direct main" 34 | description: 35 | name: cached_network_image 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "3.2.0" 39 | cached_network_image_platform_interface: 40 | dependency: transitive 41 | description: 42 | name: cached_network_image_platform_interface 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.0.0" 46 | cached_network_image_web: 47 | dependency: transitive 48 | description: 49 | name: cached_network_image_web 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.0.1" 53 | card_swiper: 54 | dependency: "direct main" 55 | description: 56 | name: card_swiper 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.0.3" 60 | characters: 61 | dependency: transitive 62 | description: 63 | name: characters 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.2.0" 67 | charcode: 68 | dependency: transitive 69 | description: 70 | name: charcode 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "1.3.1" 74 | clock: 75 | dependency: transitive 76 | description: 77 | name: clock 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "1.1.0" 81 | cloud_functions: 82 | dependency: "direct main" 83 | description: 84 | name: cloud_functions 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "3.2.11" 88 | cloud_functions_platform_interface: 89 | dependency: transitive 90 | description: 91 | name: cloud_functions_platform_interface 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "5.1.2" 95 | cloud_functions_web: 96 | dependency: transitive 97 | description: 98 | name: cloud_functions_web 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "4.2.10" 102 | collection: 103 | dependency: transitive 104 | description: 105 | name: collection 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "1.15.0" 109 | crypto: 110 | dependency: transitive 111 | description: 112 | name: crypto 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "3.0.1" 116 | csslib: 117 | dependency: transitive 118 | description: 119 | name: csslib 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "0.17.1" 123 | fake_async: 124 | dependency: transitive 125 | description: 126 | name: fake_async 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "1.2.0" 130 | ffi: 131 | dependency: transitive 132 | description: 133 | name: ffi 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "1.1.2" 137 | file: 138 | dependency: transitive 139 | description: 140 | name: file 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "6.1.2" 144 | firebase_analytics: 145 | dependency: "direct main" 146 | description: 147 | name: firebase_analytics 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "9.1.4" 151 | firebase_analytics_platform_interface: 152 | dependency: transitive 153 | description: 154 | name: firebase_analytics_platform_interface 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "3.1.2" 158 | firebase_analytics_web: 159 | dependency: transitive 160 | description: 161 | name: firebase_analytics_web 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "0.4.0+9" 165 | firebase_core: 166 | dependency: "direct main" 167 | description: 168 | name: firebase_core 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "1.14.0" 172 | firebase_core_platform_interface: 173 | dependency: transitive 174 | description: 175 | name: firebase_core_platform_interface 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "4.2.5" 179 | firebase_core_web: 180 | dependency: transitive 181 | description: 182 | name: firebase_core_web 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "1.6.1" 186 | firebase_messaging: 187 | dependency: "direct main" 188 | description: 189 | name: firebase_messaging 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "11.2.12" 193 | firebase_messaging_platform_interface: 194 | dependency: transitive 195 | description: 196 | name: firebase_messaging_platform_interface 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "3.2.2" 200 | firebase_messaging_web: 201 | dependency: transitive 202 | description: 203 | name: firebase_messaging_web 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "2.2.10" 207 | flutter: 208 | dependency: "direct main" 209 | description: flutter 210 | source: sdk 211 | version: "0.0.0" 212 | flutter_blurhash: 213 | dependency: transitive 214 | description: 215 | name: flutter_blurhash 216 | url: "https://pub.dartlang.org" 217 | source: hosted 218 | version: "0.6.6" 219 | flutter_cache_manager: 220 | dependency: transitive 221 | description: 222 | name: flutter_cache_manager 223 | url: "https://pub.dartlang.org" 224 | source: hosted 225 | version: "3.3.0" 226 | flutter_inappwebview: 227 | dependency: transitive 228 | description: 229 | name: flutter_inappwebview 230 | url: "https://pub.dartlang.org" 231 | source: hosted 232 | version: "5.3.2" 233 | flutter_launcher_icons: 234 | dependency: "direct dev" 235 | description: 236 | name: flutter_launcher_icons 237 | url: "https://pub.dartlang.org" 238 | source: hosted 239 | version: "0.9.2" 240 | flutter_test: 241 | dependency: "direct dev" 242 | description: flutter 243 | source: sdk 244 | version: "0.0.0" 245 | flutter_web_plugins: 246 | dependency: transitive 247 | description: flutter 248 | source: sdk 249 | version: "0.0.0" 250 | font_awesome_flutter: 251 | dependency: "direct main" 252 | description: 253 | name: font_awesome_flutter 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "9.2.0" 257 | html: 258 | dependency: transitive 259 | description: 260 | name: html 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "0.15.0" 264 | http: 265 | dependency: transitive 266 | description: 267 | name: http 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "0.13.4" 271 | http_parser: 272 | dependency: transitive 273 | description: 274 | name: http_parser 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "4.0.0" 278 | image: 279 | dependency: transitive 280 | description: 281 | name: image 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "3.1.3" 285 | js: 286 | dependency: transitive 287 | description: 288 | name: js 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "0.6.3" 292 | matcher: 293 | dependency: transitive 294 | description: 295 | name: matcher 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "0.12.11" 299 | material_color_utilities: 300 | dependency: transitive 301 | description: 302 | name: material_color_utilities 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "0.1.3" 306 | meta: 307 | dependency: transitive 308 | description: 309 | name: meta 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "1.7.0" 313 | octo_image: 314 | dependency: transitive 315 | description: 316 | name: octo_image 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "1.0.1" 320 | page_transition: 321 | dependency: "direct main" 322 | description: 323 | name: page_transition 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "2.0.5" 327 | path: 328 | dependency: transitive 329 | description: 330 | name: path 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "1.8.0" 334 | path_provider: 335 | dependency: transitive 336 | description: 337 | name: path_provider 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "2.0.9" 341 | path_provider_android: 342 | dependency: transitive 343 | description: 344 | name: path_provider_android 345 | url: "https://pub.dartlang.org" 346 | source: hosted 347 | version: "2.0.12" 348 | path_provider_ios: 349 | dependency: transitive 350 | description: 351 | name: path_provider_ios 352 | url: "https://pub.dartlang.org" 353 | source: hosted 354 | version: "2.0.8" 355 | path_provider_linux: 356 | dependency: transitive 357 | description: 358 | name: path_provider_linux 359 | url: "https://pub.dartlang.org" 360 | source: hosted 361 | version: "2.1.5" 362 | path_provider_macos: 363 | dependency: transitive 364 | description: 365 | name: path_provider_macos 366 | url: "https://pub.dartlang.org" 367 | source: hosted 368 | version: "2.0.5" 369 | path_provider_platform_interface: 370 | dependency: transitive 371 | description: 372 | name: path_provider_platform_interface 373 | url: "https://pub.dartlang.org" 374 | source: hosted 375 | version: "2.0.3" 376 | path_provider_windows: 377 | dependency: transitive 378 | description: 379 | name: path_provider_windows 380 | url: "https://pub.dartlang.org" 381 | source: hosted 382 | version: "2.0.5" 383 | pedantic: 384 | dependency: transitive 385 | description: 386 | name: pedantic 387 | url: "https://pub.dartlang.org" 388 | source: hosted 389 | version: "1.11.1" 390 | petitparser: 391 | dependency: transitive 392 | description: 393 | name: petitparser 394 | url: "https://pub.dartlang.org" 395 | source: hosted 396 | version: "4.4.0" 397 | platform: 398 | dependency: transitive 399 | description: 400 | name: platform 401 | url: "https://pub.dartlang.org" 402 | source: hosted 403 | version: "3.1.0" 404 | plugin_platform_interface: 405 | dependency: transitive 406 | description: 407 | name: plugin_platform_interface 408 | url: "https://pub.dartlang.org" 409 | source: hosted 410 | version: "2.1.2" 411 | process: 412 | dependency: transitive 413 | description: 414 | name: process 415 | url: "https://pub.dartlang.org" 416 | source: hosted 417 | version: "4.2.4" 418 | rxdart: 419 | dependency: transitive 420 | description: 421 | name: rxdart 422 | url: "https://pub.dartlang.org" 423 | source: hosted 424 | version: "0.27.3" 425 | sky_engine: 426 | dependency: transitive 427 | description: flutter 428 | source: sdk 429 | version: "0.0.99" 430 | source_span: 431 | dependency: transitive 432 | description: 433 | name: source_span 434 | url: "https://pub.dartlang.org" 435 | source: hosted 436 | version: "1.8.1" 437 | sqflite: 438 | dependency: transitive 439 | description: 440 | name: sqflite 441 | url: "https://pub.dartlang.org" 442 | source: hosted 443 | version: "2.0.2" 444 | sqflite_common: 445 | dependency: transitive 446 | description: 447 | name: sqflite_common 448 | url: "https://pub.dartlang.org" 449 | source: hosted 450 | version: "2.2.1" 451 | stack_trace: 452 | dependency: transitive 453 | description: 454 | name: stack_trace 455 | url: "https://pub.dartlang.org" 456 | source: hosted 457 | version: "1.10.0" 458 | stream_channel: 459 | dependency: transitive 460 | description: 461 | name: stream_channel 462 | url: "https://pub.dartlang.org" 463 | source: hosted 464 | version: "2.1.0" 465 | string_scanner: 466 | dependency: transitive 467 | description: 468 | name: string_scanner 469 | url: "https://pub.dartlang.org" 470 | source: hosted 471 | version: "1.1.0" 472 | synchronized: 473 | dependency: transitive 474 | description: 475 | name: synchronized 476 | url: "https://pub.dartlang.org" 477 | source: hosted 478 | version: "3.0.0+2" 479 | term_glyph: 480 | dependency: transitive 481 | description: 482 | name: term_glyph 483 | url: "https://pub.dartlang.org" 484 | source: hosted 485 | version: "1.2.0" 486 | test_api: 487 | dependency: transitive 488 | description: 489 | name: test_api 490 | url: "https://pub.dartlang.org" 491 | source: hosted 492 | version: "0.4.8" 493 | typed_data: 494 | dependency: transitive 495 | description: 496 | name: typed_data 497 | url: "https://pub.dartlang.org" 498 | source: hosted 499 | version: "1.3.0" 500 | url_launcher: 501 | dependency: "direct main" 502 | description: 503 | name: url_launcher 504 | url: "https://pub.dartlang.org" 505 | source: hosted 506 | version: "6.0.20" 507 | url_launcher_android: 508 | dependency: transitive 509 | description: 510 | name: url_launcher_android 511 | url: "https://pub.dartlang.org" 512 | source: hosted 513 | version: "6.0.15" 514 | url_launcher_ios: 515 | dependency: transitive 516 | description: 517 | name: url_launcher_ios 518 | url: "https://pub.dartlang.org" 519 | source: hosted 520 | version: "6.0.15" 521 | url_launcher_linux: 522 | dependency: transitive 523 | description: 524 | name: url_launcher_linux 525 | url: "https://pub.dartlang.org" 526 | source: hosted 527 | version: "3.0.0" 528 | url_launcher_macos: 529 | dependency: transitive 530 | description: 531 | name: url_launcher_macos 532 | url: "https://pub.dartlang.org" 533 | source: hosted 534 | version: "3.0.0" 535 | url_launcher_platform_interface: 536 | dependency: transitive 537 | description: 538 | name: url_launcher_platform_interface 539 | url: "https://pub.dartlang.org" 540 | source: hosted 541 | version: "2.0.5" 542 | url_launcher_web: 543 | dependency: transitive 544 | description: 545 | name: url_launcher_web 546 | url: "https://pub.dartlang.org" 547 | source: hosted 548 | version: "2.0.9" 549 | url_launcher_windows: 550 | dependency: transitive 551 | description: 552 | name: url_launcher_windows 553 | url: "https://pub.dartlang.org" 554 | source: hosted 555 | version: "3.0.0" 556 | uuid: 557 | dependency: transitive 558 | description: 559 | name: uuid 560 | url: "https://pub.dartlang.org" 561 | source: hosted 562 | version: "3.0.6" 563 | vector_math: 564 | dependency: transitive 565 | description: 566 | name: vector_math 567 | url: "https://pub.dartlang.org" 568 | source: hosted 569 | version: "2.1.1" 570 | video_player: 571 | dependency: "direct main" 572 | description: 573 | name: video_player 574 | url: "https://pub.dartlang.org" 575 | source: hosted 576 | version: "2.3.0" 577 | video_player_android: 578 | dependency: transitive 579 | description: 580 | name: video_player_android 581 | url: "https://pub.dartlang.org" 582 | source: hosted 583 | version: "2.3.2" 584 | video_player_avfoundation: 585 | dependency: transitive 586 | description: 587 | name: video_player_avfoundation 588 | url: "https://pub.dartlang.org" 589 | source: hosted 590 | version: "2.3.1" 591 | video_player_platform_interface: 592 | dependency: transitive 593 | description: 594 | name: video_player_platform_interface 595 | url: "https://pub.dartlang.org" 596 | source: hosted 597 | version: "5.1.1" 598 | video_player_web: 599 | dependency: transitive 600 | description: 601 | name: video_player_web 602 | url: "https://pub.dartlang.org" 603 | source: hosted 604 | version: "2.0.7" 605 | win32: 606 | dependency: transitive 607 | description: 608 | name: win32 609 | url: "https://pub.dartlang.org" 610 | source: hosted 611 | version: "2.5.1" 612 | xdg_directories: 613 | dependency: transitive 614 | description: 615 | name: xdg_directories 616 | url: "https://pub.dartlang.org" 617 | source: hosted 618 | version: "0.2.0+1" 619 | xml: 620 | dependency: transitive 621 | description: 622 | name: xml 623 | url: "https://pub.dartlang.org" 624 | source: hosted 625 | version: "5.3.1" 626 | yaml: 627 | dependency: transitive 628 | description: 629 | name: yaml 630 | url: "https://pub.dartlang.org" 631 | source: hosted 632 | version: "3.1.0" 633 | youtube_player_iframe: 634 | dependency: "direct main" 635 | description: 636 | name: youtube_player_iframe 637 | url: "https://pub.dartlang.org" 638 | source: hosted 639 | version: "2.2.2" 640 | sdks: 641 | dart: ">=2.16.0 <3.0.0" 642 | flutter: ">=2.10.0" 643 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1020; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | INFOPLIST_FILE = Runner/Info.plist; 293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 294 | PRODUCT_BUNDLE_IDENTIFIER = com.pertl.johannes.jwstStatus; 295 | PRODUCT_NAME = "$(TARGET_NAME)"; 296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 297 | SWIFT_VERSION = 5.0; 298 | VERSIONING_SYSTEM = "apple-generic"; 299 | }; 300 | name = Profile; 301 | }; 302 | 97C147031CF9000F007C117D /* Debug */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = dwarf; 333 | ENABLE_STRICT_OBJC_MSGSEND = YES; 334 | ENABLE_TESTABILITY = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_DYNAMIC_NO_PIC = NO; 337 | GCC_NO_COMMON_BLOCKS = YES; 338 | GCC_OPTIMIZATION_LEVEL = 0; 339 | GCC_PREPROCESSOR_DEFINITIONS = ( 340 | "DEBUG=1", 341 | "$(inherited)", 342 | ); 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 350 | MTL_ENABLE_DEBUG_INFO = YES; 351 | ONLY_ACTIVE_ARCH = YES; 352 | SDKROOT = iphoneos; 353 | TARGETED_DEVICE_FAMILY = "1,2"; 354 | }; 355 | name = Debug; 356 | }; 357 | 97C147041CF9000F007C117D /* Release */ = { 358 | isa = XCBuildConfiguration; 359 | buildSettings = { 360 | ALWAYS_SEARCH_USER_PATHS = NO; 361 | CLANG_ANALYZER_NONNULL = YES; 362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 363 | CLANG_CXX_LIBRARY = "libc++"; 364 | CLANG_ENABLE_MODULES = YES; 365 | CLANG_ENABLE_OBJC_ARC = YES; 366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 367 | CLANG_WARN_BOOL_CONVERSION = YES; 368 | CLANG_WARN_COMMA = YES; 369 | CLANG_WARN_CONSTANT_CONVERSION = YES; 370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 372 | CLANG_WARN_EMPTY_BODY = YES; 373 | CLANG_WARN_ENUM_CONVERSION = YES; 374 | CLANG_WARN_INFINITE_RECURSION = YES; 375 | CLANG_WARN_INT_CONVERSION = YES; 376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 381 | CLANG_WARN_STRICT_PROTOTYPES = YES; 382 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 383 | CLANG_WARN_UNREACHABLE_CODE = YES; 384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 386 | COPY_PHASE_STRIP = NO; 387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 388 | ENABLE_NS_ASSERTIONS = NO; 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | GCC_C_LANGUAGE_STANDARD = gnu99; 391 | GCC_NO_COMMON_BLOCKS = YES; 392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 394 | GCC_WARN_UNDECLARED_SELECTOR = YES; 395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 396 | GCC_WARN_UNUSED_FUNCTION = YES; 397 | GCC_WARN_UNUSED_VARIABLE = YES; 398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 399 | MTL_ENABLE_DEBUG_INFO = NO; 400 | SDKROOT = iphoneos; 401 | SUPPORTED_PLATFORMS = iphoneos; 402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 403 | TARGETED_DEVICE_FAMILY = "1,2"; 404 | VALIDATE_PRODUCT = YES; 405 | }; 406 | name = Release; 407 | }; 408 | 97C147061CF9000F007C117D /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 411 | buildSettings = { 412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 413 | CLANG_ENABLE_MODULES = YES; 414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 415 | ENABLE_BITCODE = NO; 416 | INFOPLIST_FILE = Runner/Info.plist; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 418 | PRODUCT_BUNDLE_IDENTIFIER = com.pertl.johannes.jwstStatus; 419 | PRODUCT_NAME = "$(TARGET_NAME)"; 420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 422 | SWIFT_VERSION = 5.0; 423 | VERSIONING_SYSTEM = "apple-generic"; 424 | }; 425 | name = Debug; 426 | }; 427 | 97C147071CF9000F007C117D /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | CLANG_ENABLE_MODULES = YES; 433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 434 | ENABLE_BITCODE = NO; 435 | INFOPLIST_FILE = Runner/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 437 | PRODUCT_BUNDLE_IDENTIFIER = com.pertl.johannes.jwstStatus; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 440 | SWIFT_VERSION = 5.0; 441 | VERSIONING_SYSTEM = "apple-generic"; 442 | }; 443 | name = Release; 444 | }; 445 | /* End XCBuildConfiguration section */ 446 | 447 | /* Begin XCConfigurationList section */ 448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 449 | isa = XCConfigurationList; 450 | buildConfigurations = ( 451 | 97C147031CF9000F007C117D /* Debug */, 452 | 97C147041CF9000F007C117D /* Release */, 453 | 249021D3217E4FDB00AE95B9 /* Profile */, 454 | ); 455 | defaultConfigurationIsVisible = 0; 456 | defaultConfigurationName = Release; 457 | }; 458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 97C147061CF9000F007C117D /* Debug */, 462 | 97C147071CF9000F007C117D /* Release */, 463 | 249021D4217E4FDB00AE95B9 /* Profile */, 464 | ); 465 | defaultConfigurationIsVisible = 0; 466 | defaultConfigurationName = Release; 467 | }; 468 | /* End XCConfigurationList section */ 469 | }; 470 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 471 | } -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:card_swiper/card_swiper.dart'; 2 | import 'package:firebase_core/firebase_core.dart'; 3 | import 'package:firebase_messaging/firebase_messaging.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:cloud_functions/cloud_functions.dart'; 6 | import 'package:url_launcher/url_launcher.dart'; 7 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 8 | import 'package:video_player/video_player.dart'; 9 | import 'package:cached_network_image/cached_network_image.dart'; 10 | import 'notification.dart'; 11 | import 'package:youtube_player_iframe/youtube_player_iframe.dart'; 12 | import 'package:page_transition/page_transition.dart'; 13 | 14 | const String _whereIsWebbURL = 15 | 'https://www.jwst.nasa.gov/content/webbLaunch/whereIsWebb.html'; 16 | const String _allStepsURL = 17 | 'https://www.jwst.nasa.gov/content/webbLaunch/deploymentExplorer.html'; 18 | const String _twitterUrl = 'https://twitter.com/NASAWebb'; 19 | 20 | const yellow = Color(0xFFFFCC00); 21 | const grey = Color(0xFF1D1D1D); 22 | const background = Colors.black; 23 | const turquoise = Color(0xFF41DCEA); 24 | const pink = Color(0xFFFF206E); 25 | const lightPink = Color(0xFFF14D96); 26 | const blue = Color(0xFF0B3D91); 27 | const twitterBlue = Color(0xFF1D9BF0); 28 | const lighterBlue = Color(0xFF5AEFD4); 29 | 30 | bool _isSnackbarActive = false; 31 | 32 | void main() async { 33 | await init(); 34 | runApp(const MyApp()); 35 | } 36 | 37 | Future init() async { 38 | WidgetsFlutterBinding.ensureInitialized(); 39 | await Firebase.initializeApp(); 40 | // FirebaseFunctions.instance.useFunctionsEmulator('localhost', 5001); 41 | await FirebaseMessaging.instance.subscribeToTopic('new_deployment_step'); 42 | } 43 | 44 | class MyApp extends StatelessWidget { 45 | const MyApp({Key? key}) : super(key: key); 46 | 47 | @override 48 | Widget build(BuildContext context) { 49 | return MaterialApp( 50 | title: 'Where is Webb?', 51 | theme: new ThemeData( 52 | scaffoldBackgroundColor: background, 53 | primaryColor: yellow, 54 | textTheme: const TextTheme( 55 | headline2: TextStyle( 56 | fontSize: 72.0, 57 | fontWeight: FontWeight.bold, 58 | ), 59 | ), 60 | ), 61 | home: HomeScreen(), 62 | ); 63 | } 64 | } 65 | 66 | class HomeScreen extends StatefulWidget { 67 | const HomeScreen({Key? key}) : super(key: key); 68 | 69 | @override 70 | State createState() => _HomeScreenState(); 71 | } 72 | 73 | class _HomeScreenState extends State with WidgetsBindingObserver { 74 | SwiperController? _swiperController; 75 | 76 | late Future _initializeVideoPlayerFuture; 77 | Future>? deploymentSteps; 78 | 79 | String customLink = ""; 80 | String customLinkText = ""; 81 | 82 | void showInfoSnackbar(int duration) { 83 | final snackBar = SnackBar( 84 | behavior: SnackBarBehavior.fixed, 85 | backgroundColor: yellow, 86 | content: RichText( 87 | text: TextSpan( 88 | children: [ 89 | WidgetSpan( 90 | child: FaIcon(FontAwesomeIcons.solidBell, size: 17), 91 | ), 92 | TextSpan( 93 | text: " You will be notified about major JWST updates.", 94 | style: TextStyle( 95 | color: background, 96 | fontSize: 15.0, 97 | fontWeight: FontWeight.bold, 98 | ), 99 | ), 100 | ], 101 | ), 102 | textAlign: TextAlign.center, 103 | ), 104 | duration: Duration(seconds: duration), 105 | ); 106 | if (!_isSnackbarActive) { 107 | _isSnackbarActive = true; 108 | Future.delayed(const Duration(seconds: 3), () { 109 | ScaffoldMessenger.of(context) 110 | .showSnackBar(snackBar) 111 | .closed 112 | .then((SnackBarClosedReason reason) { 113 | _isSnackbarActive = false; 114 | }); 115 | }); 116 | } 117 | } 118 | 119 | @override 120 | void dispose() { 121 | WidgetsBinding.instance!.removeObserver(this); 122 | super.dispose(); 123 | } 124 | 125 | @override 126 | void didChangeAppLifecycleState(AppLifecycleState state) { 127 | if (state == AppLifecycleState.resumed) { 128 | setState(() { 129 | deploymentSteps = _fetchAllDeploymentSteps(); 130 | }); 131 | } 132 | } 133 | 134 | @override 135 | void initState() { 136 | final firebaseMessaging = FCM(); 137 | firebaseMessaging.setNotifications(); 138 | 139 | firebaseMessaging.stepIndexCtrl.stream.listen(_changeStepIndex); 140 | firebaseMessaging.stepNameCtrl.stream.listen(_changeStepName); 141 | firebaseMessaging.customLinkCtrl.stream.listen(_changeCustomLink); 142 | firebaseMessaging.customLinkTextCtrl.stream.listen(_changeCustomLinkText); 143 | firebaseMessaging.customNotificationCtrl.stream 144 | .listen(_triggerCustomNotification); 145 | 146 | _swiperController = new SwiperController(); 147 | 148 | setState(() { 149 | deploymentSteps = _fetchAllDeploymentSteps(); 150 | }); 151 | 152 | super.initState(); 153 | WidgetsBinding.instance!.addObserver(this); 154 | 155 | showInfoSnackbar(6); 156 | } 157 | 158 | _changeStepIndex(int msg) => setState(() { 159 | deploymentSteps = _fetchAllDeploymentSteps(); 160 | }); 161 | 162 | _changeCustomLink(String msg) => setState(() { 163 | customLink = msg; 164 | }); 165 | 166 | _changeCustomLinkText(String msg) => setState(() { 167 | customLinkText = msg; 168 | }); 169 | 170 | _changeStepName(String msg) => setState(() { 171 | final snackBar = SnackBar( 172 | behavior: SnackBarBehavior.fixed, 173 | backgroundColor: yellow, 174 | content: Text( 175 | 'A new step has just been reached:\n$msg', 176 | style: TextStyle( 177 | color: Colors.black, 178 | fontWeight: FontWeight.bold, 179 | ), 180 | ), 181 | action: SnackBarAction( 182 | textColor: background, 183 | label: 'Close', 184 | onPressed: () {}, 185 | ), 186 | duration: Duration(days: 365), 187 | ); 188 | 189 | Future(() { 190 | _isSnackbarActive = true; 191 | ScaffoldMessenger.of(context) 192 | .showSnackBar(snackBar) 193 | .closed 194 | .then((SnackBarClosedReason reason) { 195 | _isSnackbarActive = false; 196 | }); 197 | }); 198 | }); 199 | 200 | _triggerCustomNotification(String msg) => setState(() { 201 | final snackBar = SnackBar( 202 | behavior: SnackBarBehavior.fixed, 203 | backgroundColor: yellow, 204 | content: Text( 205 | '$msg', 206 | style: TextStyle( 207 | color: Colors.black, 208 | fontWeight: FontWeight.bold, 209 | ), 210 | ), 211 | action: SnackBarAction( 212 | textColor: Colors.black, 213 | label: 'Close', 214 | onPressed: () {}, 215 | ), 216 | duration: Duration(days: 365), 217 | ); 218 | 219 | Future(() { 220 | _isSnackbarActive = true; 221 | ScaffoldMessenger.of(context) 222 | .showSnackBar(snackBar) 223 | .closed 224 | .then((SnackBarClosedReason reason) { 225 | _isSnackbarActive = false; 226 | }); 227 | }); 228 | }); 229 | 230 | Future _fetchAllDeploymentSteps() async { 231 | HttpsCallable callable = 232 | FirebaseFunctions.instance.httpsCallable('getAllDeploymentSteps'); 233 | final result = await callable(); 234 | return result.data; 235 | } 236 | 237 | @override 238 | Widget build(BuildContext context) { 239 | return Scaffold( 240 | appBar: AppBar( 241 | title: Text( 242 | 'Where is Webb?', 243 | style: TextStyle( 244 | fontSize: 35.0, fontWeight: FontWeight.bold, color: yellow), 245 | textAlign: TextAlign.center, 246 | ), 247 | backgroundColor: background, 248 | elevation: 0, 249 | centerTitle: true, 250 | ), 251 | body: Center( 252 | child: FutureBuilder( 253 | future: deploymentSteps, 254 | builder: (context, AsyncSnapshot snapshot) { 255 | if (!snapshot.hasData) { 256 | return Center( 257 | child: CircularProgressIndicator( 258 | valueColor: AlwaysStoppedAnimation(yellow), 259 | ), 260 | ); 261 | } else { 262 | return Swiper( 263 | // scrollDirection: Axis.vertical, 264 | controller: _swiperController, 265 | index: snapshot.data[0]['current_index'], 266 | loop: true, 267 | itemBuilder: (BuildContext context, int index) { 268 | return GestureDetector( 269 | onTap: () { 270 | Navigator.push( 271 | context, 272 | PageTransition( 273 | type: PageTransitionType.rightToLeft, 274 | child: DeploymentStepDetailScreen( 275 | deploymentStep: snapshot.data[index], 276 | deploymentStepIndex: index), 277 | ), 278 | ); 279 | }, 280 | child: Padding( 281 | padding: const EdgeInsets.all(20.0), 282 | child: Column( 283 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 284 | children: [ 285 | Column( 286 | children: [ 287 | Hero( 288 | tag: snapshot.data[index]['name'], 289 | flightShuttleBuilder: flightShuttleBuilder, 290 | child: Text( 291 | snapshot.data[index]['name'], 292 | style: TextStyle( 293 | fontSize: 24.0, 294 | fontWeight: FontWeight.bold, 295 | color: turquoise), 296 | textAlign: TextAlign.center, 297 | ), 298 | ), 299 | Padding( 300 | padding: const EdgeInsets.all(8.0), 301 | child: Text( 302 | snapshot.data[index]['oneliner'], 303 | style: TextStyle( 304 | fontSize: 16.0, 305 | fontWeight: FontWeight.bold, 306 | color: Colors.white), 307 | textAlign: TextAlign.center, 308 | ), 309 | ), 310 | ], 311 | ), 312 | Flexible( 313 | child: Image( 314 | image: CachedNetworkImageProvider( 315 | snapshot.data[index]['image_url']), 316 | ), 317 | ), 318 | index == snapshot.data[0]['current_index'] 319 | ? Flexible( 320 | child: Text( 321 | "Current Step", 322 | style: TextStyle( 323 | fontSize: 16.0, 324 | fontWeight: FontWeight.bold, 325 | color: yellow), 326 | textAlign: TextAlign.center, 327 | ), 328 | ) 329 | : Flexible( 330 | child: ElevatedButton( 331 | onPressed: () { 332 | _swiperController?.move( 333 | snapshot.data[0]['current_index']); 334 | }, 335 | child: FaIcon(FontAwesomeIcons.sync, 336 | size: 17), 337 | style: ButtonStyle( 338 | backgroundColor: 339 | MaterialStateProperty.all( 340 | yellow), 341 | foregroundColor: 342 | MaterialStateProperty.all( 343 | Colors.black), 344 | shape: MaterialStateProperty.all< 345 | RoundedRectangleBorder>( 346 | RoundedRectangleBorder( 347 | borderRadius: 348 | BorderRadius.circular(50.0), 349 | ))), 350 | ), 351 | ), 352 | ], 353 | ), 354 | ), 355 | ); 356 | }, 357 | itemCount: snapshot.data.length, 358 | pagination: SwiperPagination( 359 | builder: FractionPaginationBuilder(color: yellow)), 360 | control: SwiperControl(), 361 | ); 362 | } 363 | }), 364 | ), 365 | ); 366 | } 367 | } 368 | 369 | void _launchURL(url) async { 370 | if (!await launch(url)) throw 'Could not launch $url'; 371 | } 372 | 373 | class DeploymentStepDetailScreen extends StatefulWidget { 374 | const DeploymentStepDetailScreen( 375 | {Key? key, required this.deploymentStep, this.deploymentStepIndex}) 376 | : super(key: key); 377 | 378 | final deploymentStep; 379 | final deploymentStepIndex; 380 | 381 | @override 382 | State createState() => 383 | _DeploymentStepDetailScreenState(); 384 | } 385 | 386 | class _DeploymentStepDetailScreenState 387 | extends State { 388 | VideoPlayerController? _videoPlayerController; 389 | YoutubePlayerController? _youtubePlayerController; 390 | late Future _initializeVideoPlayerFuture; 391 | 392 | @override 393 | void initState() { 394 | String videoURL = widget.deploymentStep['video_url']; 395 | String youtubeURL = widget.deploymentStep['youtube_url']; 396 | 397 | if (videoURL != "") { 398 | setState(() { 399 | _initializeVideoPlayerFuture = playVideo(videoURL, false); 400 | }); 401 | } else if (youtubeURL != "") { 402 | playYoutubeVideo(youtubeURL); 403 | } 404 | 405 | super.initState(); 406 | } 407 | 408 | @override 409 | void dispose() { 410 | if (_videoPlayerController != null) { 411 | _videoPlayerController!.dispose(); 412 | } 413 | if (_youtubePlayerController != null) { 414 | _youtubePlayerController!.close(); 415 | } 416 | super.dispose(); 417 | } 418 | 419 | playYoutubeVideo(String url) { 420 | String? videoId = YoutubePlayerController.convertUrlToId(url); 421 | _youtubePlayerController = YoutubePlayerController( 422 | initialVideoId: videoId!, 423 | params: YoutubePlayerParams( 424 | showControls: true, 425 | showFullscreenButton: true, 426 | mute: false, 427 | enableCaption: false, 428 | showVideoAnnotations: false, 429 | autoPlay: true, 430 | ), 431 | ); 432 | } 433 | 434 | Future playVideo(String url, bool local) { 435 | // Dispose controller if it is already initialized 436 | if (_videoPlayerController != null) { 437 | print("dispose controller"); 438 | _videoPlayerController?.dispose(); 439 | } 440 | if (local) { 441 | _videoPlayerController = VideoPlayerController.asset( 442 | url, 443 | videoPlayerOptions: VideoPlayerOptions( 444 | mixWithOthers: true, 445 | ), 446 | ); 447 | } else { 448 | _videoPlayerController = VideoPlayerController.network( 449 | url, 450 | videoPlayerOptions: VideoPlayerOptions( 451 | mixWithOthers: true, 452 | ), 453 | ); 454 | } 455 | 456 | _initializeVideoPlayerFuture = _videoPlayerController!.initialize(); 457 | _videoPlayerController?.setLooping(true); 458 | _videoPlayerController?.setVolume(0.0); 459 | // _videoPlayerController?.setPlaybackSpeed(1); 460 | _videoPlayerController?.play(); 461 | 462 | return _initializeVideoPlayerFuture; 463 | } 464 | 465 | @override 466 | Widget build(BuildContext context) { 467 | return Scaffold( 468 | appBar: AppBar( 469 | title: Text( 470 | 'Step ${widget.deploymentStepIndex + 1}', 471 | style: TextStyle(fontWeight: FontWeight.bold, color: yellow), 472 | textAlign: TextAlign.center, 473 | ), 474 | backgroundColor: background, 475 | elevation: 0, 476 | centerTitle: true, 477 | ), 478 | body: Scrollbar( 479 | child: SingleChildScrollView( 480 | padding: EdgeInsets.all(20), 481 | child: Column( 482 | children: [ 483 | Hero( 484 | tag: widget.deploymentStep['name'], 485 | flightShuttleBuilder: flightShuttleBuilder, 486 | child: Text( 487 | '${widget.deploymentStep['name']}', 488 | style: TextStyle( 489 | fontSize: 24.0, 490 | fontWeight: FontWeight.bold, 491 | color: turquoise), 492 | textAlign: TextAlign.center, 493 | ), 494 | ), 495 | Padding( 496 | padding: const EdgeInsets.all(20.0), 497 | child: RichText( 498 | text: TextSpan( 499 | children: [ 500 | TextSpan( 501 | text: "Status: ", 502 | style: TextStyle( 503 | color: Colors.white, 504 | fontSize: 16, 505 | ), 506 | ), 507 | TextSpan( 508 | text: 509 | "${widget.deploymentStep['status'].toUpperCase()}", 510 | style: TextStyle( 511 | color: yellow, 512 | fontSize: 18, 513 | fontWeight: FontWeight.bold, 514 | ), 515 | ), 516 | ], 517 | ), 518 | ), 519 | ), 520 | if (_youtubePlayerController != null) 521 | Padding( 522 | padding: const EdgeInsets.fromLTRB(0, 20, 0, 20), 523 | child: YoutubePlayerIFrame( 524 | controller: _youtubePlayerController, 525 | aspectRatio: 16 / 9, 526 | ), 527 | ), 528 | if (widget.deploymentStep['video_url'] != "") 529 | Padding( 530 | padding: const EdgeInsets.fromLTRB(0, 20, 0, 20), 531 | child: FutureBuilder( 532 | future: _initializeVideoPlayerFuture, 533 | builder: (context, snapshot) { 534 | if (snapshot.connectionState == ConnectionState.done) { 535 | return AspectRatio( 536 | aspectRatio: 537 | _videoPlayerController!.value.aspectRatio, 538 | child: VideoPlayer(_videoPlayerController!), 539 | ); 540 | } else { 541 | return Center( 542 | child: CircularProgressIndicator( 543 | valueColor: AlwaysStoppedAnimation(yellow), 544 | ), 545 | ); 546 | } 547 | }, 548 | ), 549 | ), 550 | if (widget.deploymentStep['image_url2'] != "" && 551 | widget.deploymentStep['image_url2'] != null) 552 | Padding( 553 | padding: const EdgeInsets.fromLTRB(0, 20, 0, 20), 554 | child: Image.network( 555 | widget.deploymentStep['image_url2'], 556 | fit: BoxFit.cover, 557 | ), 558 | ), 559 | if (widget.deploymentStep['custom_link'] != "" && 560 | widget.deploymentStep['custom_link'] != null) 561 | ElevatedButton( 562 | // Change color of button 563 | style: ButtonStyle( 564 | backgroundColor: MaterialStateProperty.all(yellow), 565 | minimumSize: MaterialStateProperty.all(Size(0, 45)), 566 | ), 567 | child: RichText( 568 | text: TextSpan( 569 | children: [ 570 | WidgetSpan( 571 | child: FaIcon(FontAwesomeIcons.solidBell, 572 | size: 20, color: Colors.black), 573 | ), 574 | TextSpan( 575 | text: " ${widget.deploymentStep['custom_link_text']}", 576 | style: TextStyle( 577 | color: Colors.black, 578 | fontSize: 20, 579 | fontWeight: FontWeight.bold, 580 | ), 581 | ), 582 | ], 583 | ), 584 | textAlign: TextAlign.center, 585 | ), 586 | onPressed: () { 587 | _launchURL(widget.deploymentStep['custom_link']); 588 | }, 589 | ), 590 | Padding( 591 | padding: const EdgeInsets.fromLTRB(0, 20, 0, 20), 592 | child: Text( 593 | '${widget.deploymentStep['description']}', 594 | style: TextStyle( 595 | fontSize: 15.0, 596 | fontWeight: FontWeight.bold, 597 | color: Colors.white, 598 | wordSpacing: 1.5, 599 | height: 1.2), 600 | ), 601 | ), 602 | Padding( 603 | padding: const EdgeInsets.fromLTRB(0, 15, 0, 20), 604 | child: Row( 605 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 606 | children: [ 607 | ElevatedButton( 608 | // Change color of button 609 | style: ButtonStyle( 610 | backgroundColor: 611 | MaterialStateProperty.all(twitterBlue), 612 | minimumSize: 613 | MaterialStateProperty.all(Size(0, 45)), 614 | ), 615 | child: RichText( 616 | text: TextSpan( 617 | children: [ 618 | WidgetSpan( 619 | child: FaIcon(FontAwesomeIcons.twitter, size: 18), 620 | ), 621 | TextSpan( 622 | text: " @NASAWebb", 623 | style: TextStyle( 624 | color: Colors.white, 625 | fontSize: 18, 626 | fontWeight: FontWeight.bold, 627 | ), 628 | ), 629 | ], 630 | ), 631 | textAlign: TextAlign.center, 632 | ), 633 | onPressed: () { 634 | _launchURL(_twitterUrl); 635 | }, 636 | ), 637 | ElevatedButton( 638 | // Change color of button 639 | style: ButtonStyle( 640 | backgroundColor: MaterialStateProperty.all(blue), 641 | minimumSize: 642 | MaterialStateProperty.all(Size(0, 45)), 643 | ), 644 | child: RichText( 645 | text: TextSpan( 646 | children: [ 647 | WidgetSpan( 648 | child: 649 | FaIcon(FontAwesomeIcons.infoCircle, size: 18), 650 | ), 651 | TextSpan( 652 | text: " Learn more", 653 | style: TextStyle( 654 | color: Colors.white, 655 | fontSize: 18, 656 | fontWeight: FontWeight.bold, 657 | ), 658 | ), 659 | ], 660 | ), 661 | textAlign: TextAlign.center, 662 | ), 663 | onPressed: () { 664 | _launchURL(widget.deploymentStep['info_url']); 665 | }, 666 | ), 667 | ], 668 | ), 669 | ), 670 | ], 671 | ), 672 | ), 673 | ), 674 | ); 675 | } 676 | } 677 | 678 | // Workaround to fix Hero bugging with Text 679 | Widget flightShuttleBuilder( 680 | BuildContext flightContext, 681 | Animation animation, 682 | HeroFlightDirection flightDirection, 683 | BuildContext fromHeroContext, 684 | BuildContext toHeroContext, 685 | ) { 686 | return DefaultTextStyle( 687 | style: DefaultTextStyle.of(toHeroContext).style, 688 | child: toHeroContext.widget, 689 | ); 690 | } 691 | --------------------------------------------------------------------------------