Compare commits
2 Commits
master
..
ba2d17174c
| Author | SHA1 | Date | |
|---|---|---|---|
| ba2d17174c | |||
| a875c753da |
@@ -3,12 +3,6 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
paths:
|
|
||||||
- 'lib/**.dart'
|
|
||||||
- 'test/**.dart'
|
|
||||||
- 'android/**'
|
|
||||||
- 'pubspec.yaml'
|
|
||||||
- 'pubspec.lock'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -21,7 +15,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: Analyze & Test
|
name: Analyze & Build
|
||||||
runs-on: flutter-android
|
runs-on: flutter-android
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -37,17 +31,6 @@ jobs:
|
|||||||
- name: Analyze
|
- name: Analyze
|
||||||
run: flutter analyze
|
run: flutter analyze
|
||||||
|
|
||||||
release-apk:
|
|
||||||
name: Release APK
|
|
||||||
runs-on: flutter-android
|
|
||||||
needs: [analyze]
|
|
||||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Get dependencies
|
|
||||||
run: flutter pub get
|
|
||||||
|
|
||||||
- name: Build release APK
|
- name: Build release APK
|
||||||
run: flutter build apk --release
|
run: flutter build apk --release
|
||||||
|
|
||||||
|
|||||||
@@ -10,11 +10,3 @@ analyzer:
|
|||||||
- windows/**
|
- windows/**
|
||||||
- macos/**
|
- macos/**
|
||||||
- linux/**
|
- linux/**
|
||||||
|
|
||||||
linter:
|
|
||||||
rules:
|
|
||||||
prefer_single_quotes: true
|
|
||||||
# SCREAMING_SNAKE_CASE for constants is project convention
|
|
||||||
constant_identifier_names: false
|
|
||||||
# sort_pub_dependencies doesn't play well with flutter SDK dep first
|
|
||||||
sort_pub_dependencies: false
|
|
||||||
@@ -23,7 +23,7 @@ class OverlayService {
|
|||||||
() async {
|
() async {
|
||||||
await FlutterOverlayWindow.showOverlay(
|
await FlutterOverlayWindow.showOverlay(
|
||||||
enableDrag: true,
|
enableDrag: true,
|
||||||
overlayTitle: 'Speedometer',
|
overlayTitle: "Speedometer",
|
||||||
overlayContent: 'Speedo overlay active',
|
overlayContent: 'Speedo overlay active',
|
||||||
flag: OverlayFlag.defaultFlag,
|
flag: OverlayFlag.defaultFlag,
|
||||||
visibility: NotificationVisibility.visibilityPublic,
|
visibility: NotificationVisibility.visibilityPublic,
|
||||||
|
|||||||
+23
-8
@@ -2,7 +2,7 @@ name: gps_speedo
|
|||||||
description: "Speedo - A Flutter application."
|
description: "Speedo - A Flutter application."
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 2.3.0+2
|
version: 2.2.2+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.9.0
|
sdk: ^3.9.0
|
||||||
@@ -11,22 +11,37 @@ dependencies:
|
|||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
||||||
|
# cupertino_icons: ^1.0.8
|
||||||
|
# Probably no icons needed for now
|
||||||
|
|
||||||
# GPS and Location Services - Essential only
|
# GPS and Location Services - Essential only
|
||||||
bg_launcher: ^0.1.0
|
|
||||||
flutter_overlay_window: ^0.5.0
|
|
||||||
geolocator: ^14.0.2
|
geolocator: ^14.0.2
|
||||||
permission_handler: ^12.0.1
|
permission_handler: ^12.0.1
|
||||||
provider: ^6.1.2
|
|
||||||
retry: ^3.1.2
|
# Keep screen awake during navigation
|
||||||
shared_preferences: ^2.3.4
|
|
||||||
wakelock_plus: ^1.2.8
|
wakelock_plus: ^1.2.8
|
||||||
|
|
||||||
|
# Floating window overlay capability
|
||||||
|
flutter_overlay_window: ^0.5.0
|
||||||
|
|
||||||
|
# Bring app to foreground from background/overlay
|
||||||
|
bg_launcher: ^0.1.0
|
||||||
|
|
||||||
|
# State management
|
||||||
|
provider: ^6.1.2
|
||||||
|
|
||||||
|
# Persistent settings storage
|
||||||
|
shared_preferences: ^2.3.4
|
||||||
|
|
||||||
|
# Retry logic for platform operations
|
||||||
|
retry: ^3.1.2
|
||||||
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_launcher_icons: "^0.14.4"
|
|
||||||
flutter_lints: ^6.0.0
|
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
flutter_lints: ^6.0.0
|
||||||
|
flutter_launcher_icons: "^0.14.4"
|
||||||
|
|
||||||
flutter:
|
flutter:
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
|||||||
Reference in New Issue
Block a user