Skip to content

Commit

Permalink
Merge pull request #121 from Myzel394/feat/0.15.0
Browse files Browse the repository at this point in the history
Feat/0.15.0
  • Loading branch information
Myzel394 authored Sep 29, 2023
2 parents f3cb5d3 + 53aa60e commit 65d0a0b
Show file tree
Hide file tree
Showing 139 changed files with 7,117 additions and 5,433 deletions.
19 changes: 19 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

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

<!-- Required for background locator -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
Expand Down Expand Up @@ -79,6 +82,22 @@
android:scheme="https" />
</intent-filter>
</activity>

<service
android:name="yukams.app.background_locator_2.IsolateHolderService"
android:permission="android.permission.FOREGROUND_SERVICE"
android:exported="true"
android:foregroundServiceType="location" />

<receiver
android:name="yukams.app.background_locator_2.BootBroadcastReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>

<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
Expand Down
Binary file removed assets/bunny.mp3
Binary file not shown.
14 changes: 7 additions & 7 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ PODS:
- Alamofire (5.6.2)
- apple_maps_flutter (0.0.1):
- Flutter
- audioplayers_darwin (0.0.1):
- Flutter
- background_fetch (1.1.6):
- Flutter
- background_locator_2 (0.0.1):
- Flutter
- battery_plus (1.0.0):
- Flutter
- clipboard_watcher (0.0.1):
Expand Down Expand Up @@ -96,8 +96,8 @@ PODS:

DEPENDENCIES:
- apple_maps_flutter (from `.symlinks/plugins/apple_maps_flutter/ios`)
- audioplayers_darwin (from `.symlinks/plugins/audioplayers_darwin/ios`)
- background_fetch (from `.symlinks/plugins/background_fetch/ios`)
- background_locator_2 (from `.symlinks/plugins/background_locator_2/ios`)
- battery_plus (from `.symlinks/plugins/battery_plus/ios`)
- clipboard_watcher (from `.symlinks/plugins/clipboard_watcher/ios`)
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
Expand Down Expand Up @@ -135,10 +135,10 @@ SPEC REPOS:
EXTERNAL SOURCES:
apple_maps_flutter:
:path: ".symlinks/plugins/apple_maps_flutter/ios"
audioplayers_darwin:
:path: ".symlinks/plugins/audioplayers_darwin/ios"
background_fetch:
:path: ".symlinks/plugins/background_fetch/ios"
background_locator_2:
:path: ".symlinks/plugins/background_locator_2/ios"
battery_plus:
:path: ".symlinks/plugins/battery_plus/ios"
clipboard_watcher:
Expand Down Expand Up @@ -187,8 +187,8 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Alamofire: d368e1ff8a298e6dde360e35a3e68e6c610e7204
apple_maps_flutter: c59725efea39e13e703cde52a1d2b14866ad68a8
audioplayers_darwin: 877d9a4d06331c5c374595e46e16453ac7eafa40
background_fetch: bc9b44b0bf8b434e282a2ac9be8662800a0296ed
background_locator_2: bc8a422343ab656d5bd98e08694c6f89fef20418
battery_plus: 9bff772a7e5e4d5381ca3ca92a97373a3d8b2738
clipboard_watcher: 86fb70421aca6f4944e0591a8292605da7784666
device_info_plus: 7545d84d8d1b896cb16a4ff98c19f07ec4b298ea
Expand Down Expand Up @@ -221,4 +221,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 819f6e738594296500811eae0a41f3dceed5a207

COCOAPODS: 1.11.3
COCOAPODS: 1.12.1
8 changes: 8 additions & 0 deletions ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import UIKit
import Flutter
import background_locator_2

func registerPlugins(registry: FlutterPluginRegistry) -> () {
if (!registry.hasPlugin("BackgroundLocatorPlugin")) {
GeneratedPluginRegistrant.register(with: registry)
}
}

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
Expand All @@ -8,6 +15,7 @@ import Flutter
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
BackgroundLocatorPlugin.setPluginRegistrantCallback(registerPlugins)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
2 changes: 1 addition & 1 deletion lib/App.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:locus/constants/colors.dart';
import 'package:locus/screens/BiometricsRequiredStartupScreen.dart';
import 'package:locus/screens/LocationsOverviewScreen.dart';
import 'package:locus/screens/WelcomeScreen.dart';
import 'package:locus/services/settings_service.dart';
import 'package:locus/services/settings_service/index.dart';
import 'package:locus/utils/PageRoute.dart';
import 'package:locus/utils/color.dart';
import 'package:locus/widgets/DismissKeyboard.dart';
Expand Down
103 changes: 0 additions & 103 deletions lib/api/get-locations.dart

This file was deleted.

Loading

0 comments on commit 65d0a0b

Please sign in to comment.