Commit cd541aa2 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Update dependencies, use SDK 31

parent 3df84a5c
......@@ -6,11 +6,11 @@ apply plugin: 'kotlin-kapt'
def debugKeyPath = new File(System.properties['user.home'], ".android/debug.keystore")
android {
compileSdkVersion 30
compileSdkVersion 31
defaultConfig {
applicationId "com.frostnerd.smokescreen"
minSdkVersion 21
targetSdkVersion 30
targetSdkVersion 31
versionCode 80
versionName "2.1.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
......@@ -144,18 +144,18 @@ android {
// }
//}
def frostnerdLifecycleVersion = "1.2.4"
def frostnerdPreferencesVersion = "1.5.33"
def frostnerdNavigationVersion = "1.4.5"
def frostnerdDnsProxyVersion = "2.21"
def frostnerdGeneralVersion = "1.0.28"
def frostnerdAdaptersVersion = "1.3.8"
def frostnerdLifecycleVersion = "1.2.5"
def frostnerdPreferencesVersion = "1.5.35"
def frostnerdNavigationVersion = "1.4.7"
def frostnerdDnsProxyVersion = "2.2.2"
def frostnerdGeneralVersion = "1.0.29"
def frostnerdAdaptersVersion = "1.3.10"
// TODO Clone, build & publishToMavenLocal for libraries with versions defined above for fdroidofficial flavor
// for https://gitlab.com/fdroid/fdroiddata/-/merge_requests/9142
dependencies {
def room_version = "2.3.0"
def room_version = "2.4.0"
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$KOTLIN_VERSION"
......@@ -170,14 +170,14 @@ dependencies {
implementation "com.frostnerd.utilskt:general:$frostnerdGeneralVersion" // https://git.frostnerd.com/AndroidUtils/generalkt
implementation "com.frostnerd.utilskt:adapters:$frostnerdAdaptersVersion" // https://git.frostnerd.com/AndroidUtils/Adapters
storeImplementation 'com.google.android.gms:play-services-cronet:17.0.1'
fdroidImplementation 'com.google.android.gms:play-services-cronet:17.0.1'
storeImplementation 'com.google.android.gms:play-services-cronet:18.0.0'
fdroidImplementation 'com.google.android.gms:play-services-cronet:18.0.0'
implementation 'androidx.work:work-runtime:2.7.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.work:work-runtime:2.7.1'
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation "androidx.preference:preference:1.1.1"
implementation "com.google.android.material:material:1.4.0"
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0-alpha01'
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0-rc01'
implementation "androidx.core:core-ktx:1.7.0"
implementation "androidx.room:room-runtime:$room_version"
......@@ -191,8 +191,8 @@ dependencies {
leakCanaryImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
implementation "com.squareup.okhttp3:okhttp:4.9.2"
implementation 'com.squareup.okhttp3:okhttp-dnsoverhttps:4.9.2'
implementation "com.squareup.okhttp3:okhttp:4.9.3"
implementation 'com.squareup.okhttp3:okhttp-dnsoverhttps:4.9.3'
implementation 'com.github.AppIntro:AppIntro:6.1.0'
storeImplementation 'com.google.android.play:core:1.10.2'
......
......@@ -46,6 +46,7 @@
<activity
android:name=".activity.PinActivity"
android:launchMode="singleTask"
android:exported="true"
android:theme="@style/Theme.AppCompat.Light.Dialog.Alert">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
......@@ -59,6 +60,7 @@
</intent-filter>
</activity>
<activity
android:exported="false"
android:name=".activity.NebuloAppIntro"
android:label="@string/app_name" />
......@@ -71,6 +73,7 @@
<activity
android:name=".activity.SettingsActivity"
android:label="@string/menu_settings"
android:exported="false"
android:theme="@style/AppTheme_Mono_ActionBar">
</activity>
......@@ -87,6 +90,7 @@
android:autoRemoveFromRecents="true"
android:label="@string/activity_label_enable_logging"
android:noHistory="true"
android:exported="true"
android:process=":logexport"
android:theme="@style/Theme.AppCompat.Light.Dialog.Alert">
<intent-filter>
......@@ -117,6 +121,7 @@
android:autoRemoveFromRecents="true"
android:label="@string/activity_label_import_servers"
android:noHistory="true"
android:exported="true"
android:theme="@style/Theme.AppCompat.Light.Dialog.Alert">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
......@@ -182,6 +187,7 @@
android:autoRemoveFromRecents="true"
android:label="@string/activity_label_import_queries"
android:noHistory="true"
android:exported="true"
android:theme="@style/Theme.AppCompat.Light.Dialog.Alert">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
......@@ -199,6 +205,7 @@
android:name=".activity.ImportSettingsActivity"
android:autoRemoveFromRecents="true"
android:noHistory="true"
android:exported="true"
android:theme="@style/Theme.AppCompat.Light.Dialog.Alert">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
......@@ -226,12 +233,14 @@
<activity
android:name=".activity.BackgroundVpnConfigureActivity"
android:launchMode="singleInstance"
android:exported="false"
android:theme="@style/Theme.AppCompat.Light.Dialog.Alert" />
<activity
android:name=".activity.ErrorDialogActivity"
android:autoRemoveFromRecents="true"
android:clearTaskOnLaunch="true"
android:excludeFromRecents="true"
android:exported="false"
android:launchMode="singleTop"
android:noHistory="true"
android:process=".ErrorProcess"
......@@ -260,6 +269,7 @@
<service
android:name=".service.DnsVpnService"
android:exported="true"
android:permission="android.permission.BIND_VPN_SERVICE"
android:stopWithTask="false">
<intent-filter>
......@@ -273,6 +283,7 @@
android:name=".service.VpnRestartService"
android:exported="false" />
<service
android:exported="true"
android:name=".service.StartStopTileService"
android:icon="@drawable/ic_mainnotification"
android:label="@string/app_name"
......
......@@ -33,12 +33,12 @@ ext.nexus_password = getNexusPassword()
buildscript {
ext {
ext.KOTLIN_VERSION = '1.5.31'
ext.KOTLIN_VERSION = '1.6.10'
}
ext.ANDROID_COMPILE_SDK = (System.getenv("ANDROID_COMPILE_SDK") == null ? 31 : System.getenv("ANDROID_COMPILE_SDK")).toInteger()
ext.ANDROID_TARGET_SDK = (System.getenv("ANDROID_TARGET_SDK") == null ? ANDROID_COMPILE_SDK : System.getenv("ANDROID_TARGET_SDK")).toInteger()
ext.ANDROID_MIN_SDK = (System.getenv("ANDROID_MIN_SDK") == null ? 14 : System.getenv("ANDROID_COMPILE_SDK")).toInteger()
ext.ANDROID_GRADLE_PLUGIN_VERSION = System.getenv("ANDROID_GRADLE_PLUGIN_VERSION") == null ? "7.0.3" : System.getenv("ANDROID_GRADLE_PLUGIN_VERSION")
ext.ANDROID_GRADLE_PLUGIN_VERSION = System.getenv("ANDROID_GRADLE_PLUGIN_VERSION") == null ? "7.0.4" : System.getenv("ANDROID_GRADLE_PLUGIN_VERSION")
println "COMPILE SDK Version: $ANDROID_COMPILE_SDK"
println "TARGET SDK Version: $ANDROID_TARGET_SDK"
......
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment