Skip to content

Commit e9269fd

Browse files
committed
fixup! Compose UI for Linux
1 parent 8b01930 commit e9269fd

File tree

9 files changed

+96
-0
lines changed

9 files changed

+96
-0
lines changed

Diff for: compose/material3/adaptive/adaptive-layout/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ androidXComposeMultiplatform {
4343
darwin()
4444
wasm()
4545
js()
46+
linux()
4647
}
4748

4849
kotlin {

Diff for: compose/material3/adaptive/adaptive-navigation/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ androidXComposeMultiplatform {
4343
darwin()
4444
wasm()
4545
js()
46+
linux()
4647
}
4748

4849
kotlin {

Diff for: compose/material3/adaptive/adaptive/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ androidXComposeMultiplatform {
4343
darwin()
4444
wasm()
4545
js()
46+
linux()
4647
}
4748

4849
kotlin {

Diff for: compose/material3/material3-adaptive-navigation-suite/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ androidXComposeMultiplatform {
4242
darwin()
4343
wasm()
4444
js()
45+
linux()
4546
}
4647

4748
kotlin {

Diff for: compose/material3/material3-common/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ androidXComposeMultiplatform {
3535
darwin()
3636
wasm()
3737
js()
38+
linux()
3839
}
3940

4041
kotlin {

Diff for: compose/material3/material3-window-size-class/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ androidXComposeMultiplatform {
3434
darwin()
3535
wasm()
3636
js()
37+
linux()
3738
}
3839

3940
kotlin {

Diff for: compose/material3/material3/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ if(AndroidXComposePlugin.isMultiplatformEnabled(project)) {
8787
darwin()
8888
wasm()
8989
js()
90+
linux()
9091
}
9192

9293
kotlin {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright 2023 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package androidx.compose.material3
18+
19+
import androidx.compose.runtime.Composable
20+
import androidx.compose.runtime.ReadOnlyComposable
21+
22+
23+
actual typealias CalendarLocale = Any // TODO
24+
25+
@Composable
26+
@ReadOnlyComposable
27+
internal actual fun defaultLocale(): CalendarLocale = TODO("not implemented")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* Copyright 2024 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package androidx.compose.material3.internal
18+
19+
import androidx.compose.material3.CalendarLocale
20+
21+
internal actual class PlatformDateFormat actual constructor(private val locale: CalendarLocale) {
22+
23+
actual val firstDayOfWeek: Int
24+
get() = TODO("not implemented")
25+
26+
actual fun formatWithPattern(
27+
utcTimeMillis: Long,
28+
pattern: String,
29+
): String {
30+
TODO("not implemented")
31+
}
32+
33+
actual fun formatWithSkeleton(
34+
utcTimeMillis: Long,
35+
skeleton: String,
36+
): String {
37+
TODO("not implemented")
38+
}
39+
40+
actual fun parse(
41+
date: String,
42+
pattern: String
43+
): CalendarDate? {
44+
TODO("not implemented")
45+
}
46+
47+
actual fun getDateInputFormat(): DateInputFormat {
48+
TODO("not implemented")
49+
}
50+
51+
actual val weekdayNames: List<Pair<String, String>> get() {
52+
TODO("not implemented")
53+
}
54+
55+
// See http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
56+
//
57+
// 'j' template requests the preferred hour format for the locale.
58+
// 'a' is a pattern for AM\PM symbol. Presence of this symbol means that locale has 12h format.
59+
actual fun is24HourFormat(): Boolean {
60+
TODO("not implemented")
61+
}
62+
}

0 commit comments

Comments
 (0)