Skip to content

Commit

Permalink
Merge pull request #10 from GeoTecINIT/api-34
Browse files Browse the repository at this point in the history
Bump to Android 14 (api level 34)
  • Loading branch information
matey97 authored Sep 3, 2024
2 parents d2ca986 + bc597ab commit 96642b8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To install the library you have to add the dependency in your `build.gradle`:

```groovy
dependencies {
implementation 'io.github.geotecinit:background-sensors:1.3.0'
implementation 'io.github.geotecinit:background-sensors:1.4.0'
}
```

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ plugins {
}

android {
compileSdk 33
compileSdk 34

defaultConfig {
applicationId "es.uji.geotec.backgroundsensors"
minSdk 24
targetSdk 33
targetSdk 34
versionCode 1
versionName "1.0"

Expand Down
6 changes: 3 additions & 3 deletions backgroundsensors/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ plugins {
}

android {
compileSdk 33
compileSdk 34

defaultConfig {
minSdk 21
targetSdk 33
targetSdk 34

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down Expand Up @@ -39,7 +39,7 @@ android {
namespace 'es.uji.geotec.backgroundsensors'
}

version = '1.3.0'
version = '1.4.0'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")

publishing {
Expand Down
16 changes: 14 additions & 2 deletions backgroundsensors/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,21 @@
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />

<application>
<service android:name=".service.BaseSensorRecordingService" android:exported="true" />
<service android:name=".service.NTPSyncedSensorRecordingService" android:exported="true" />
<service android:name=".service.BaseSensorRecordingService"
android:foregroundServiceType="specialUse"
android:exported="true">
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
android:value="Foreground service for handling data collection from sensors."/>
</service>

<service android:name=".service.NTPSyncedSensorRecordingService"
android:foregroundServiceType="specialUse"
android:exported="true">
<property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
android:value="Foreground service for handling data collection from sensors with NTP syncing."/>
</service>
</application>
</manifest>

0 comments on commit 96642b8

Please sign in to comment.