Bump targetSdk to 31 (Android 12)

This commit is contained in:
Severiano Jaramillo 2024-07-04 20:16:15 -07:00
parent 16efb73765
commit 4915533a94
3 changed files with 8 additions and 6 deletions

View file

@ -12,7 +12,7 @@ android {
defaultConfig { defaultConfig {
applicationId "cy.agorise.bitsybitshareswallet" applicationId "cy.agorise.bitsybitshareswallet"
minSdk 21 minSdk 21
targetSdk 30 targetSdk 31
versionCode 15 versionCode 15
versionName "0.17.2-beta" versionName "0.17.2-beta"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

View file

@ -3,8 +3,12 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
package="cy.agorise.bitsybitshareswallet"> package="cy.agorise.bitsybitshareswallet">
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.CAMERA" />
<application <application
@ -61,5 +65,4 @@
android:resource="@xml/tmp_image_path" /> android:resource="@xml/tmp_image_path" />
</provider> </provider>
</application> </application>
</manifest> </manifest>

View file

@ -12,7 +12,7 @@ import cy.agorise.graphenej.stats.ExponentialMovingAverage
* *
* *
* The basic idea here is to keep track of the sequence of activity life cycle callbacks so that we * The basic idea here is to keep track of the sequence of activity life cycle callbacks so that we
* can infer when the user has left the app and the node connection can be salfely shut down. * can infer when the user has left the app and the node connection can be safely shut down.
*/ */
class NetworkServiceManager(nodes: List<String>) : ActivityLifecycleCallbacks { class NetworkServiceManager(nodes: List<String>) : ActivityLifecycleCallbacks {
/** /**
@ -68,5 +68,4 @@ class NetworkServiceManager(nodes: List<String>) : ActivityLifecycleCallbacks {
*/ */
private const val DISCONNECT_DELAY = 1500L private const val DISCONNECT_DELAY = 1500L
} }
} }