Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 65d0a0b

Browse files
authored
Merge pull request #121 from Myzel394/feat/0.15.0
Feat/0.15.0
2 parents f3cb5d3 + 53aa60e commit 65d0a0b

File tree

139 files changed

+7117
-5433
lines changed

Some content is hidden

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

139 files changed

+7117
-5433
lines changed

android/app/src/main/AndroidManifest.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
<uses-permission android:name="android.permissions.POST_NOTIFICATIONS" />
1414

15+
<!-- Required for background locator -->
16+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
17+
<uses-permission android:name="android.permission.WAKE_LOCK" />
1518
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
1619

1720
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
@@ -79,6 +82,22 @@
7982
android:scheme="https" />
8083
</intent-filter>
8184
</activity>
85+
86+
<service
87+
android:name="yukams.app.background_locator_2.IsolateHolderService"
88+
android:permission="android.permission.FOREGROUND_SERVICE"
89+
android:exported="true"
90+
android:foregroundServiceType="location" />
91+
92+
<receiver
93+
android:name="yukams.app.background_locator_2.BootBroadcastReceiver"
94+
android:enabled="true"
95+
android:exported="true">
96+
<intent-filter>
97+
<action android:name="android.intent.action.BOOT_COMPLETED" />
98+
</intent-filter>
99+
</receiver>
100+
82101
<!-- Don't delete the meta-data below.
83102
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
84103
<meta-data

assets/bunny.mp3

-2.67 MB
Binary file not shown.

ios/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ PODS:
22
- Alamofire (5.6.2)
33
- apple_maps_flutter (0.0.1):
44
- Flutter
5-
- audioplayers_darwin (0.0.1):
6-
- Flutter
75
- background_fetch (1.1.6):
86
- Flutter
7+
- background_locator_2 (0.0.1):
8+
- Flutter
99
- battery_plus (1.0.0):
1010
- Flutter
1111
- clipboard_watcher (0.0.1):
@@ -96,8 +96,8 @@ PODS:
9696

9797
DEPENDENCIES:
9898
- apple_maps_flutter (from `.symlinks/plugins/apple_maps_flutter/ios`)
99-
- audioplayers_darwin (from `.symlinks/plugins/audioplayers_darwin/ios`)
10099
- background_fetch (from `.symlinks/plugins/background_fetch/ios`)
100+
- background_locator_2 (from `.symlinks/plugins/background_locator_2/ios`)
101101
- battery_plus (from `.symlinks/plugins/battery_plus/ios`)
102102
- clipboard_watcher (from `.symlinks/plugins/clipboard_watcher/ios`)
103103
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
@@ -135,10 +135,10 @@ SPEC REPOS:
135135
EXTERNAL SOURCES:
136136
apple_maps_flutter:
137137
:path: ".symlinks/plugins/apple_maps_flutter/ios"
138-
audioplayers_darwin:
139-
:path: ".symlinks/plugins/audioplayers_darwin/ios"
140138
background_fetch:
141139
:path: ".symlinks/plugins/background_fetch/ios"
140+
background_locator_2:
141+
:path: ".symlinks/plugins/background_locator_2/ios"
142142
battery_plus:
143143
:path: ".symlinks/plugins/battery_plus/ios"
144144
clipboard_watcher:
@@ -187,8 +187,8 @@ EXTERNAL SOURCES:
187187
SPEC CHECKSUMS:
188188
Alamofire: d368e1ff8a298e6dde360e35a3e68e6c610e7204
189189
apple_maps_flutter: c59725efea39e13e703cde52a1d2b14866ad68a8
190-
audioplayers_darwin: 877d9a4d06331c5c374595e46e16453ac7eafa40
191190
background_fetch: bc9b44b0bf8b434e282a2ac9be8662800a0296ed
191+
background_locator_2: bc8a422343ab656d5bd98e08694c6f89fef20418
192192
battery_plus: 9bff772a7e5e4d5381ca3ca92a97373a3d8b2738
193193
clipboard_watcher: 86fb70421aca6f4944e0591a8292605da7784666
194194
device_info_plus: 7545d84d8d1b896cb16a4ff98c19f07ec4b298ea
@@ -221,4 +221,4 @@ SPEC CHECKSUMS:
221221

222222
PODFILE CHECKSUM: 819f6e738594296500811eae0a41f3dceed5a207
223223

224-
COCOAPODS: 1.11.3
224+
COCOAPODS: 1.12.1

ios/Runner/AppDelegate.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import UIKit
22
import Flutter
3+
import background_locator_2
4+
5+
func registerPlugins(registry: FlutterPluginRegistry) -> () {
6+
if (!registry.hasPlugin("BackgroundLocatorPlugin")) {
7+
GeneratedPluginRegistrant.register(with: registry)
8+
}
9+
}
310

411
@UIApplicationMain
512
@objc class AppDelegate: FlutterAppDelegate {
@@ -8,6 +15,7 @@ import Flutter
815
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
916
) -> Bool {
1017
GeneratedPluginRegistrant.register(with: self)
18+
BackgroundLocatorPlugin.setPluginRegistrantCallback(registerPlugins)
1119
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
1220
}
1321
}

lib/App.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:locus/constants/colors.dart';
66
import 'package:locus/screens/BiometricsRequiredStartupScreen.dart';
77
import 'package:locus/screens/LocationsOverviewScreen.dart';
88
import 'package:locus/screens/WelcomeScreen.dart';
9-
import 'package:locus/services/settings_service.dart';
9+
import 'package:locus/services/settings_service/index.dart';
1010
import 'package:locus/utils/PageRoute.dart';
1111
import 'package:locus/utils/color.dart';
1212
import 'package:locus/widgets/DismissKeyboard.dart';

lib/api/get-locations.dart

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)