feat: rename package to dev.fiatcode.tracpulse and app to TracPulse
- Update Android package namespace and applicationId to dev.fiatcode.tracpulse - Update AndroidManifest.xml package and app label to TracPulse - Move all Kotlin source files to dev/fiatcode/tracpulse/ package - Update pubspec.yaml name to tracpulse - Update all Dart imports from package:traccar_client to relative - Rename TraccarClientApp class to TracPulseApp - Update user-facing strings in permission_screen to TracPulse - Update notification channel label and wakeLock tag to TracPulse
This commit is contained in:
parent
b70822f2af
commit
a5dd3323f5
23 changed files with 74 additions and 73 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:traccar_client/main_screen.dart';
|
||||
import 'package:traccar_client/permission_screen.dart';
|
||||
import 'package:traccar_client/preferences.dart';
|
||||
import 'main_screen.dart';
|
||||
import 'permission_screen.dart';
|
||||
import 'preferences.dart';
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
|
@ -16,16 +16,16 @@ void main() async {
|
|||
),
|
||||
);
|
||||
|
||||
runApp(const TraccarClientApp());
|
||||
runApp(const TracPulseApp());
|
||||
}
|
||||
|
||||
class TraccarClientApp extends StatelessWidget {
|
||||
const TraccarClientApp({super.key});
|
||||
class TracPulseApp extends StatelessWidget {
|
||||
const TracPulseApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Traccar Client',
|
||||
title: 'TracPulse',
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: ThemeData(
|
||||
useMaterial3: true,
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:traccar_client/bridge/location_bridge.dart';
|
||||
import 'package:traccar_client/preferences.dart';
|
||||
import 'package:traccar_client/settings_screen.dart';
|
||||
import 'package:traccar_client/status_screen.dart';
|
||||
import 'bridge/location_bridge.dart';
|
||||
import 'preferences.dart';
|
||||
import 'settings_screen.dart';
|
||||
import 'status_screen.dart';
|
||||
|
||||
class MainScreen extends StatefulWidget {
|
||||
const MainScreen({super.key});
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:permission_handler/permission_handler.dart';
|
||||
import 'package:traccar_client/bridge/location_bridge.dart';
|
||||
import 'package:traccar_client/preferences.dart';
|
||||
import 'package:traccar_client/main_screen.dart';
|
||||
import 'bridge/location_bridge.dart';
|
||||
import 'preferences.dart';
|
||||
import 'main_screen.dart';
|
||||
|
||||
class PermissionScreen extends StatefulWidget {
|
||||
const PermissionScreen({super.key});
|
||||
|
|
@ -131,8 +131,8 @@ class _PermissionScreenState extends State<PermissionScreen> {
|
|||
content: Text(
|
||||
settingsOpened
|
||||
? 'A settings screen has opened.\n\n'
|
||||
'Find "Traccar Client" and set it to "Don\'t optimize" or "Unrestricted", then come back and tap CHECK & DONE.'
|
||||
: 'Open Settings → Apps → Traccar Client → Battery and select "Don\'t optimize" or "Unrestricted", then come back and tap CHECK & DONE.',
|
||||
'Find "TracPulse" and set it to "Don\'t optimize" or "Unrestricted", then come back and tap CHECK & DONE.'
|
||||
: 'Open Settings → Apps → TracPulse → Battery and select "Don\'t optimize" or "Unrestricted", then come back and tap CHECK & DONE.',
|
||||
style: const TextStyle(
|
||||
fontFamily: 'monospace',
|
||||
fontSize: 12,
|
||||
|
|
@ -310,7 +310,7 @@ class _PermissionScreenState extends State<PermissionScreen> {
|
|||
),
|
||||
SizedBox(height: 4),
|
||||
Text(
|
||||
'Traccar Client needs these permissions to track your location reliably in the background.',
|
||||
'TracPulse needs these permissions to track your location reliably in the background.',
|
||||
style: TextStyle(
|
||||
fontFamily: 'monospace',
|
||||
fontSize: 11,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:traccar_client/bridge/location_bridge.dart';
|
||||
import 'package:traccar_client/preferences.dart';
|
||||
import 'bridge/location_bridge.dart';
|
||||
import 'preferences.dart';
|
||||
|
||||
class SettingsScreen extends StatefulWidget {
|
||||
const SettingsScreen({super.key});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue