Skip to content

Commit

Permalink
feat: android background location support
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfromyeg committed Jan 31, 2024
1 parent 443d196 commit 5b97f31
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
Expand All @@ -11,7 +12,8 @@
<application
android:label="georeal"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/ic_launcher"
tools:replace="android:label">
<activity
android:name=".MainActivity"
android:exported="true"
Expand Down
10 changes: 10 additions & 0 deletions client/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
buildscript {
ext.kotlin_version = '1.9.22'
ext {
compileSdkVersion = 31
targetSdkVersion = 31
appCompatVersion = "1.4.2"
}

repositories {
google()
mavenCentral()
Expand All @@ -15,6 +21,10 @@ allprojects {
repositories {
google()
mavenCentral()
maven {
// [required] background_fetch
url "${project(':background_fetch').projectDir}/libs"
}
}
}

Expand Down

0 comments on commit 5b97f31

Please sign in to comment.