Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic fixes in order to successfully start app on android device. #140

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions ci/flutter-build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM cirrusci/flutter

FROM ghcr.io/cirruslabs/flutter
WORKDIR /app/game
COPY game .

Expand Down
4 changes: 2 additions & 2 deletions ci/flutter-format/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM cirrusci/flutter
FROM ghcr.io/cirruslabs/flutter

WORKDIR /app/game
COPY game .

RUN flutter format lib | grep '0 changed'
RUN dart format lib | grep '0 changed'
2 changes: 1 addition & 1 deletion game/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
2 changes: 1 addition & 1 deletion game/lib/utils/utility_functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Future<String?> getId() async {
return iosDeviceInfo.identifierForVendor; // unique ID on iOS
} else if (Platform.isAndroid) {
var androidDeviceInfo = await deviceInfo.androidInfo;
return androidDeviceInfo.androidId; // unique ID on Android
return androidDeviceInfo.id; // unique ID on Android
}
}

Expand Down
26 changes: 13 additions & 13 deletions game/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,34 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
version: 1.0.1+5

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
sliding_up_panel: ^2.0.0+1
velocity_x: ^3.3.0
velocity_x: ^4.1.1
flutter_blurhash:
cached_network_image: ^3.1.0
google_fonts: 2.2.0
google_fonts: 6.1.0
url_launcher:
confetti: ^0.6.0
confetti: ^0.7.0
google_sign_in:
simple_animations: ^4.0.1
simple_animations: ^5.0.2
socket_io_client: ^2.0.0-beta.4-nullsafety.0
provider: ^5.0.0
flutter_secure_storage: ^5.0.2
geolocator: 8.0.1
http: ^0.13.4
provider: ^6.0.5
flutter_secure_storage: ^9.0.0
geolocator: ^10.1.0
http:
flutter_signin_button: ^2.0.0
permission_handler: ^9.2.0
fluttertoast: 8.0.9
permission_handler: ^11.0.1
fluttertoast: ^8.2.2
profanity_filter: ^2.0.0
intl:
flutter_linkify: ^5.0.2
device_info_plus: ^3.2.3
flutter_linkify: ^6.0.0
device_info_plus: ^9.0.3

flutter_icons:
android: true
Expand Down
Loading