Skip to content

Commit

Permalink
Target SDK 34
Browse files Browse the repository at this point in the history
This is without upgrading all other libraries and AGP due to #107
  • Loading branch information
grote committed Jan 14, 2025
1 parent 262c3fa commit eeb9f5f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ def gitCommit = { ->
}

android {
compileSdk 33
compileSdk 34

defaultConfig {
namespace "org.onionshare.android"

applicationId "org.onionshare.android"
minSdk 21
targetSdk 33
targetSdk 34
versionCode 21
versionName "0.1.20-beta"

Expand Down
4 changes: 3 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
Expand Down Expand Up @@ -42,7 +43,8 @@

<service
android:name="org.onionshare.android.tor.ShareService"
android:exported="false" />
android:exported="false"
android:foregroundServiceType="dataSync" />

</application>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ShareService : Service() {
internal lateinit var nm: OnionNotificationManager

override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
LOG.debug("onStartCommand $intent")
LOG.debug("onStartCommand {}", intent)
startForeground(NOTIFICATION_ID_FOREGROUND, nm.getForegroundNotification())
super.onStartCommand(intent, flags, startId)
return START_NOT_STICKY
Expand Down

0 comments on commit eeb9f5f

Please sign in to comment.