Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
71620da
create initial authentication screens
some-casual-coder Jun 22, 2023
7f8640e
create the landing and profile screens
some-casual-coder Jun 22, 2023
903e469
create the landing and profile screens
some-casual-coder Jun 22, 2023
bfd2f3e
implement logic behind authentication
some-casual-coder Jun 23, 2023
72da1a2
implement logic behind authentication
some-casual-coder Jun 23, 2023
1e1b10c
Implement password reset
some-casual-coder Jun 26, 2023
e0bac80
Implement password reset
some-casual-coder Jun 26, 2023
d5afbbc
add email otp functionality
some-casual-coder Jul 2, 2023
d5c1e68
add email otp functionality
some-casual-coder Jul 2, 2023
717f3b3
Add module to offer a ride with a custom route
some-casual-coder Jul 10, 2023
bc40110
Add module to offer a ride with a custom route
some-casual-coder Jul 10, 2023
9cbb634
reqoek home screen
some-casual-coder Jul 13, 2023
7a6cd61
reqoek home screen
some-casual-coder Jul 13, 2023
501a2aa
modify vehicle adding screen UI
some-casual-coder Jul 14, 2023
12c437b
modify vehicle adding screen UI
some-casual-coder Jul 14, 2023
fb10d1d
finalise ride adding
some-casual-coder Jul 15, 2023
bfdedc3
finalise ride adding
some-casual-coder Jul 15, 2023
472d6f4
edit location tracking
some-casual-coder Jul 15, 2023
55320e8
edit location tracking
some-casual-coder Jul 15, 2023
c580831
edit location tracking
some-casual-coder Jul 15, 2023
2e7df45
Merge branch 'master' of https://github.com/some-casual-coder/SchoolP…
some-casual-coder Jul 15, 2023
246f097
Merge pull request #7 from some-casual-coder/master
AsavaAsava Jul 15, 2023
9223be5
Update firebase_options.dart Remove API key
AsavaAsava Jul 15, 2023
f31f0ca
Add files
some-casual-coder Jul 15, 2023
3b22d7d
Merge branch 'main' into master
some-casual-coder Jul 15, 2023
788edfd
Merge pull request #11 from some-casual-coder/master
AsavaAsava Jul 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ride_share/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,13 @@ app.*.symbols

# Obfuscation related
app.*.map.json
config.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

#Secrets file for API keys
/lib/auth/secrets.dart
/lib/auth.config.dart
10 changes: 9 additions & 1 deletion ride_share/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

def envVariables = [
MAPS_API_KEY: project.hasProperty('MAPS_API_KEY')
? MAPS_API_KEY
: "API_KEY",
];

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
Expand All @@ -47,10 +53,11 @@ android {
applicationId "com.example.ride_share"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
minSdkVersion 23
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
resValue "string", "googleMapApiKey", envVariables.MAPS_API_KEY
}

buildTypes {
Expand All @@ -68,4 +75,5 @@ flutter {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.android.gms:play-services-maps:18.1.0'
}
99 changes: 99 additions & 0 deletions ride_share/android/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"project_info": {
"project_number": "943152405737",
"firebase_url": "https://school-carpool-csp1-default-rtdb.europe-west1.firebasedatabase.app",
"project_id": "school-carpool-csp1",
"storage_bucket": "school-carpool-csp1.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:943152405737:android:5457e3555963406fdce478",
"android_client_info": {
"package_name": "com.example.ride_share"
}
},
"oauth_client": [
{
"client_id": "943152405737-dl3gep47gr3a3m6e6uhjfmctev8nq0rd.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.example.ride_share",
"certificate_hash": "0cef302226b6059fc5e61d390fbeeba8fc32c916"
}
},
{
"client_id": "943152405737-1ibrmd1ee903soduuo0cgvfoqag8k98n.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCZy5aFxa7OGpgnAFvVX-ozsCZ71DJWCbA"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "943152405737-1ibrmd1ee903soduuo0cgvfoqag8k98n.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "943152405737-jheatv57d64h92jk6hlugo81ivhpqhq2.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com.example.rideShare"
}
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "1:943152405737:android:1756b43b64699837dce478",
"android_client_info": {
"package_name": "com.school.testrun"
}
},
"oauth_client": [
{
"client_id": "943152405737-4igp2ltm5gqsco0stb3r06e52v12sha0.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.school.testrun",
"certificate_hash": "0cef302226b6059fc5e61d390fbeeba8fc32c916"
}
},
{
"client_id": "943152405737-1ibrmd1ee903soduuo0cgvfoqag8k98n.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCZy5aFxa7OGpgnAFvVX-ozsCZ71DJWCbA"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "943152405737-1ibrmd1ee903soduuo0cgvfoqag8k98n.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "943152405737-jheatv57d64h92jk6hlugo81ivhpqhq2.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com.example.rideShare"
}
}
]
}
}
}
],
"configuration_version": "1"
}
12 changes: 8 additions & 4 deletions ride_share/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.ride_share">
<application
<uses-permission android:name="android.permission.USE_BIOMETRIC"/>
<uses-permission android:name="android.permission.LOCATION"/>
<application
android:label="ride_share"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
Expand All @@ -17,9 +19,9 @@
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
Expand All @@ -30,5 +32,7 @@
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<meta-data android:name="com.google.android.geo.API_KEY"
android:value="@string/googleApiKey"/>
</application>
</manifest>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.example.ride_share

import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.android.FlutterFragmentActivity

class MainActivity: FlutterActivity() {
class MainActivity: FlutterFragmentActivity() {
}
Binary file added ride_share/assets/Badge (2).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ride_share/assets/Pin_current_location.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ride_share/assets/Pin_destination.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ride_share/assets/Pin_source.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ride_share/assets/images/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading