7/22/1 location background

This commit is contained in:
Hamza-Ayed
2024-07-22 20:08:42 +03:00
parent d6410e45a4
commit dea83d970c
8 changed files with 95 additions and 54 deletions

View File

@@ -32,7 +32,7 @@ def keystorePropertiesFile = rootProject.file('key.properties')
android {
namespace "com.sefer_driver"
compileSdkVersion 34
compileSdk 34
ndkVersion flutter.ndkVersion
compileOptions {
@@ -47,19 +47,29 @@ android {
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.sefer_driver"
applicationId = "com.sefer_driver"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 23
targetSdkVersion 34
versionCode 63
versionName '1.5.63'
// manifestPlaceholders = [mapsApiKey: 'android/app/src/main/AndroidManifest.xml']
minSdk = 23
targetSdk = flutter.targetSdkVersion
versionCode = 64
versionName = '1.5.64'
}
// defaultConfig {
// // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// applicationId ="com.sefer_driver"
// // You can update the following values to match your application needs.
// // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
// minSdkVersion= 23
// targetSdk= 34
// versionCode= 63
// versionName ='1.5.63'
// // manifestPlaceholders = [mapsApiKey: 'android/app/src/main/AndroidManifest.xml']
// }
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
@@ -84,5 +94,6 @@ flutter {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
// implementation platform('com.google.firebase:firebase-bom:32.1.1')
implementation 'com.stripe:paymentsheet:20.47.0'
}

View File

@@ -4,6 +4,7 @@
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
@@ -12,6 +13,7 @@
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
@@ -34,6 +36,8 @@
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="com.example.action.APP_ACTION" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<meta-data
@@ -50,16 +54,23 @@
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
<!-- <service
android:name=".LocationUpdatesService"
android:exported="false" /> -->
<service
android:name=".LocationUpdatesService"
android:exported="false" />
android:foregroundServiceType="location"
android:exported="false"> <!-- or false, depending on whether it should be accessible by other
apps -->
</service>
<receiver
android:name=".YourBroadcastReceiver"
android:exported="false">
<intent-filter>
android:exported="false"> <!-- or false, depending on whether it should be accessible by other
apps -->
<!-- <intent-filter>
<action android:name="com.example.ACTION" />
</intent-filter>
</intent-filter> -->
</receiver>
</application>
</manifest>

View File

@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.9.10'
ext.kotlin_version = '1.9.22'
repositories {
google()
mavenCentral()