diff --git a/roster_management_system/.gitignore b/roster_management_system/.gitignore index 0fa6b67..d009f5a 100644 --- a/roster_management_system/.gitignore +++ b/roster_management_system/.gitignore @@ -31,6 +31,10 @@ .pub/ /build/ +# Firebase – this is necessary if you use Firebase since it could otherwise +# lead to leaking of private certificates to your repository, which is no bueno. +.firebase/ + # Web related lib/generated_plugin_registrant.dart diff --git a/roster_management_system/.metadata b/roster_management_system/.metadata index 05f4d5d..140b929 100644 --- a/roster_management_system/.metadata +++ b/roster_management_system/.metadata @@ -4,7 +4,7 @@ # This file should be version controlled and should not be manually edited. version: - revision: 097d3313d8e2c7f901932d63e537c1acefb87800 + revision: 4d7946a68d26794349189cf21b3f68cc6fe61dcb channel: stable project_type: app diff --git a/roster_management_system/README.md b/roster_management_system/README.md index 484a53b..389c2e5 100644 --- a/roster_management_system/README.md +++ b/roster_management_system/README.md @@ -1,9 +1,24 @@ -# roster_management_system +# Roster-Management-System A new Flutter project. ## Getting Started +FlutterFlow projects are built to run on the Flutter _stable_ release. + +### IMPORTANT: + +For projects with Firestore integration, you must first run the following commands to ensure the project compiles: + +``` +flutter pub get +flutter packages pub run build_runner build --delete-conflicting-outputs +``` + +This command creates the generated files that parse each Record from Firestore into a schema object. + +### Getting started continued: + This project is a starting point for a Flutter application. A few resources to get you started if this is your first Flutter project: diff --git a/roster_management_system/android/.gitignore b/roster_management_system/android/.gitignore index 6f56801..0a741cb 100644 --- a/roster_management_system/android/.gitignore +++ b/roster_management_system/android/.gitignore @@ -9,5 +9,3 @@ GeneratedPluginRegistrant.java # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app key.properties -**/*.keystore -**/*.jks diff --git a/roster_management_system/android/app/build.gradle b/roster_management_system/android/app/build.gradle index 494af55..7ed9d59 100644 --- a/roster_management_system/android/app/build.gradle +++ b/roster_management_system/android/app/build.gradle @@ -24,32 +24,44 @@ if (flutterVersionName == null) { apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" +apply plugin: 'com.google.gms.google-services' // Google Services plugin -android { - compileSdkVersion flutter.compileSdkVersion - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } +def keystoreProperties = new Properties() +def keystorePropertiesFile = rootProject.file('key.properties') +if (keystorePropertiesFile.exists()) { + keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) +} - kotlinOptions { - jvmTarget = '1.8' - } +android { + compileSdkVersion 31 sourceSets { main.java.srcDirs += 'src/main/kotlin' } + lintOptions { + disable 'InvalidPackage' + checkReleaseBuilds false + } + defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.roster_management_system" - minSdkVersion flutter.minSdkVersion - targetSdkVersion flutter.targetSdkVersion + applicationId "com.flutterflow.rostermanagementsystem" + minSdkVersion 21 + targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } + signingConfigs { + release { + keyAlias keystoreProperties['keyAlias'] + keyPassword keystoreProperties['keyPassword'] + storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null + storePassword keystoreProperties['storePassword'] + } + } + buildTypes { release { // TODO: Add your own signing config for the release build. diff --git a/roster_management_system/android/app/google-services.json b/roster_management_system/android/app/google-services.json new file mode 100644 index 0000000..b314cd9 --- /dev/null +++ b/roster_management_system/android/app/google-services.json @@ -0,0 +1,55 @@ +{ + "project_info": { + "project_number": "515997796368", + "firebase_url": "https://roster-management-system-default-rtdb.firebaseio.com", + "project_id": "roster-management-system", + "storage_bucket": "roster-management-system.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:515997796368:android:c0ea8b471640e242032295", + "android_client_info": { + "package_name": "com.flutterflow.rostermanagementsystem" + } + }, + "oauth_client": [ + { + "client_id": "515997796368-urkdqnetqvkc5ft36iluds7h4dmqd4av.apps.googleusercontent.com", + "client_type": 1, + "android_info": { + "package_name": "com.flutterflow.rostermanagementsystem", + "certificate_hash": "9bbb3186b2189ef16d8f272bdab59362c395cbb4" + } + }, + { + "client_id": "515997796368-n1b0tljds2rcr0hr3m7kjbiu533b3olg.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyBYYDPzTCRd70G2FXjjPX_1Hf_cucMubYQ" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "515997796368-n1b0tljds2rcr0hr3m7kjbiu533b3olg.apps.googleusercontent.com", + "client_type": 3 + }, + { + "client_id": "515997796368-ptqoikvc2nk5e8vhg8n4ugrj9gihhf27.apps.googleusercontent.com", + "client_type": 2, + "ios_info": { + "bundle_id": "com.flutterflow.rostermanagementsystem" + } + } + ] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/roster_management_system/android/app/src/debug/AndroidManifest.xml b/roster_management_system/android/app/src/debug/AndroidManifest.xml index f71d9d6..a5c7a60 100644 --- a/roster_management_system/android/app/src/debug/AndroidManifest.xml +++ b/roster_management_system/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.flutterflow.rostermanagementsystem"> diff --git a/roster_management_system/android/app/src/main/AndroidManifest.xml b/roster_management_system/android/app/src/main/AndroidManifest.xml index 392bb21..697a2e3 100644 --- a/roster_management_system/android/app/src/main/AndroidManifest.xml +++ b/roster_management_system/android/app/src/main/AndroidManifest.xml @@ -1,9 +1,14 @@ + package="com.flutterflow.rostermanagementsystem" + xmlns:tools="http://schemas.android.com/tools"> + + + android:label="Roster-Management-System" + tools:replace="android:label" + android:icon="@mipmap/ic_launcher" + android:requestLegacyExternalStorage="true"> + + + + + + + + diff --git a/roster_management_system/android/app/src/main/kotlin/com/example/my_project/MainActivity.kt b/roster_management_system/android/app/src/main/kotlin/com/example/my_project/MainActivity.kt new file mode 100644 index 0000000..cdeb4f2 --- /dev/null +++ b/roster_management_system/android/app/src/main/kotlin/com/example/my_project/MainActivity.kt @@ -0,0 +1,6 @@ +package com.flutterflow.rostermanagementsystem + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/roster_management_system/android/app/src/main/res/drawable/launch_background.xml b/roster_management_system/android/app/src/main/res/drawable/launch_background.xml index 304732f..f74085f 100644 --- a/roster_management_system/android/app/src/main/res/drawable/launch_background.xml +++ b/roster_management_system/android/app/src/main/res/drawable/launch_background.xml @@ -1,7 +1,7 @@ - + - diff --git a/roster_management_system/android/app/src/main/res/values/strings.xml b/roster_management_system/android/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..2638fac --- /dev/null +++ b/roster_management_system/android/app/src/main/res/values/strings.xml @@ -0,0 +1,5 @@ + + + Roster-Management-System + + \ No newline at end of file diff --git a/roster_management_system/android/app/src/main/res/values/styles.xml b/roster_management_system/android/app/src/main/res/values/styles.xml index d460d1e..d74aa35 100644 --- a/roster_management_system/android/app/src/main/res/values/styles.xml +++ b/roster_management_system/android/app/src/main/res/values/styles.xml @@ -10,7 +10,7 @@ This theme determines the color of the Android Window while your Flutter UI initializes, as well as behind your Flutter UI while its running. - + This Theme is only used starting with V2 of Flutter's Android embedding. -->