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

Various changes (see description for details) #203

Closed
wants to merge 20 commits into from
Closed
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
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@
build/
example/ios/Flutter/flutter_export_environment.sh
.idea/
.gradle/
.gradle/
*.iml
pubspec.lock
.project
.classpath
.settings/
.vscode/
28 changes: 0 additions & 28 deletions .idea/libraries/Dart_SDK.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/libraries/Flutter_Plugins.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/misc.xml

This file was deleted.

73 changes: 0 additions & 73 deletions .idea/workspace.xml

This file was deleted.

2 changes: 1 addition & 1 deletion .metadata
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ version:
revision: 20e59316b8b8474554b38493b8ca888794b0234a
channel: stable

project_type: plugin
project_type: plugin
17 changes: 0 additions & 17 deletions .project

This file was deleted.

13 changes: 0 additions & 13 deletions .settings/org.eclipse.buildship.core.prefs

This file was deleted.

14 changes: 0 additions & 14 deletions .vscode/launch.json

This file was deleted.

3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

3 changes: 1 addition & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include: package:pedantic/analysis_options.1.9.0.yaml
analyzer:
include: package:flutter_lints/flutter.yaml
6 changes: 0 additions & 6 deletions android/.classpath

This file was deleted.

23 changes: 0 additions & 23 deletions android/.project

This file was deleted.

13 changes: 0 additions & 13 deletions android/.settings/org.eclipse.buildship.core.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions android/.settings/org.eclipse.jdt.core.prefs

This file was deleted.

18 changes: 9 additions & 9 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.almoullim.background_location">
package="com.almoullim.background_location">

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>


<application>
<service
android:name=".LocationUpdatesService"
android:foregroundServiceType="location"
android:enabled="true"
android:exported="false"
android:permission="" />
android:name=".LocationUpdatesService"
android:foregroundServiceType="location"
android:enabled="true"
android:exported="false"
android:permission=""/>
</application>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ class BackgroundLocationPlugin : FlutterPlugin, ActivityAware {
@SuppressWarnings("deprecation")
fun registerWith(registrar: PluginRegistry.Registrar) {
val service = BackgroundLocationService.getInstance()
service.onAttachedToEngine(registrar.context(), registrar.messenger())
service.onAttachedToEngine(
registrar.context(),
registrar.messenger()
)
registrar.addRequestPermissionsResultListener(service)
}

Expand All @@ -27,7 +30,10 @@ class BackgroundLocationPlugin : FlutterPlugin, ActivityAware {


override fun onAttachedToEngine(binding: FlutterPluginBinding) {
BackgroundLocationService.getInstance().onAttachedToEngine(binding.applicationContext, binding.binaryMessenger)
BackgroundLocationService.getInstance().onAttachedToEngine(
binding.applicationContext,
binding.binaryMessenger
)
}

override fun onDetachedFromEngine(binding: FlutterPluginBinding) {
Expand Down
Loading
Loading