diff --git a/app-android/build.gradle.kts b/app-android/build.gradle.kts index a2e46cc69..2139c4d6f 100644 --- a/app-android/build.gradle.kts +++ b/app-android/build.gradle.kts @@ -113,7 +113,6 @@ dependencies { implementation(libs.androidxBrowser) implementation(libs.androidxWindow) implementation(libs.kermit) - implementation(libs.androidxSplashScreen) implementation(libs.firebaseDynamicLinks) testImplementation(projects.core.testing) } diff --git a/app-android/src/main/AndroidManifest.xml b/app-android/src/main/AndroidManifest.xml index 5ea4d7c40..f32f01225 100644 --- a/app-android/src/main/AndroidManifest.xml +++ b/app-android/src/main/AndroidManifest.xml @@ -23,8 +23,7 @@ + android:exported="true"> diff --git a/app-android/src/main/java/io/github/droidkaigi/confsched2023/MainActivity.kt b/app-android/src/main/java/io/github/droidkaigi/confsched2023/MainActivity.kt index 83aff3ba3..6432485a2 100644 --- a/app-android/src/main/java/io/github/droidkaigi/confsched2023/MainActivity.kt +++ b/app-android/src/main/java/io/github/droidkaigi/confsched2023/MainActivity.kt @@ -15,7 +15,6 @@ import androidx.compose.runtime.produceState import androidx.compose.runtime.remember import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.toArgb -import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen import androidx.window.layout.DisplayFeature import androidx.window.layout.WindowInfoTracker import dagger.hilt.android.AndroidEntryPoint @@ -27,7 +26,6 @@ import kotlinx.collections.immutable.toPersistentList class MainActivity : ComponentActivity() { @OptIn(ExperimentalMaterial3WindowSizeClassApi::class) override fun onCreate(savedInstanceState: Bundle?) { - installSplashScreen() super.onCreate(savedInstanceState) // Navigation icon color can be changed since API 26(O) diff --git a/app-android/src/main/res/drawable-night-v31/splash_branding_image.xml b/app-android/src/main/res/drawable-night-v31/splash_branding_image.xml deleted file mode 100644 index 73e6cffb9..000000000 --- a/app-android/src/main/res/drawable-night-v31/splash_branding_image.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/app-android/src/main/res/drawable-night-v31/splash_icon.xml b/app-android/src/main/res/drawable-night-v31/splash_icon.xml deleted file mode 100644 index f6f5ea673..000000000 --- a/app-android/src/main/res/drawable-night-v31/splash_icon.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app-android/src/main/res/drawable-night/splash_icon.xml b/app-android/src/main/res/drawable-night/splash_icon.xml deleted file mode 100644 index d08fd4383..000000000 --- a/app-android/src/main/res/drawable-night/splash_icon.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - diff --git a/app-android/src/main/res/drawable-v31/splash_branding_image.xml b/app-android/src/main/res/drawable-v31/splash_branding_image.xml deleted file mode 100644 index 331bdf90a..000000000 --- a/app-android/src/main/res/drawable-v31/splash_branding_image.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/app-android/src/main/res/drawable-v31/splash_icon.xml b/app-android/src/main/res/drawable-v31/splash_icon.xml deleted file mode 100644 index f6f5ea673..000000000 --- a/app-android/src/main/res/drawable-v31/splash_icon.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app-android/src/main/res/drawable/splash_icon.xml b/app-android/src/main/res/drawable/splash_icon.xml deleted file mode 100644 index d08fd4383..000000000 --- a/app-android/src/main/res/drawable/splash_icon.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - diff --git a/app-android/src/main/res/values-night/splash_theme.xml b/app-android/src/main/res/values-night/splash_theme.xml deleted file mode 100644 index 503d3f9e3..000000000 --- a/app-android/src/main/res/values-night/splash_theme.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - diff --git a/app-android/src/main/res/values/splash_theme.xml b/app-android/src/main/res/values/splash_theme.xml deleted file mode 100644 index 280cf5162..000000000 --- a/app-android/src/main/res/values/splash_theme.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - diff --git a/app-ios/Modules/Sources/Assets/Resources/Strings/en.lproj/Localizable.strings b/app-ios/Modules/Sources/Assets/Resources/Strings/en.lproj/Localizable.strings index 9341cbbad..9e53d9ab3 100644 --- a/app-ios/Modules/Sources/Assets/Resources/Strings/en.lproj/Localizable.strings +++ b/app-ios/Modules/Sources/Assets/Resources/Strings/en.lproj/Localizable.strings @@ -32,3 +32,8 @@ "session.target_audience" = "Target Audience"; "session.add_to_calendar" = "Add to your calendar"; "session.cancel" = "Cancel"; + +"sponsor.title" = "Sponsors"; +"sponsor.platinum_sponsors" = "PLATINUM SPONSORS"; +"sponsor.gold_sponsors" = "GOLD SPONSORS"; +"sponsor.supporters" = "SUPPORTERS"; diff --git a/app-ios/Modules/Sources/Assets/Resources/Strings/ja.lproj/Localizable.strings b/app-ios/Modules/Sources/Assets/Resources/Strings/ja.lproj/Localizable.strings index 8617af707..7de1ad346 100644 --- a/app-ios/Modules/Sources/Assets/Resources/Strings/ja.lproj/Localizable.strings +++ b/app-ios/Modules/Sources/Assets/Resources/Strings/ja.lproj/Localizable.strings @@ -32,3 +32,8 @@ "session.target_audience" = "対象者"; "session.add_to_calendar" = "カレンダーに追加する"; "session.cancel" = "キャンセル"; + +"sponsor.title" = "Sponsors"; +"sponsor.platinum_sponsors" = "プラチナスポンサー"; +"sponsor.gold_sponsors" = "ゴールドスポンサー"; +"sponsor.supporters" = "サポーター"; diff --git a/app-ios/Modules/Sources/Navigation/RootView.swift b/app-ios/Modules/Sources/Navigation/RootView.swift index 5d399a101..d0cacf99d 100644 --- a/app-ios/Modules/Sources/Navigation/RootView.swift +++ b/app-ios/Modules/Sources/Navigation/RootView.swift @@ -57,7 +57,7 @@ public struct RootView: View { .tag(Tab.floorMap) .tabItem { Label { - Text("FloorMap") + Text("Floor Map") } icon: { if selection == .floorMap { Assets.Icons.floorMap.swiftUIImage diff --git a/app-ios/Modules/Sources/Sponsor/SponsorView.swift b/app-ios/Modules/Sources/Sponsor/SponsorView.swift index 9b24f468b..39bf85239 100644 --- a/app-ios/Modules/Sources/Sponsor/SponsorView.swift +++ b/app-ios/Modules/Sources/Sponsor/SponsorView.swift @@ -1,3 +1,4 @@ +import Assets import shared import SwiftUI import Theme @@ -22,7 +23,7 @@ public struct SponsorView: View { $0.ordinal < $1.ordinal }), id: \.self) { plan in SponsorGridView( - title: plan.name, + title: plan.title, sponsors: planGroupedSponsors[plan] ?? [], columns: plan.column ) { _ in } @@ -34,7 +35,7 @@ public struct SponsorView: View { EmptyView() } } - .navigationTitle("Sponsors") + .navigationTitle(L10n.Sponsor.title) .background(AssetColors.Surface.surface.swiftUIColor) } } @@ -56,4 +57,17 @@ private extension Plan { return 3 } } + + var title: String { + switch self { + case .platinum: + return L10n.Sponsor.platinumSponsors + case .gold: + return L10n.Sponsor.goldSponsors + case .supporter: + return L10n.Sponsor.supporters + default: + return "" + } + } } diff --git a/app-ios/Modules/Sources/Timetable/TimetableViewModel.swift b/app-ios/Modules/Sources/Timetable/TimetableViewModel.swift index 28b0fb9df..4f206ae45 100644 --- a/app-ios/Modules/Sources/Timetable/TimetableViewModel.swift +++ b/app-ios/Modules/Sources/Timetable/TimetableViewModel.swift @@ -68,14 +68,16 @@ final class TimetableViewModel: ObservableObject { $0.timetableItem.room.name.currentLangTitle < $1.timetableItem.room.name.currentLangTitle } return TimetableTimeGroupItems( - startsTimeString: item.startsTimeString, - endsTimeString: item.endsTimeString, + startsTimeString: items.first?.timetableItem.startsTimeString ?? "", + endsTimeString: items.first?.timetableItem.endsTimeString ?? "", items: items ) } + var seen: [TimetableTimeGroupItems: Bool] = [:] + let distinctedTimetableTimeGroupItems = timetableTimeGroupItems.filter { seen.updateValue(true, forKey: $0) == nil } state.loadedState = .loaded( .init( - timeGroupTimetableItems: timetableTimeGroupItems, + timeGroupTimetableItems: distinctedTimetableTimeGroupItems, bookmarks: cachedTimetable.bookmarks ) ) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index acfebcc5e..95b5d9aab 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -14,7 +14,6 @@ composeHiltNavigatiaon = "1.0.0" androidxLifecycle = "2.6.2" androidxActivity = "1.8.0-beta01" androidxFragment = "1.6.1" -androidxSplashScreen = "1.0.1" kotlinxCoroutines = "1.7.3" accompanist = "0.30.1" junit = "4.13.2" @@ -106,7 +105,6 @@ androidxActivityActivityCompose = { module = "androidx.activity:activity-compose androidxDatastoreDatastorePreferences = { module = "androidx.datastore:datastore-preferences-core", version = "1.1.0-alpha04" } androidxBrowser = { module = "androidx.browser:browser", version = "1.6.0" } androidxWindow = { module = "androidx.window:window", version = "1.1.0" } -androidxSplashScreen = { module = "androidx.core:core-splashscreen", version.ref = "androidxSplashScreen" } javaPoet = { module = "com.squareup:javapoet", version = "1.13.0" } # Data