Skip to content

Commit c2a10fb

Browse files
committed
screens
1 parent d676065 commit c2a10fb

41 files changed

Lines changed: 1648 additions & 415 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
- uses: actions/checkout@v3
1616
- uses: actions/setup-java@v2
1717
with:
18-
distribution: 'zulu'
19-
java-version: '17'
18+
distribution: 'oracle'
19+
java-version: '25'
2020
- uses: subosito/flutter-action@v2
2121
with:
2222
flutter-version: '3.24.0'

.metadata

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,23 @@
11
# This file tracks properties of this Flutter project.
22
# Used by Flutter tool to assess capabilities and perform upgrades etc.
33
#
4-
# This file should be version controlled.
4+
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
8-
channel: stable
7+
revision: "adc901062556672b4138e18a4dc62a4be8f4b3c2"
8+
channel: "stable"
99

1010
project_type: app
1111

1212
# Tracks metadata for the flutter migrate command
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
17-
base_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
18-
- platform: android
19-
create_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
20-
base_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
21-
- platform: ios
22-
create_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
23-
base_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
24-
- platform: linux
25-
create_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
26-
base_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
27-
- platform: macos
28-
create_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
29-
base_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
30-
- platform: web
31-
create_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
32-
base_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
16+
create_revision: adc901062556672b4138e18a4dc62a4be8f4b3c2
17+
base_revision: adc901062556672b4138e18a4dc62a4be8f4b3c2
3318
- platform: windows
34-
create_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
35-
base_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
19+
create_revision: adc901062556672b4138e18a4dc62a4be8f4b3c2
20+
base_revision: adc901062556672b4138e18a4dc62a4be8f4b3c2
3621

3722
# User provided section
3823

android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ android {
2828
ndkVersion flutter.ndkVersion
2929

3030
compileOptions {
31-
sourceCompatibility JavaVersion.VERSION_21
32-
targetCompatibility JavaVersion.VERSION_21
31+
sourceCompatibility JavaVersion.VERSION_24
32+
targetCompatibility JavaVersion.VERSION_24
3333
}
3434

3535
kotlinOptions {
36-
jvmTarget = '21'
36+
jvmTarget = '24'
3737
}
3838

3939
sourceSets {

android/app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
<uses-permission android:name="android.permission.INTERNET"/>
66
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
77
<uses-permission android:name="android.permission.WAKE_LOCK"/>
8+
<uses-permission android:name="android.permission.BLUETOOTH" />
9+
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
10+
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
11+
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
12+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
13+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
814
<application
915
android:label="Be for Bike"
1016
android:name="${applicationName}"

android/app/src/main/kotlin/com/beforbike/app/database/ActivityDatabaseHelper.kt

Lines changed: 377 additions & 32 deletions
Large diffs are not rendered by default.

android/build/reports/problems/problems-report.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
org.gradle.jvmargs=-Xmx4096M
1+
org.gradle.jvmargs=-Xmx8192M
22
android.useAndroidX=true
33
android.enableJetifier=true
44
android.aarMetadata.check.enabled=false

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-all.zip

android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pluginManagement {
2020
plugins {
2121
id "dev.flutter.flutter-plugin-loader" version "1.0.0-25.0.1"
2222
id "com.android.application" version "8.13.0" apply false
23-
id "org.jetbrains.kotlin.android" version "2.2.20" apply false
23+
id "org.jetbrains.kotlin.android" version "2.2.21" apply false
2424
}
2525

2626
include ":app"

lib/data/api/helpers/api_helper.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class ApiHelper {
6767
break;
6868
}
6969
return response;
70-
} on DioError catch (error) {
70+
} on DioException catch (error) {
7171
if (error.response?.statusCode == 401) {
7272
return remoteApi.handleUnauthorizedError(error, data, queryParams);
7373
}
@@ -149,7 +149,7 @@ class RemoteApi {
149149

150150
handler.next(response);
151151
},
152-
onError: (DioError error, ErrorInterceptorHandler handler) async {
152+
onError: (DioException error, ErrorInterceptorHandler handler) async {
153153
handler.next(error);
154154
},
155155
));
@@ -170,7 +170,7 @@ class RemoteApi {
170170
/// Handles an unauthorized error by refreshing the JWT and making the request again.
171171
///
172172
/// Returns the [Response] object or null if navigation to the login screen occurs.
173-
Future<Response?> handleUnauthorizedError(DioError error,
173+
Future<Response?> handleUnauthorizedError(DioException error,
174174
Map<String, dynamic>? data, Map<String, dynamic>? queryParams) async {
175175
try {
176176
String? jwt = await UserApi.refreshToken();
@@ -188,10 +188,10 @@ class RemoteApi {
188188
responseType: error.requestOptions.responseType,
189189
),
190190
);
191-
} on DioError catch (_) {
191+
} on DioException catch (_) {
192192
navigatorKey.currentState?.pushReplacementNamed('/login');
193193
}
194-
} on DioError {
194+
} on DioException {
195195
navigatorKey.currentState?.pushReplacementNamed('/login');
196196
}
197197
return null;

0 commit comments

Comments
 (0)