fix: build warnings and deprecations

This commit is contained in:
Zane Schepke 2023-11-08 22:39:51 -05:00
parent 0a17593310
commit eb7b39c379
4 changed files with 13 additions and 10 deletions

View File

@ -37,6 +37,7 @@ jobs:
- name: Build Fdroid Release APK - name: Build Fdroid Release APK
run: ./gradlew :app:assembleFdroidRelease -x test run: ./gradlew :app:assembleFdroidRelease -x test
env: env:
KEY_STORE_PATH: ${{ secrets.KEY_STORE_PATH }}
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
@ -51,6 +52,7 @@ jobs:
id: buildRelease id: buildRelease
run: ./gradlew bundleGeneralRelease run: ./gradlew bundleGeneralRelease
env: env:
KEY_STORE_PATH: ${{ secrets.KEY_STORE_PATH }}
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
@ -69,11 +71,11 @@ jobs:
# upload general flavor release aab to beta track # upload general flavor release aab to beta track
- name: Publish to Play Store BETA - name: Publish to Play Store BETA
id: publish id: publish
uses: r0adkll/upload-google-play@v1 uses: r0adkll/upload-google-play@v1.1.2
with: with:
serviceAccountJson: service_account.json serviceAccountJson: service_account.json
packageName: com.zaneschepke.wireguardautotunnel packageName: com.zaneschepke.wireguardautotunnel
releaseFile: app/build/outputs/bundle/generalRelease/app-general-release.aab releaseFiles: app/build/outputs/bundle/generalRelease/app-general-release.aab
track: beta track: beta
release: release:

View File

@ -41,7 +41,7 @@ android {
load(file("signing_template.properties").reader()) load(file("signing_template.properties").reader())
} }
} }
val storePassVarName = "SIGNING_STORE_PASSWORD"; val storePassVarName = "SIGNING_STORE_PASSWORD"
val keyAliasVarName = "SIGNING_KEY_ALIAS" val keyAliasVarName = "SIGNING_KEY_ALIAS"
val keyPassVarName = "SIGNING_KEY_PASSWORD" val keyPassVarName = "SIGNING_KEY_PASSWORD"
val keyStorePathVarName = "KEY_STORE_PATH" val keyStorePathVarName = "KEY_STORE_PATH"
@ -55,6 +55,9 @@ android {
} }
buildTypes { buildTypes {
//don't strip
packaging.jniLibs.keepDebugSymbols.addAll(listOf("libwg-go.so", "libwg-quick.so", "libwg.so"))
applicationVariants.all { applicationVariants.all {
val variant = this val variant = this
variant.outputs variant.outputs
@ -158,7 +161,6 @@ dependencies {
implementation(libs.accompanist.systemuicontroller) implementation(libs.accompanist.systemuicontroller)
implementation(libs.accompanist.permissions) implementation(libs.accompanist.permissions)
implementation(libs.accompanist.flowlayout) implementation(libs.accompanist.flowlayout)
implementation(libs.accompanist.navigation.animation)
implementation(libs.accompanist.drawablepainter) implementation(libs.accompanist.drawablepainter)
//room //room

View File

@ -34,9 +34,9 @@ import androidx.compose.ui.focus.FocusRequester
import androidx.compose.ui.input.key.onKeyEvent import androidx.compose.ui.input.key.onKeyEvent
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
import androidx.lifecycle.lifecycleScope import androidx.lifecycle.lifecycleScope
import com.google.accompanist.navigation.animation.AnimatedNavHost import androidx.navigation.compose.NavHost
import com.google.accompanist.navigation.animation.composable import androidx.navigation.compose.composable
import com.google.accompanist.navigation.animation.rememberAnimatedNavController import androidx.navigation.compose.rememberNavController
import com.google.accompanist.permissions.ExperimentalPermissionsApi import com.google.accompanist.permissions.ExperimentalPermissionsApi
import com.google.accompanist.permissions.isGranted import com.google.accompanist.permissions.isGranted
import com.google.accompanist.permissions.rememberPermissionState import com.google.accompanist.permissions.rememberPermissionState
@ -67,7 +67,7 @@ class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
setContent { setContent {
val navController = rememberAnimatedNavController() val navController = rememberNavController()
val focusRequester = remember { FocusRequester() } val focusRequester = remember { FocusRequester() }
WireguardAutoTunnelTheme { WireguardAutoTunnelTheme {
@ -172,7 +172,7 @@ class MainActivity : AppCompatActivity() {
return@Scaffold return@Scaffold
} }
AnimatedNavHost(navController, startDestination = Routes.Main.name) { NavHost(navController, startDestination = Routes.Main.name) {
composable(Routes.Main.name, enterTransition = { composable(Routes.Main.name, enterTransition = {
when (initialState.destination.route) { when (initialState.destination.route) {
Routes.Settings.name, Routes.Support.name -> Routes.Settings.name, Routes.Support.name ->

View File

@ -38,7 +38,6 @@ zxingCore = "3.5.2"
# accompanist # accompanist
accompanist-drawablepainter = { module = "com.google.accompanist:accompanist-drawablepainter", version.ref = "accompanist" } accompanist-drawablepainter = { module = "com.google.accompanist:accompanist-drawablepainter", version.ref = "accompanist" }
accompanist-flowlayout = { module = "com.google.accompanist:accompanist-flowlayout", version.ref = "accompanist" } accompanist-flowlayout = { module = "com.google.accompanist:accompanist-flowlayout", version.ref = "accompanist" }
accompanist-navigation-animation = { module = "com.google.accompanist:accompanist-navigation-animation", version.ref = "accompanist" }
accompanist-permissions = { module = "com.google.accompanist:accompanist-permissions", version.ref = "accompanist" } accompanist-permissions = { module = "com.google.accompanist:accompanist-permissions", version.ref = "accompanist" }
accompanist-systemuicontroller = { module = "com.google.accompanist:accompanist-systemuicontroller", version.ref = "accompanist" } accompanist-systemuicontroller = { module = "com.google.accompanist:accompanist-systemuicontroller", version.ref = "accompanist" }