Skip to content

Commit

Permalink
Merge pull request #673 from igorescodro/hotfix/3.0.6
Browse files Browse the repository at this point in the history
🚨 Fix 3.0.5 Android issues
  • Loading branch information
igorescodro authored May 4, 2024
2 parents 75ce9d5 + 9506fb9 commit c0a15a5
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package com.escodro.category.navigation

import androidx.compose.runtime.Composable
import cafe.adriel.voyager.core.screen.Screen
import cafe.adriel.voyager.core.screen.ScreenKey
import cafe.adriel.voyager.core.screen.uniqueScreenKey
import cafe.adriel.voyager.navigator.bottomSheet.LocalBottomSheetNavigator
import com.escodro.category.presentation.bottomsheet.CategoryBottomSheet

Expand All @@ -12,6 +14,8 @@ import com.escodro.category.presentation.bottomsheet.CategoryBottomSheet
*/
internal data class CategoryBottomSheet(val categoryId: Long?) : Screen {

override val key: ScreenKey = uniqueScreenKey

@Composable
override fun Content() {
val bottomSheetNavigator = LocalBottomSheetNavigator.current
Expand Down
3 changes: 1 addition & 2 deletions features/glance/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-dontwarn java.lang.invoke.StringConcatFactory
-dontwarn com.escodro.glance.di.GlanceModuleKt
-keep class com.escodro.glance.** { *; }
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ package com.escodro.home.navigation

import androidx.compose.runtime.Composable
import cafe.adriel.voyager.core.screen.Screen
import cafe.adriel.voyager.core.screen.ScreenKey
import cafe.adriel.voyager.core.screen.uniqueScreenKey
import com.escodro.home.presentation.Home

/**
* Alkaa's Home Screen.
*/
class HomeScreen : Screen {

override val key: ScreenKey = uniqueScreenKey

@Composable
override fun Content() {
Home()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package com.escodro.preference.navigation

import androidx.compose.runtime.Composable
import cafe.adriel.voyager.core.screen.Screen
import cafe.adriel.voyager.core.screen.ScreenKey
import cafe.adriel.voyager.core.screen.uniqueScreenKey
import cafe.adriel.voyager.navigator.LocalNavigator
import cafe.adriel.voyager.navigator.currentOrThrow
import com.escodro.preference.presentation.AboutScreen
Expand All @@ -11,6 +13,8 @@ import com.escodro.preference.presentation.AboutScreen
*/
internal class AboutScreen : Screen {

override val key: ScreenKey = uniqueScreenKey

@Composable
override fun Content() {
val navigator = LocalNavigator.currentOrThrow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package com.escodro.preference.navigation

import androidx.compose.runtime.Composable
import cafe.adriel.voyager.core.screen.Screen
import cafe.adriel.voyager.core.screen.ScreenKey
import cafe.adriel.voyager.core.screen.uniqueScreenKey
import cafe.adriel.voyager.navigator.LocalNavigator
import cafe.adriel.voyager.navigator.currentOrThrow
import com.escodro.preference.presentation.OpenSource
Expand All @@ -11,6 +13,8 @@ import com.escodro.preference.presentation.OpenSource
*/
internal class OpenSourceScreen : Screen {

override val key: ScreenKey = uniqueScreenKey

@Composable
override fun Content() {
val navigator = LocalNavigator.currentOrThrow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package com.escodro.preference.navigation

import androidx.compose.runtime.Composable
import cafe.adriel.voyager.core.screen.Screen
import cafe.adriel.voyager.core.screen.ScreenKey
import cafe.adriel.voyager.core.screen.uniqueScreenKey
import cafe.adriel.voyager.navigator.LocalNavigator
import cafe.adriel.voyager.navigator.currentOrThrow
import com.escodro.preference.provider.TrackerProvider
Expand All @@ -13,6 +15,8 @@ import org.koin.core.component.inject
*/
internal class TrackerScreen : Screen, KoinComponent {

override val key: ScreenKey = uniqueScreenKey

private val trackerProvider: TrackerProvider by inject()

@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package com.escodro.task.navigation

import androidx.compose.runtime.Composable
import cafe.adriel.voyager.core.screen.Screen
import cafe.adriel.voyager.core.screen.ScreenKey
import cafe.adriel.voyager.core.screen.uniqueScreenKey
import cafe.adriel.voyager.navigator.bottomSheet.LocalBottomSheetNavigator
import com.escodro.task.presentation.add.AddTaskBottomSheet

Expand All @@ -10,6 +12,8 @@ import com.escodro.task.presentation.add.AddTaskBottomSheet
*/
internal class AddTaskBottomSheet : Screen {

override val key: ScreenKey = uniqueScreenKey

@Composable
override fun Content() {
val bottomSheetNavigator = LocalBottomSheetNavigator.current
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package com.escodro.task.navigation

import androidx.compose.runtime.Composable
import cafe.adriel.voyager.core.screen.Screen
import cafe.adriel.voyager.core.screen.ScreenKey
import cafe.adriel.voyager.core.screen.uniqueScreenKey
import cafe.adriel.voyager.navigator.LocalNavigator
import cafe.adriel.voyager.navigator.currentOrThrow
import com.escodro.task.presentation.detail.main.TaskDetailScreen
Expand All @@ -11,6 +13,8 @@ import com.escodro.task.presentation.detail.main.TaskDetailScreen
*/
internal data class TaskDetailScreen(val taskId: Long) : Screen {

override val key: ScreenKey = uniqueScreenKey

@Composable
override fun Content() {
val navigator = LocalNavigator.currentOrThrow
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
# Project
version_code = "30005"
version_name = "3.0.5"
version_code = "30006"
version_name = "3.0.6"
android_gradle_plugin = "8.4.0"
kotlin = "1.9.23"
android_sdk_compile = "34"
Expand Down
8 changes: 4 additions & 4 deletions ios-app/alkaa.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 30005;
CURRENT_PROJECT_VERSION = 30006;
DEVELOPMENT_ASSET_PATHS = "\"alkaa/Preview Content\"";
DEVELOPMENT_TEAM = 5Z3927U4ZC;
ENABLE_PREVIEWS = YES;
Expand All @@ -354,7 +354,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 3.0.5;
MARKETING_VERSION = 3.0.6;
OTHER_LDFLAGS = (
"$(inherited)",
"-framework",
Expand All @@ -377,7 +377,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 30005;
CURRENT_PROJECT_VERSION = 30006;
DEVELOPMENT_ASSET_PATHS = "\"alkaa/Preview Content\"";
DEVELOPMENT_TEAM = 5Z3927U4ZC;
ENABLE_PREVIEWS = YES;
Expand All @@ -396,7 +396,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 3.0.5;
MARKETING_VERSION = 3.0.6;
OTHER_LDFLAGS = (
"$(inherited)",
"-framework",
Expand Down
2 changes: 1 addition & 1 deletion libraries/splitInstall/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
public static **[] values();
public static ** valueOf(java.lang.String);
}
-dontwarn com.escodro.splitinstall.SplitInstallKt
-keep class com.escodro.splitinstall.** { *; }
7 changes: 7 additions & 0 deletions plugins/src/main/java/com.escodro.android-compose.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ android {
androidConfig(libs)
proguardConfig()
composeConfig(libs)

kotlinOptions {
jvmTarget = "11"
freeCompilerArgs = listOf(
"-Xstring-concat=inline"
)
}
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kotlin {
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions plugins/src/main/java/com.escodro.multiplatform.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ kotlin {
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
jvmTarget = "11"
}
}
}
Expand All @@ -28,4 +28,3 @@ android {
minSdk = Integer.parseInt(libs.sdkMin)
}
}

0 comments on commit c0a15a5

Please sign in to comment.