Skip to content

Commit

Permalink
Feature implementation LAMP-kotlin Target SDK update #825
Browse files Browse the repository at this point in the history
  • Loading branch information
anjumg03 committed Aug 26, 2024
1 parent 03e4d0c commit d4f0c8f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lamp_kotlin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ apply plugin: 'kotlin-parcelize'
apply plugin: 'kotlin-kapt'

android {
compileSdkVersion 33
buildToolsVersion "30.0.2"

defaultConfig {
compileSdk 34
minSdkVersion 26
targetSdkVersion 33
targetSdkVersion 34
versionCode 1
versionName "1.0"

Expand Down
21 changes: 21 additions & 0 deletions lamp_kotlin/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,60 +23,81 @@
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>


<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE"/>
<application
android:usesCleartextTraffic="true">

<!-- Sensor services -->
<service
android:name="digital.lamp.lamp_kotlin.sensor_core.Lamp"
android:foregroundServiceType="dataSync"
android:exported="true" />

<service
android:name="digital.lamp.lamp_kotlin.sensor_core.Locations"
android:foregroundServiceType="location"
android:exported="true" />
<service
android:name="digital.lamp.lamp_kotlin.sensor_core.Screen"
android:foregroundServiceType="shortService"
android:exported="true" />
<service
android:name="digital.lamp.lamp_kotlin.sensor_core.Accelerometer"
android:foregroundServiceType="shortService"
android:exported="true" />
<service
android:name="digital.lamp.lamp_kotlin.sensor_core.ActivityTransitions"
android:foregroundServiceType="shortService"
android:exported="true" />
<service
android:name="digital.lamp.lamp_kotlin.sensor_core.Gyroscope"
android:foregroundServiceType="shortService"
android:exported="true" />
<service
android:name="digital.lamp.lamp_kotlin.sensor_core.WiFi"
android:foregroundServiceType="connectedDevice"
android:exported="true" />
<service
android:name="digital.lamp.lamp_kotlin.sensor_core.WiFi$BackgroundService"
android:foregroundServiceType="connectedDevice"
android:exported="true" />
<service
android:name="digital.lamp.lamp_kotlin.sensor_core.WiFi$BluetoothBackgroundService"
android:foregroundServiceType="connectedDevice"
android:exported="true" />
<service
android:name="digital.lamp.lamp_kotlin.sensor_core.Rotation"
android:foregroundServiceType="shortService"
android:exported="true" />
<service
android:name="digital.lamp.lamp_kotlin.sensor_core.Light"
android:foregroundServiceType="shortService"
android:exported="true" />
<service
android:name="digital.lamp.lamp_kotlin.sensor_core.Magnetometer"
android:foregroundServiceType="shortService"
android:exported="true" />
<service
android:name="digital.lamp.lamp_kotlin.sensor_core.Barometer"
android:foregroundServiceType="shortService"
android:exported="true" />
<service
android:name="digital.lamp.lamp_kotlin.sensor_core.LinearAccelerometer"
android:foregroundServiceType="shortService"
android:exported="true" />

<service
android:name="digital.lamp.lamp_kotlin.sensor_core.Gravity"
android:foregroundServiceType="shortService"
android:exported="true" />

<service
android:name="digital.lamp.lamp_kotlin.sensor_core.TelephonySensor"
android:foregroundServiceType="shortService"
android:exported="true" />

</application>
Expand Down

0 comments on commit d4f0c8f

Please sign in to comment.