From 8a35ada373cddc28b16fce1b3c62e8e40361ed75 Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Tue, 18 May 2021 14:05:40 +0200 Subject: [PATCH] Remove androidx copyrights that actually are irrelevant to the codebase ported --- .../commonMain/kotlin/withWeb/Alignment.kt | 15 --------- .../commonMain/kotlin/withWeb/Arrangement.kt | 17 +--------- .../src/commonMain/kotlin/withWeb/Color.kt | 17 +--------- .../commonMain/kotlin/withWeb/layouts/box.kt | 17 +--------- .../kotlin/withWeb/layouts/button.kt | 17 +--------- .../kotlin/withWeb/layouts/column.kt | 17 +--------- .../withWeb/layouts/defaults/BoxDefault.kt | 17 +--------- .../withWeb/layouts/defaults/ButtonDefault.kt | 17 +--------- .../withWeb/layouts/defaults/ColumnDefault.kt | 17 +--------- .../layouts/defaults/ModifierDefault.kt | 15 --------- .../withWeb/layouts/defaults/RowDefault.kt | 17 +--------- .../withWeb/layouts/defaults/SliderDefault.kt | 17 +--------- .../withWeb/layouts/defaults/TextDefault.kt | 17 +--------- .../commonMain/kotlin/withWeb/layouts/row.kt | 17 +--------- .../kotlin/withWeb/layouts/shapes/shapes.kt | 17 +--------- .../kotlin/withWeb/layouts/slider.kt | 15 --------- .../commonMain/kotlin/withWeb/layouts/text.kt | 17 +--------- .../kotlin/withWeb/modifiers/border.kt | 17 +--------- .../kotlin/withWeb/modifiers/clickable.kt | 17 +--------- .../kotlin/withWeb/modifiers/clip.kt | 17 +--------- .../kotlin/withWeb/modifiers/fillMaxHeight.kt | 17 +--------- .../kotlin/withWeb/modifiers/fillMaxWidth.kt | 17 +--------- .../kotlin/withWeb/modifiers/offset.kt | 17 +--------- .../kotlin/withWeb/modifiers/onSizeChanged.kt | 15 --------- .../kotlin/withWeb/modifiers/size.kt | 15 --------- .../kotlin/withWeb/modifiers/width.kt | 17 +--------- .../src/commonMain/kotlin/withWeb/units/Dp.kt | 17 +--------- .../kotlin/withWeb/units/IntSize.kt | 33 +------------------ .../kotlin/withWeb/units/TextUnit.kt | 17 +--------- .../kotlin/withWeb/units/unitConversion.kt | 16 --------- .../kotlin/androidx/compose/web/DomApplier.kt | 16 --------- .../compose/web/GlobalSnapshotManager.kt | 16 --------- .../compose/web/JsMicrotasksDispatcher.kt | 16 --------- .../androidx/compose/web/RenderComposable.kt | 16 --------- .../androidx/compose/web/attributes/Attrs.kt | 16 --------- .../compose/web/attributes/AttrsBuilder.kt | 16 --------- .../web/attributes/EventsListenerBuilder.kt | 16 --------- .../web/attributes/PredefinedAttrValues.kt | 16 --------- .../web/attributes/WrappedEventListener.kt | 16 --------- .../kotlin/androidx/compose/web/css/CSS.kt | 15 --------- .../androidx/compose/web/css/CSSBuilder.kt | 16 --------- .../androidx/compose/web/css/CSSHelpers.kt | 17 +--------- .../androidx/compose/web/css/CSSMediaRule.kt | 16 --------- .../androidx/compose/web/css/CSSPolyfill.kt | 15 --------- .../androidx/compose/web/css/CSSProperties.kt | 16 --------- .../androidx/compose/web/css/CSSRules.kt | 16 --------- .../androidx/compose/web/css/CSSUnits.kt | 15 --------- .../kotlin/androidx/compose/web/css/Color.kt | 16 --------- .../androidx/compose/web/css/StyleBuilder.kt | 16 --------- .../androidx/compose/web/css/StyleSheet.kt | 16 --------- .../compose/web/css/StyleSheetBuilder.kt | 16 --------- .../compose/web/css/selectors/CSSSelectors.kt | 16 --------- .../androidx/compose/web/elements/Base.kt | 16 --------- .../compose/web/elements/ElementScope.kt | 16 --------- .../androidx/compose/web/elements/Elements.kt | 16 --------- .../androidx/compose/web/elements/Style.kt | 16 --------- .../compose/web/events/WrappedEvent.kt | 16 --------- web/core/src/jsMain/kotlin/withWeb/Styles.kt | 17 +--------- .../kotlin/withWeb/internal/ActualModifier.kt | 17 +--------- .../src/jsMain/kotlin/withWeb/layouts/box.kt | 16 --------- .../jsMain/kotlin/withWeb/layouts/button.kt | 15 --------- .../jsMain/kotlin/withWeb/layouts/column.kt | 16 --------- .../src/jsMain/kotlin/withWeb/layouts/row.kt | 16 --------- .../jsMain/kotlin/withWeb/layouts/slider.kt | 17 +--------- .../src/jsMain/kotlin/withWeb/layouts/text.kt | 15 --------- .../jsMain/kotlin/withWeb/modifiers/border.kt | 17 +--------- .../kotlin/withWeb/modifiers/clickable.kt | 17 +--------- .../jsMain/kotlin/withWeb/modifiers/clip.kt | 17 +--------- .../kotlin/withWeb/modifiers/fillMaxHeight.kt | 17 +--------- .../kotlin/withWeb/modifiers/fillMaxWidth.kt | 17 +--------- .../jsMain/kotlin/withWeb/modifiers/offset.kt | 17 +--------- .../kotlin/withWeb/modifiers/onSizeChanged.kt | 15 --------- .../jsMain/kotlin/withWeb/modifiers/width.kt | 17 +--------- web/core/src/jsMain/resources/index.html | 18 +--------- .../src/jsTest/kotlin/DomSideEffectTests.kt | 16 --------- .../src/jsTest/kotlin/InlineStyleTests.kt | 16 --------- .../jsTest/kotlin/StaticComposableTests.kt | 16 --------- web/core/src/jsTest/kotlin/TestUtils.kt | 16 --------- .../jsTest/kotlin/commonApi/ModifierTests.kt | 16 --------- .../jsTest/kotlin/elements/AttributesTests.kt | 16 --------- .../src/jsTest/kotlin/elements/EventTests.kt | 16 --------- .../src/jsTest/kotlin/elements/TableTests.kt | 16 --------- .../src/jvmMain/kotlin/withWeb/Alignment.kt | 17 +--------- .../src/jvmMain/kotlin/withWeb/Arrangement.kt | 17 +--------- web/core/src/jvmMain/kotlin/withWeb/Color.kt | 17 +--------- .../src/jvmMain/kotlin/withWeb/Modifier.kt | 17 +--------- .../kotlin/withWeb/internal/ActualModifier.kt | 15 --------- .../src/jvmMain/kotlin/withWeb/layouts/box.kt | 16 --------- .../jvmMain/kotlin/withWeb/layouts/button.kt | 17 +--------- .../jvmMain/kotlin/withWeb/layouts/column.kt | 16 --------- .../src/jvmMain/kotlin/withWeb/layouts/row.kt | 16 --------- .../kotlin/withWeb/layouts/shapes/shapes.kt | 17 +--------- .../jvmMain/kotlin/withWeb/layouts/slider.kt | 15 --------- .../jvmMain/kotlin/withWeb/layouts/text.kt | 17 +--------- .../kotlin/withWeb/modifiers/border.kt | 17 +--------- .../kotlin/withWeb/modifiers/clickable.kt | 17 +--------- .../jvmMain/kotlin/withWeb/modifiers/clip.kt | 17 +--------- .../kotlin/withWeb/modifiers/fillMaxHeight.kt | 17 +--------- .../kotlin/withWeb/modifiers/fillMaxWidth.kt | 17 +--------- .../kotlin/withWeb/modifiers/offset.kt | 17 +--------- .../kotlin/withWeb/modifiers/onSizeChanged.kt | 17 +--------- .../jvmMain/kotlin/withWeb/modifiers/size.kt | 17 +--------- .../jvmMain/kotlin/withWeb/modifiers/width.kt | 17 +--------- .../src/jvmMain/kotlin/withWeb/units/Dp.kt | 16 --------- .../jvmMain/kotlin/withWeb/units/TextUnit.kt | 17 +--------- .../compose/web/sample/CodeSnippetSamples.kt | 16 --------- .../compose/web/sample/HighlightJs.kt | 16 --------- .../androidx/compose/web/sample/Sample.kt | 16 --------- .../compose/web/sample/tests/Common.kt | 16 --------- .../compose/web/sample/tests/InputsTests.kt | 16 --------- .../compose/web/sample/tests/TestCases1.kt | 16 --------- .../src/jsMain/resources/index.html | 18 +--------- .../web/tests/integration/InputsTests.kt | 16 --------- .../web/tests/integration/IntegrationTests.kt | 16 --------- .../common/BaseIntegrationTests.kt | 16 --------- .../integration/common/ServerLauncher.kt | 15 --------- .../common/StaticServerSetupExtension.kt | 15 --------- .../integration/common/WithChromeDriver.kt | 17 +--------- 118 files changed, 55 insertions(+), 1891 deletions(-) diff --git a/web/core/src/commonMain/kotlin/withWeb/Alignment.kt b/web/core/src/commonMain/kotlin/withWeb/Alignment.kt index 3d09595bfc..0f3c8e6e5c 100644 --- a/web/core/src/commonMain/kotlin/withWeb/Alignment.kt +++ b/web/core/src/commonMain/kotlin/withWeb/Alignment.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui interface Alignment { diff --git a/web/core/src/commonMain/kotlin/withWeb/Arrangement.kt b/web/core/src/commonMain/kotlin/withWeb/Arrangement.kt index 5cd3f3dd29..23006c8f9b 100644 --- a/web/core/src/commonMain/kotlin/withWeb/Arrangement.kt +++ b/web/core/src/commonMain/kotlin/withWeb/Arrangement.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout object Arrangement { @@ -23,4 +8,4 @@ object Arrangement { val Start = object : Horizontal {} val Top = object : Vertical {} val Bottom = object : Vertical {} -} \ No newline at end of file +} diff --git a/web/core/src/commonMain/kotlin/withWeb/Color.kt b/web/core/src/commonMain/kotlin/withWeb/Color.kt index e3f1cd35fa..d38d7903ab 100644 --- a/web/core/src/commonMain/kotlin/withWeb/Color.kt +++ b/web/core/src/commonMain/kotlin/withWeb/Color.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.core.graphics public data class Color(val red: Int, val green: Int, val blue: Int) { @@ -30,4 +15,4 @@ public data class Color(val red: Int, val green: Int, val blue: Int) { val Cyan = Color(0, 0xFF, 0xFF) val Magenta = Color(0xFF, 0, 0xFF) } -} \ No newline at end of file +} diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/box.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/box.kt index 99521ab598..2424d291af 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/box.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/box.kt @@ -1,22 +1,7 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier import androidx.compose.runtime.Composable @Composable -internal expect fun BoxActual(modifier: Modifier, content: @Composable () -> Unit) \ No newline at end of file +internal expect fun BoxActual(modifier: Modifier, content: @Composable () -> Unit) diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/button.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/button.kt index e151f9ff2a..6e64a0c8c7 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/button.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/button.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.material import org.jetbrains.compose.common.ui.Modifier @@ -23,4 +8,4 @@ expect fun ButtonActual( modifier: Modifier, onClick: () -> Unit, content: @Composable () -> Unit -) \ No newline at end of file +) diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/column.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/column.kt index 858c537682..28c1aef387 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/column.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/column.kt @@ -1,22 +1,7 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier import androidx.compose.runtime.Composable @Composable -internal expect fun ColumnActual(modifier: Modifier, content: @Composable () -> Unit) \ No newline at end of file +internal expect fun ColumnActual(modifier: Modifier, content: @Composable () -> Unit) diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/BoxDefault.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/BoxDefault.kt index 88547ef3a0..be8b9750dd 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/BoxDefault.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/BoxDefault.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier @@ -22,4 +7,4 @@ import androidx.compose.runtime.Composable fun Box( modifier: Modifier = Modifier.Companion, content: @Composable () -> Unit -) { BoxActual(modifier, content) } \ No newline at end of file +) { BoxActual(modifier, content) } diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ButtonDefault.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ButtonDefault.kt index a670fe566d..6aded72c67 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ButtonDefault.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ButtonDefault.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.material import org.jetbrains.compose.common.ui.Modifier @@ -25,4 +10,4 @@ fun Button( content: @Composable () -> Unit ) { ButtonActual(modifier, onClick, content) -} \ No newline at end of file +} diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ColumnDefault.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ColumnDefault.kt index c276a4617e..109a6c68fe 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ColumnDefault.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ColumnDefault.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier @@ -22,4 +7,4 @@ import androidx.compose.runtime.Composable fun Column( modifier: Modifier = Modifier.Companion, content: @Composable () -> Unit -) { ColumnActual(modifier, content) } \ No newline at end of file +) { ColumnActual(modifier, content) } diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ModifierDefault.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ModifierDefault.kt index 17bc7e9488..66889da156 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ModifierDefault.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/ModifierDefault.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui import org.jetbrains.compose.common.ui.unit.Dp diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/RowDefault.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/RowDefault.kt index e40f6c7151..a3c6d0cd5b 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/RowDefault.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/RowDefault.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier @@ -25,4 +10,4 @@ fun Row( horizontalArrangement: Arrangement.Horizontal = Arrangement.Start, verticalAlignment: Alignment.Vertical = Alignment.Top, content: @Composable () -> Unit -) { RowActual(modifier, horizontalArrangement, verticalAlignment, content) } \ No newline at end of file +) { RowActual(modifier, horizontalArrangement, verticalAlignment, content) } diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/SliderDefault.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/SliderDefault.kt index 2c95ad631f..02d8192e1e 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/SliderDefault.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/SliderDefault.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.material import androidx.compose.runtime.Composable @@ -33,4 +18,4 @@ fun Slider( steps, modifier ) -} \ No newline at end of file +} diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/TextDefault.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/TextDefault.kt index ced44fa373..23d606d418 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/TextDefault.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/defaults/TextDefault.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.material import androidx.compose.runtime.Composable @@ -28,4 +13,4 @@ fun Text( size: TextUnit = TextUnit.Unspecified ) { TextActual(text, modifier, color, size) -} \ No newline at end of file +} diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/row.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/row.kt index df57c7f504..566629095a 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/row.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/row.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier @@ -25,4 +10,4 @@ internal expect fun RowActual( horizontalArrangement: Arrangement.Horizontal, verticalAlignment: Alignment.Vertical, content: @Composable () -> Unit -) \ No newline at end of file +) diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/shapes/shapes.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/shapes/shapes.kt index 5f2628c102..9cb983c06a 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/shapes/shapes.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/shapes/shapes.kt @@ -1,20 +1,5 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package jetbrains.compose.common.shapes interface Shape -object CircleShape : Shape \ No newline at end of file +object CircleShape : Shape diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/slider.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/slider.kt index b6099cf42a..83b0e0a8e8 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/slider.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/slider.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.material import androidx.compose.runtime.Composable diff --git a/web/core/src/commonMain/kotlin/withWeb/layouts/text.kt b/web/core/src/commonMain/kotlin/withWeb/layouts/text.kt index 610462d00e..8a99efd06a 100644 --- a/web/core/src/commonMain/kotlin/withWeb/layouts/text.kt +++ b/web/core/src/commonMain/kotlin/withWeb/layouts/text.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.material import androidx.compose.runtime.Composable @@ -26,4 +11,4 @@ expect fun TextActual( modifier: Modifier, color: Color, size: TextUnit -) \ No newline at end of file +) diff --git a/web/core/src/commonMain/kotlin/withWeb/modifiers/border.kt b/web/core/src/commonMain/kotlin/withWeb/modifiers/border.kt index 1981237349..19ef2cd9c7 100644 --- a/web/core/src/commonMain/kotlin/withWeb/modifiers/border.kt +++ b/web/core/src/commonMain/kotlin/withWeb/modifiers/border.kt @@ -1,22 +1,7 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation import org.jetbrains.compose.common.ui.unit.Dp import org.jetbrains.compose.common.core.graphics.Color import org.jetbrains.compose.common.ui.Modifier -expect fun Modifier.border(size: Dp, color: Color): Modifier \ No newline at end of file +expect fun Modifier.border(size: Dp, color: Color): Modifier diff --git a/web/core/src/commonMain/kotlin/withWeb/modifiers/clickable.kt b/web/core/src/commonMain/kotlin/withWeb/modifiers/clickable.kt index 3ef2e722d1..fe6144c8ac 100644 --- a/web/core/src/commonMain/kotlin/withWeb/modifiers/clickable.kt +++ b/web/core/src/commonMain/kotlin/withWeb/modifiers/clickable.kt @@ -1,20 +1,5 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation import org.jetbrains.compose.common.ui.Modifier -expect fun Modifier.clickable(onClick: () -> Unit): Modifier \ No newline at end of file +expect fun Modifier.clickable(onClick: () -> Unit): Modifier diff --git a/web/core/src/commonMain/kotlin/withWeb/modifiers/clip.kt b/web/core/src/commonMain/kotlin/withWeb/modifiers/clip.kt index c2f01e1ceb..ff9ff67a2e 100644 --- a/web/core/src/commonMain/kotlin/withWeb/modifiers/clip.kt +++ b/web/core/src/commonMain/kotlin/withWeb/modifiers/clip.kt @@ -1,21 +1,6 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui.draw import org.jetbrains.compose.common.ui.Modifier import jetbrains.compose.common.shapes.Shape -expect fun Modifier.clip(shape: Shape): Modifier \ No newline at end of file +expect fun Modifier.clip(shape: Shape): Modifier diff --git a/web/core/src/commonMain/kotlin/withWeb/modifiers/fillMaxHeight.kt b/web/core/src/commonMain/kotlin/withWeb/modifiers/fillMaxHeight.kt index fb73c77094..b2181cedd8 100644 --- a/web/core/src/commonMain/kotlin/withWeb/modifiers/fillMaxHeight.kt +++ b/web/core/src/commonMain/kotlin/withWeb/modifiers/fillMaxHeight.kt @@ -1,20 +1,5 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier -expect fun Modifier.fillMaxHeight(fraction: Float): Modifier \ No newline at end of file +expect fun Modifier.fillMaxHeight(fraction: Float): Modifier diff --git a/web/core/src/commonMain/kotlin/withWeb/modifiers/fillMaxWidth.kt b/web/core/src/commonMain/kotlin/withWeb/modifiers/fillMaxWidth.kt index f3bfc93856..895492258f 100644 --- a/web/core/src/commonMain/kotlin/withWeb/modifiers/fillMaxWidth.kt +++ b/web/core/src/commonMain/kotlin/withWeb/modifiers/fillMaxWidth.kt @@ -1,20 +1,5 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier -expect fun Modifier.fillMaxWidth(): Modifier \ No newline at end of file +expect fun Modifier.fillMaxWidth(): Modifier diff --git a/web/core/src/commonMain/kotlin/withWeb/modifiers/offset.kt b/web/core/src/commonMain/kotlin/withWeb/modifiers/offset.kt index b4e41d86c4..2a4f4c4c91 100644 --- a/web/core/src/commonMain/kotlin/withWeb/modifiers/offset.kt +++ b/web/core/src/commonMain/kotlin/withWeb/modifiers/offset.kt @@ -1,21 +1,6 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.unit.Dp import org.jetbrains.compose.common.ui.Modifier -expect fun Modifier.offset(x: Dp, y: Dp): Modifier \ No newline at end of file +expect fun Modifier.offset(x: Dp, y: Dp): Modifier diff --git a/web/core/src/commonMain/kotlin/withWeb/modifiers/onSizeChanged.kt b/web/core/src/commonMain/kotlin/withWeb/modifiers/onSizeChanged.kt index 7585647adb..74e98bc2c2 100644 --- a/web/core/src/commonMain/kotlin/withWeb/modifiers/onSizeChanged.kt +++ b/web/core/src/commonMain/kotlin/withWeb/modifiers/onSizeChanged.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui.layout import org.jetbrains.compose.common.ui.Modifier diff --git a/web/core/src/commonMain/kotlin/withWeb/modifiers/size.kt b/web/core/src/commonMain/kotlin/withWeb/modifiers/size.kt index afcacc7a95..43ee3a9910 100644 --- a/web/core/src/commonMain/kotlin/withWeb/modifiers/size.kt +++ b/web/core/src/commonMain/kotlin/withWeb/modifiers/size.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui import org.jetbrains.compose.common.ui.unit.Dp diff --git a/web/core/src/commonMain/kotlin/withWeb/modifiers/width.kt b/web/core/src/commonMain/kotlin/withWeb/modifiers/width.kt index 4e3b37d00c..8d4f5a1e22 100644 --- a/web/core/src/commonMain/kotlin/withWeb/modifiers/width.kt +++ b/web/core/src/commonMain/kotlin/withWeb/modifiers/width.kt @@ -1,21 +1,6 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.unit.Dp import org.jetbrains.compose.common.ui.Modifier -expect fun Modifier.width(size: Dp): Modifier \ No newline at end of file +expect fun Modifier.width(size: Dp): Modifier diff --git a/web/core/src/commonMain/kotlin/withWeb/units/Dp.kt b/web/core/src/commonMain/kotlin/withWeb/units/Dp.kt index 866f59570a..86146bccf5 100644 --- a/web/core/src/commonMain/kotlin/withWeb/units/Dp.kt +++ b/web/core/src/commonMain/kotlin/withWeb/units/Dp.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui.unit -data class Dp(val value: Float) \ No newline at end of file +data class Dp(val value: Float) diff --git a/web/core/src/commonMain/kotlin/withWeb/units/IntSize.kt b/web/core/src/commonMain/kotlin/withWeb/units/IntSize.kt index 591ed5ccac..5099359574 100644 --- a/web/core/src/commonMain/kotlin/withWeb/units/IntSize.kt +++ b/web/core/src/commonMain/kotlin/withWeb/units/IntSize.kt @@ -1,34 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui.unit -data class IntSize(val width: Int, val height: Int) \ No newline at end of file +data class IntSize(val width: Int, val height: Int) diff --git a/web/core/src/commonMain/kotlin/withWeb/units/TextUnit.kt b/web/core/src/commonMain/kotlin/withWeb/units/TextUnit.kt index 21cef590b6..a5610ce4d8 100644 --- a/web/core/src/commonMain/kotlin/withWeb/units/TextUnit.kt +++ b/web/core/src/commonMain/kotlin/withWeb/units/TextUnit.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui.unit enum class TextUnitType { @@ -25,4 +10,4 @@ data class TextUnit(val value: Float, val unitType: TextUnitType) { companion object { val Unspecified = TextUnit(Float.NaN, TextUnitType.Unspecified) } -} \ No newline at end of file +} diff --git a/web/core/src/commonMain/kotlin/withWeb/units/unitConversion.kt b/web/core/src/commonMain/kotlin/withWeb/units/unitConversion.kt index 64ced71291..50a44d06c8 100644 --- a/web/core/src/commonMain/kotlin/withWeb/units/unitConversion.kt +++ b/web/core/src/commonMain/kotlin/withWeb/units/unitConversion.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.jetbrains.compose.common.ui.unit // TODO: this have to be in a separate package otherwise there's an error for in cross-module usage (for JVM target) diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/DomApplier.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/DomApplier.kt index 8f4f584ee0..f38900a12a 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/DomApplier.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/DomApplier.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web import androidx.compose.runtime.AbstractApplier diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/GlobalSnapshotManager.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/GlobalSnapshotManager.kt index fac4ad1d48..200ad62e6b 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/GlobalSnapshotManager.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/GlobalSnapshotManager.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web import androidx.compose.runtime.snapshots.ObserverHandle diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/JsMicrotasksDispatcher.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/JsMicrotasksDispatcher.kt index 0699bef555..b399e95776 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/JsMicrotasksDispatcher.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/JsMicrotasksDispatcher.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web import kotlinx.coroutines.CoroutineDispatcher diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/RenderComposable.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/RenderComposable.kt index dbd3d0ad72..44c60053e6 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/RenderComposable.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/RenderComposable.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web import androidx.compose.runtime.Composable diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/Attrs.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/Attrs.kt index b1d0d72539..d00e350d6e 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/Attrs.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/Attrs.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.attributes import org.w3c.dom.HTMLInputElement diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/AttrsBuilder.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/AttrsBuilder.kt index ff8842b401..f224ee1900 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/AttrsBuilder.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/AttrsBuilder.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.attributes import androidx.compose.runtime.DisposableEffectResult diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/EventsListenerBuilder.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/EventsListenerBuilder.kt index 892f21792e..4c0a13e874 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/EventsListenerBuilder.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/EventsListenerBuilder.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.attributes import androidx.compose.web.events.WrappedCheckBoxInputEvent diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/PredefinedAttrValues.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/PredefinedAttrValues.kt index 28b611c85b..80f6398620 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/PredefinedAttrValues.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/PredefinedAttrValues.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.attributes sealed class InputType(val typeStr: String) { diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/WrappedEventListener.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/WrappedEventListener.kt index 1e8d9c8cfe..772ab8ab72 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/WrappedEventListener.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/WrappedEventListener.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.attributes import androidx.compose.web.events.GenericWrappedEvent diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt index 01e2b6a73d..6351412531 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSS.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ @file:Suppress("UNUSED") package androidx.compose.web.css diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSBuilder.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSBuilder.kt index 643e7c934c..be1e4e8301 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSBuilder.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSBuilder.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.css import androidx.compose.web.css.selectors.CSSSelector diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSHelpers.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSHelpers.kt index a10e0ac2bd..ae0e26210d 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSHelpers.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSHelpers.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ @file:Suppress("UNUSED") package androidx.compose.web.css @@ -40,4 +25,4 @@ enum class Direction { override fun toString(): String = this.name } -typealias LanguageCode = String \ No newline at end of file +typealias LanguageCode = String diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSMediaRule.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSMediaRule.kt index c7fd14588e..4b7382a96c 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSMediaRule.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSMediaRule.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.css interface CSSMediaQuery { diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSPolyfill.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSPolyfill.kt index 815988e1e5..7e008a0ca3 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSPolyfill.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSPolyfill.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package androidx.compose.web.css import org.w3c.dom.Window diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSProperties.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSProperties.kt index ded557dc0c..4f07b5487d 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSProperties.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSProperties.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.css fun StyleBuilder.opacity(value: Number) { diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSRules.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSRules.kt index 4b7d068541..6aea4c7a0d 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSRules.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSRules.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.css import androidx.compose.web.css.selectors.CSSSelector diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSUnits.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSUnits.kt index 055f662ec7..ee551f7636 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSUnits.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/CSSUnits.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ @file:Suppress("UNUSED") package androidx.compose.web.css diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/Color.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/Color.kt index 2286f3e501..9487766988 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/Color.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/Color.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.css abstract class Color : CustomStyleValue { diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleBuilder.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleBuilder.kt index 2e6c79070c..82c88d8675 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleBuilder.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleBuilder.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.css import kotlin.properties.ReadOnlyProperty diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleSheet.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleSheet.kt index 08d35b4f38..c702b71c98 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleSheet.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleSheet.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.css import androidx.compose.runtime.Composable diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleSheetBuilder.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleSheetBuilder.kt index 46ad42cb51..840170ffc4 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleSheetBuilder.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/StyleSheetBuilder.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.css import androidx.compose.web.css.selectors.CSSSelector diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/css/selectors/CSSSelectors.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/css/selectors/CSSSelectors.kt index 509c06b83e..f98cc4def0 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/css/selectors/CSSSelectors.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/css/selectors/CSSSelectors.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.css.selectors import androidx.compose.web.css.LanguageCode diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt index 7911d3b5fd..d70b514bde 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.elements import androidx.compose.runtime.Applier diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/elements/ElementScope.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/elements/ElementScope.kt index 97be76cb84..b3dac921ac 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/elements/ElementScope.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/elements/ElementScope.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.elements import androidx.compose.runtime.Composable diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Elements.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Elements.kt index 72c355fa85..c6b5a2f33c 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Elements.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Elements.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.elements import androidx.compose.runtime.Composable diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Style.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Style.kt index f312f08a4a..4aa640255f 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Style.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Style.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.elements import androidx.compose.runtime.Composable diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/events/WrappedEvent.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/events/WrappedEvent.kt index 6da19b8bab..3b6dbc36ec 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/events/WrappedEvent.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/events/WrappedEvent.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.events import org.w3c.dom.DragEvent diff --git a/web/core/src/jsMain/kotlin/withWeb/Styles.kt b/web/core/src/jsMain/kotlin/withWeb/Styles.kt index 5651e556d2..efd89d12ec 100644 --- a/web/core/src/jsMain/kotlin/withWeb/Styles.kt +++ b/web/core/src/jsMain/kotlin/withWeb/Styles.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.web.ui import androidx.compose.web.css.justifyContent @@ -60,4 +45,4 @@ object Styles : StyleSheet() { val composeWebAlignmentVerticalBottom by style { alignItems(AlignItems.FlexEnd) } -} \ No newline at end of file +} diff --git a/web/core/src/jsMain/kotlin/withWeb/internal/ActualModifier.kt b/web/core/src/jsMain/kotlin/withWeb/internal/ActualModifier.kt index 4c97d61ccb..d4b0a3f2d2 100644 --- a/web/core/src/jsMain/kotlin/withWeb/internal/ActualModifier.kt +++ b/web/core/src/jsMain/kotlin/withWeb/internal/ActualModifier.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.internal import org.jetbrains.compose.common.ui.Modifier @@ -32,4 +17,4 @@ class ActualModifier : Modifier { } } -fun Modifier.castOrCreate(): ActualModifier = (this as? ActualModifier) ?: ActualModifier() \ No newline at end of file +fun Modifier.castOrCreate(): ActualModifier = (this as? ActualModifier) ?: ActualModifier() diff --git a/web/core/src/jsMain/kotlin/withWeb/layouts/box.kt b/web/core/src/jsMain/kotlin/withWeb/layouts/box.kt index f4418b4df8..141f318424 100644 --- a/web/core/src/jsMain/kotlin/withWeb/layouts/box.kt +++ b/web/core/src/jsMain/kotlin/withWeb/layouts/box.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier diff --git a/web/core/src/jsMain/kotlin/withWeb/layouts/button.kt b/web/core/src/jsMain/kotlin/withWeb/layouts/button.kt index 5a569120a7..90d36377c3 100644 --- a/web/core/src/jsMain/kotlin/withWeb/layouts/button.kt +++ b/web/core/src/jsMain/kotlin/withWeb/layouts/button.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.material import org.jetbrains.compose.common.ui.Modifier diff --git a/web/core/src/jsMain/kotlin/withWeb/layouts/column.kt b/web/core/src/jsMain/kotlin/withWeb/layouts/column.kt index ba87cb7978..3f47920b24 100644 --- a/web/core/src/jsMain/kotlin/withWeb/layouts/column.kt +++ b/web/core/src/jsMain/kotlin/withWeb/layouts/column.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier diff --git a/web/core/src/jsMain/kotlin/withWeb/layouts/row.kt b/web/core/src/jsMain/kotlin/withWeb/layouts/row.kt index 10a94a7ff9..818f1f7587 100644 --- a/web/core/src/jsMain/kotlin/withWeb/layouts/row.kt +++ b/web/core/src/jsMain/kotlin/withWeb/layouts/row.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier diff --git a/web/core/src/jsMain/kotlin/withWeb/layouts/slider.kt b/web/core/src/jsMain/kotlin/withWeb/layouts/slider.kt index 2fecc271f5..13bce48f83 100644 --- a/web/core/src/jsMain/kotlin/withWeb/layouts/slider.kt +++ b/web/core/src/jsMain/kotlin/withWeb/layouts/slider.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.material import androidx.compose.runtime.Composable @@ -44,4 +29,4 @@ actual fun SliderActual( } } ) {} -} \ No newline at end of file +} diff --git a/web/core/src/jsMain/kotlin/withWeb/layouts/text.kt b/web/core/src/jsMain/kotlin/withWeb/layouts/text.kt index 47242e47cd..4b414324ff 100644 --- a/web/core/src/jsMain/kotlin/withWeb/layouts/text.kt +++ b/web/core/src/jsMain/kotlin/withWeb/layouts/text.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.material import androidx.compose.runtime.Composable diff --git a/web/core/src/jsMain/kotlin/withWeb/modifiers/border.kt b/web/core/src/jsMain/kotlin/withWeb/modifiers/border.kt index f30d152057..40bd55a978 100644 --- a/web/core/src/jsMain/kotlin/withWeb/modifiers/border.kt +++ b/web/core/src/jsMain/kotlin/withWeb/modifiers/border.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation import org.jetbrains.compose.common.ui.unit.Dp @@ -28,4 +13,4 @@ actual fun Modifier.border(size: Dp, color: Color): Modifier = castOrCreate().ap add { border(size.value.px, LineStyle.Solid, RGB(color.red, color.green, color.blue)) } -} \ No newline at end of file +} diff --git a/web/core/src/jsMain/kotlin/withWeb/modifiers/clickable.kt b/web/core/src/jsMain/kotlin/withWeb/modifiers/clickable.kt index 439961f537..b415dc958a 100644 --- a/web/core/src/jsMain/kotlin/withWeb/modifiers/clickable.kt +++ b/web/core/src/jsMain/kotlin/withWeb/modifiers/clickable.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation import org.jetbrains.compose.common.ui.Modifier @@ -22,4 +7,4 @@ actual fun Modifier.clickable(onClick: () -> Unit): Modifier = castOrCreate().ap addAttributeBuilder { onClick { onClick() } } -} \ No newline at end of file +} diff --git a/web/core/src/jsMain/kotlin/withWeb/modifiers/clip.kt b/web/core/src/jsMain/kotlin/withWeb/modifiers/clip.kt index 27f1fcb2eb..90e457001c 100644 --- a/web/core/src/jsMain/kotlin/withWeb/modifiers/clip.kt +++ b/web/core/src/jsMain/kotlin/withWeb/modifiers/clip.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui.draw import org.jetbrains.compose.common.ui.Modifier @@ -28,4 +13,4 @@ actual fun Modifier.clip(shape: Shape): Modifier = castOrCreate().apply { borderRadius(50.percent) } } -} \ No newline at end of file +} diff --git a/web/core/src/jsMain/kotlin/withWeb/modifiers/fillMaxHeight.kt b/web/core/src/jsMain/kotlin/withWeb/modifiers/fillMaxHeight.kt index f4aeb11de5..f8edf56a49 100644 --- a/web/core/src/jsMain/kotlin/withWeb/modifiers/fillMaxHeight.kt +++ b/web/core/src/jsMain/kotlin/withWeb/modifiers/fillMaxHeight.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier @@ -24,4 +9,4 @@ actual fun Modifier.fillMaxHeight(fraction: Float): Modifier = castOrCreate().ap add { height((100 * fraction).percent) } -} \ No newline at end of file +} diff --git a/web/core/src/jsMain/kotlin/withWeb/modifiers/fillMaxWidth.kt b/web/core/src/jsMain/kotlin/withWeb/modifiers/fillMaxWidth.kt index 0e77661111..8309e121b3 100644 --- a/web/core/src/jsMain/kotlin/withWeb/modifiers/fillMaxWidth.kt +++ b/web/core/src/jsMain/kotlin/withWeb/modifiers/fillMaxWidth.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier @@ -24,4 +9,4 @@ actual fun Modifier.fillMaxWidth(): Modifier = castOrCreate().apply { add { width(100.percent) } -} \ No newline at end of file +} diff --git a/web/core/src/jsMain/kotlin/withWeb/modifiers/offset.kt b/web/core/src/jsMain/kotlin/withWeb/modifiers/offset.kt index 789fd34a66..307f116f86 100644 --- a/web/core/src/jsMain/kotlin/withWeb/modifiers/offset.kt +++ b/web/core/src/jsMain/kotlin/withWeb/modifiers/offset.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.unit.Dp @@ -27,4 +12,4 @@ actual fun Modifier.offset(x: Dp, y: Dp): Modifier = castOrCreate().apply { marginLeft(x.value.px) marginTop(y.value.px) } -} \ No newline at end of file +} diff --git a/web/core/src/jsMain/kotlin/withWeb/modifiers/onSizeChanged.kt b/web/core/src/jsMain/kotlin/withWeb/modifiers/onSizeChanged.kt index e3afa312aa..3803ed0770 100644 --- a/web/core/src/jsMain/kotlin/withWeb/modifiers/onSizeChanged.kt +++ b/web/core/src/jsMain/kotlin/withWeb/modifiers/onSizeChanged.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui.layout import org.jetbrains.compose.common.ui.Modifier diff --git a/web/core/src/jsMain/kotlin/withWeb/modifiers/width.kt b/web/core/src/jsMain/kotlin/withWeb/modifiers/width.kt index b2418ec703..752961d365 100644 --- a/web/core/src/jsMain/kotlin/withWeb/modifiers/width.kt +++ b/web/core/src/jsMain/kotlin/withWeb/modifiers/width.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.unit.Dp @@ -25,4 +10,4 @@ actual fun Modifier.width(size: Dp): Modifier = castOrCreate().apply { add { width(size.value.px) } -} \ No newline at end of file +} diff --git a/web/core/src/jsMain/resources/index.html b/web/core/src/jsMain/resources/index.html index a57301f51a..4b1f8d7910 100644 --- a/web/core/src/jsMain/resources/index.html +++ b/web/core/src/jsMain/resources/index.html @@ -1,19 +1,3 @@ - - @@ -25,4 +9,4 @@
- \ No newline at end of file + diff --git a/web/core/src/jsTest/kotlin/DomSideEffectTests.kt b/web/core/src/jsTest/kotlin/DomSideEffectTests.kt index 2da0c38d94..68c8ef6f5f 100644 --- a/web/core/src/jsTest/kotlin/DomSideEffectTests.kt +++ b/web/core/src/jsTest/kotlin/DomSideEffectTests.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf diff --git a/web/core/src/jsTest/kotlin/InlineStyleTests.kt b/web/core/src/jsTest/kotlin/InlineStyleTests.kt index e33dc63ef6..a7758cd831 100644 --- a/web/core/src/jsTest/kotlin/InlineStyleTests.kt +++ b/web/core/src/jsTest/kotlin/InlineStyleTests.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.getValue import androidx.compose.runtime.setValue diff --git a/web/core/src/jsTest/kotlin/StaticComposableTests.kt b/web/core/src/jsTest/kotlin/StaticComposableTests.kt index 0712ffa0f8..17240286bc 100644 --- a/web/core/src/jsTest/kotlin/StaticComposableTests.kt +++ b/web/core/src/jsTest/kotlin/StaticComposableTests.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - import androidx.compose.web.css.AlignContent import androidx.compose.web.css.AlignItems import androidx.compose.web.css.AlignSelf diff --git a/web/core/src/jsTest/kotlin/TestUtils.kt b/web/core/src/jsTest/kotlin/TestUtils.kt index 5dd7764fa7..05190fa58d 100644 --- a/web/core/src/jsTest/kotlin/TestUtils.kt +++ b/web/core/src/jsTest/kotlin/TestUtils.kt @@ -12,22 +12,6 @@ import org.w3c.dom.MutationObserverInit import kotlin.coroutines.resume import kotlin.coroutines.suspendCoroutine -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - private val testScope = MainScope() class TestScope : CoroutineScope by testScope { diff --git a/web/core/src/jsTest/kotlin/commonApi/ModifierTests.kt b/web/core/src/jsTest/kotlin/commonApi/ModifierTests.kt index 487cfe1880..e5f7827729 100644 --- a/web/core/src/jsTest/kotlin/commonApi/ModifierTests.kt +++ b/web/core/src/jsTest/kotlin/commonApi/ModifierTests.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - import androidx.compose.web.renderComposable import org.jetbrains.compose.common.core.graphics.Color import org.jetbrains.compose.common.foundation.layout.Box diff --git a/web/core/src/jsTest/kotlin/elements/AttributesTests.kt b/web/core/src/jsTest/kotlin/elements/AttributesTests.kt index e348af731b..1a5f4708e9 100644 --- a/web/core/src/jsTest/kotlin/elements/AttributesTests.kt +++ b/web/core/src/jsTest/kotlin/elements/AttributesTests.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package elements import androidx.compose.runtime.mutableStateOf diff --git a/web/core/src/jsTest/kotlin/elements/EventTests.kt b/web/core/src/jsTest/kotlin/elements/EventTests.kt index ccfb744554..dbf108d4cb 100644 --- a/web/core/src/jsTest/kotlin/elements/EventTests.kt +++ b/web/core/src/jsTest/kotlin/elements/EventTests.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package elements import androidx.compose.web.attributes.InputType diff --git a/web/core/src/jsTest/kotlin/elements/TableTests.kt b/web/core/src/jsTest/kotlin/elements/TableTests.kt index ddb29b513f..6ccfae47f6 100644 --- a/web/core/src/jsTest/kotlin/elements/TableTests.kt +++ b/web/core/src/jsTest/kotlin/elements/TableTests.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package elements import androidx.compose.web.attributes.Scope diff --git a/web/core/src/jvmMain/kotlin/withWeb/Alignment.kt b/web/core/src/jvmMain/kotlin/withWeb/Alignment.kt index e8afead8d8..69aed3bca9 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/Alignment.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/Alignment.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui import androidx.compose.ui.Alignment as JAlignment @@ -22,4 +7,4 @@ val Alignment.Vertical.implementation: JAlignment.Vertical Alignment.Top -> JAlignment.Top Alignment.CenterVertically -> JAlignment.CenterVertically else -> JAlignment.Bottom - } \ No newline at end of file + } diff --git a/web/core/src/jvmMain/kotlin/withWeb/Arrangement.kt b/web/core/src/jvmMain/kotlin/withWeb/Arrangement.kt index a06f83bf6c..823be7b5ba 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/Arrangement.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/Arrangement.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import androidx.compose.foundation.layout.Arrangement as JArrangement @@ -21,4 +6,4 @@ val Arrangement.Horizontal.implementation: JArrangement.Horizontal get() = when (this) { Arrangement.End -> JArrangement.End else -> JArrangement.Start - } \ No newline at end of file + } diff --git a/web/core/src/jvmMain/kotlin/withWeb/Color.kt b/web/core/src/jvmMain/kotlin/withWeb/Color.kt index 65de8a4934..064a379c88 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/Color.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/Color.kt @@ -1,21 +1,6 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.core.graphics import androidx.compose.ui.graphics.Color as JColor val Color.implementation - get() = JColor(red, green, blue) \ No newline at end of file + get() = JColor(red, green, blue) diff --git a/web/core/src/jvmMain/kotlin/withWeb/Modifier.kt b/web/core/src/jvmMain/kotlin/withWeb/Modifier.kt index d94e89e4fc..cb5ee2ff6c 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/Modifier.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/Modifier.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui import org.jetbrains.compose.common.ui.unit.Dp @@ -32,4 +17,4 @@ actual fun Modifier.padding(all: Dp): Modifier = castOrCreate().apply { } val Modifier.implementation - get() = castOrCreate().modifier \ No newline at end of file + get() = castOrCreate().modifier diff --git a/web/core/src/jvmMain/kotlin/withWeb/internal/ActualModifier.kt b/web/core/src/jvmMain/kotlin/withWeb/internal/ActualModifier.kt index 21cd875062..854a7daf5a 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/internal/ActualModifier.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/internal/ActualModifier.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.internal import androidx.compose.ui.Modifier as JModifier diff --git a/web/core/src/jvmMain/kotlin/withWeb/layouts/box.kt b/web/core/src/jvmMain/kotlin/withWeb/layouts/box.kt index f20a355b06..aba1b9b74c 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/layouts/box.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/layouts/box.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier diff --git a/web/core/src/jvmMain/kotlin/withWeb/layouts/button.kt b/web/core/src/jvmMain/kotlin/withWeb/layouts/button.kt index c4e73d11fd..9c177d87bb 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/layouts/button.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/layouts/button.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.material import org.jetbrains.compose.common.ui.Modifier @@ -29,4 +14,4 @@ actual fun ButtonActual( JButton(onClick, modifier.implementation) { content() } -} \ No newline at end of file +} diff --git a/web/core/src/jvmMain/kotlin/withWeb/layouts/column.kt b/web/core/src/jvmMain/kotlin/withWeb/layouts/column.kt index 66c3cf48ab..7438ccb4ee 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/layouts/column.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/layouts/column.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier diff --git a/web/core/src/jvmMain/kotlin/withWeb/layouts/row.kt b/web/core/src/jvmMain/kotlin/withWeb/layouts/row.kt index d1bdc485a2..6975fe281f 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/layouts/row.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/layouts/row.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier diff --git a/web/core/src/jvmMain/kotlin/withWeb/layouts/shapes/shapes.kt b/web/core/src/jvmMain/kotlin/withWeb/layouts/shapes/shapes.kt index 6a758945a0..1c165edeb1 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/layouts/shapes/shapes.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/layouts/shapes/shapes.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package jetbrains.compose.common.shapes import androidx.compose.ui.graphics.Shape as JShape @@ -22,4 +7,4 @@ val Shape.implementation: JShape get() = when (this) { CircleShape -> JCircleShape else -> throw ClassCastException("Currently supporting only circle shape") - } \ No newline at end of file + } diff --git a/web/core/src/jvmMain/kotlin/withWeb/layouts/slider.kt b/web/core/src/jvmMain/kotlin/withWeb/layouts/slider.kt index b089aa8469..e8566af74c 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/layouts/slider.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/layouts/slider.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.material import androidx.compose.runtime.Composable diff --git a/web/core/src/jvmMain/kotlin/withWeb/layouts/text.kt b/web/core/src/jvmMain/kotlin/withWeb/layouts/text.kt index 3aae9a4a10..5fb5ef03a6 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/layouts/text.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/layouts/text.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.material import androidx.compose.runtime.Composable @@ -37,4 +22,4 @@ actual fun TextActual( color = color.implementation, fontSize = size.implementation ) -} \ No newline at end of file +} diff --git a/web/core/src/jvmMain/kotlin/withWeb/modifiers/border.kt b/web/core/src/jvmMain/kotlin/withWeb/modifiers/border.kt index 2bef0c598a..cba0b81959 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/modifiers/border.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/modifiers/border.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation import org.jetbrains.compose.common.ui.unit.Dp @@ -25,4 +10,4 @@ import androidx.compose.foundation.border actual fun Modifier.border(size: Dp, color: Color): Modifier = castOrCreate().apply { modifier = modifier.border(size.implementation, color.implementation) -} \ No newline at end of file +} diff --git a/web/core/src/jvmMain/kotlin/withWeb/modifiers/clickable.kt b/web/core/src/jvmMain/kotlin/withWeb/modifiers/clickable.kt index 9cbf667c43..aa5cc78293 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/modifiers/clickable.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/modifiers/clickable.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation import org.jetbrains.compose.common.ui.Modifier @@ -21,4 +6,4 @@ import androidx.compose.foundation.clickable actual fun Modifier.clickable(onClick: () -> Unit): Modifier = castOrCreate().apply { modifier = modifier.clickable(onClick = onClick) -} \ No newline at end of file +} diff --git a/web/core/src/jvmMain/kotlin/withWeb/modifiers/clip.kt b/web/core/src/jvmMain/kotlin/withWeb/modifiers/clip.kt index a267fc6446..cbcad05e65 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/modifiers/clip.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/modifiers/clip.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui.draw import org.jetbrains.compose.common.ui.Modifier @@ -23,4 +8,4 @@ import androidx.compose.ui.draw.clip actual fun Modifier.clip(shape: Shape): Modifier = castOrCreate().apply { modifier = modifier.clip(shape.implementation) -} \ No newline at end of file +} diff --git a/web/core/src/jvmMain/kotlin/withWeb/modifiers/fillMaxHeight.kt b/web/core/src/jvmMain/kotlin/withWeb/modifiers/fillMaxHeight.kt index 4e3ed4a3c3..e0d3b2c92b 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/modifiers/fillMaxHeight.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/modifiers/fillMaxHeight.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier @@ -21,4 +6,4 @@ import androidx.compose.foundation.layout.fillMaxHeight actual fun Modifier.fillMaxHeight(fraction: Float): Modifier = castOrCreate().apply { modifier = modifier.fillMaxHeight(fraction) -} \ No newline at end of file +} diff --git a/web/core/src/jvmMain/kotlin/withWeb/modifiers/fillMaxWidth.kt b/web/core/src/jvmMain/kotlin/withWeb/modifiers/fillMaxWidth.kt index 6429577969..644ee8ef4e 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/modifiers/fillMaxWidth.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/modifiers/fillMaxWidth.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.Modifier @@ -21,4 +6,4 @@ import androidx.compose.foundation.layout.fillMaxWidth actual fun Modifier.fillMaxWidth(): Modifier = castOrCreate().apply { modifier = modifier.fillMaxWidth() -} \ No newline at end of file +} diff --git a/web/core/src/jvmMain/kotlin/withWeb/modifiers/offset.kt b/web/core/src/jvmMain/kotlin/withWeb/modifiers/offset.kt index da7f0f0bdf..f66fff6c39 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/modifiers/offset.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/modifiers/offset.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.unit.Dp @@ -23,4 +8,4 @@ import org.jetbrains.compose.common.ui.unit.implementation actual fun Modifier.offset(x: Dp, y: Dp): Modifier = castOrCreate().apply { modifier = modifier.offset(x.implementation, y.implementation) -} \ No newline at end of file +} diff --git a/web/core/src/jvmMain/kotlin/withWeb/modifiers/onSizeChanged.kt b/web/core/src/jvmMain/kotlin/withWeb/modifiers/onSizeChanged.kt index 53e3689909..a2f4b248ba 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/modifiers/onSizeChanged.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/modifiers/onSizeChanged.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui.layout import org.jetbrains.compose.common.ui.Modifier @@ -26,4 +11,4 @@ actual fun Modifier.onSizeChanged( modifier = modifier.onSizeChanged { onSizeChanged(IntSize(it.width, it.height)) } -} \ No newline at end of file +} diff --git a/web/core/src/jvmMain/kotlin/withWeb/modifiers/size.kt b/web/core/src/jvmMain/kotlin/withWeb/modifiers/size.kt index c642aad3ba..7bda262a05 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/modifiers/size.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/modifiers/size.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui import org.jetbrains.compose.common.ui.unit.Dp @@ -23,4 +8,4 @@ import org.jetbrains.compose.common.internal.castOrCreate actual fun Modifier.size(width: Dp, height: Dp): Modifier = castOrCreate().apply { modifier = modifier.size(width.implementation, height.implementation) -} \ No newline at end of file +} diff --git a/web/core/src/jvmMain/kotlin/withWeb/modifiers/width.kt b/web/core/src/jvmMain/kotlin/withWeb/modifiers/width.kt index 980d89e507..a843a08e9c 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/modifiers/width.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/modifiers/width.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.foundation.layout import org.jetbrains.compose.common.ui.unit.Dp @@ -23,4 +8,4 @@ import org.jetbrains.compose.common.ui.unit.implementation actual fun Modifier.width(size: Dp): Modifier = castOrCreate().apply { modifier = modifier.width(size.implementation) -} \ No newline at end of file +} diff --git a/web/core/src/jvmMain/kotlin/withWeb/units/Dp.kt b/web/core/src/jvmMain/kotlin/withWeb/units/Dp.kt index cce7e5e769..5fdfbbc4e2 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/units/Dp.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/units/Dp.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.jetbrains.compose.common.ui.unit import androidx.compose.ui.unit.Dp as JDp diff --git a/web/core/src/jvmMain/kotlin/withWeb/units/TextUnit.kt b/web/core/src/jvmMain/kotlin/withWeb/units/TextUnit.kt index e2ba837df4..d7c4e9695d 100644 --- a/web/core/src/jvmMain/kotlin/withWeb/units/TextUnit.kt +++ b/web/core/src/jvmMain/kotlin/withWeb/units/TextUnit.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.common.ui.unit import androidx.compose.ui.unit.TextUnit as JTextUnit @@ -24,4 +9,4 @@ val TextUnit.implementation: JTextUnit TextUnitType.Em -> (value).em TextUnitType.Sp -> (value).sp else -> JTextUnit.Unspecified - } \ No newline at end of file + } diff --git a/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/CodeSnippetSamples.kt b/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/CodeSnippetSamples.kt index c2f89acb83..9aa86e10f0 100644 --- a/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/CodeSnippetSamples.kt +++ b/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/CodeSnippetSamples.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.sample import androidx.compose.runtime.Composable diff --git a/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/HighlightJs.kt b/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/HighlightJs.kt index cb78fa1fd9..59e0a98acd 100644 --- a/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/HighlightJs.kt +++ b/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/HighlightJs.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.sample import org.w3c.dom.HTMLElement diff --git a/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/Sample.kt b/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/Sample.kt index e051f8ec21..0b747bed66 100644 --- a/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/Sample.kt +++ b/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/Sample.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.sample import androidx.compose.runtime.Composable diff --git a/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/tests/Common.kt b/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/tests/Common.kt index b385fee482..1b38fb3350 100644 --- a/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/tests/Common.kt +++ b/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/tests/Common.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.sample.tests import androidx.compose.runtime.Composable diff --git a/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/tests/InputsTests.kt b/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/tests/InputsTests.kt index 21ef51921e..700c502daf 100644 --- a/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/tests/InputsTests.kt +++ b/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/tests/InputsTests.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.sample.tests import androidx.compose.runtime.getValue diff --git a/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/tests/TestCases1.kt b/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/tests/TestCases1.kt index 7687fff125..7cece8d428 100644 --- a/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/tests/TestCases1.kt +++ b/web/integration/src/jsMain/kotlin/androidx/compose/web/sample/tests/TestCases1.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package androidx.compose.web.sample.tests import androidx.compose.runtime.getValue diff --git a/web/integration/src/jsMain/resources/index.html b/web/integration/src/jsMain/resources/index.html index 5461f7e1c9..98563fc87a 100644 --- a/web/integration/src/jsMain/resources/index.html +++ b/web/integration/src/jsMain/resources/index.html @@ -1,19 +1,3 @@ - - @@ -24,4 +8,4 @@ - \ No newline at end of file + diff --git a/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/InputsTests.kt b/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/InputsTests.kt index ab88413ed3..be41156d27 100644 --- a/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/InputsTests.kt +++ b/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/InputsTests.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.jetbrains.compose.web.tests.integration import org.jetbrains.compose.web.tests.integration.common.BaseIntegrationTests diff --git a/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/IntegrationTests.kt b/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/IntegrationTests.kt index d09116523b..99640f1536 100644 --- a/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/IntegrationTests.kt +++ b/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/IntegrationTests.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.jetbrains.compose.web.tests.integration import org.jetbrains.compose.web.tests.integration.common.BaseIntegrationTests diff --git a/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/BaseIntegrationTests.kt b/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/BaseIntegrationTests.kt index f9a109fdd8..54e7adef70 100644 --- a/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/BaseIntegrationTests.kt +++ b/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/BaseIntegrationTests.kt @@ -1,19 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package org.jetbrains.compose.web.tests.integration.common import org.junit.jupiter.api.extension.ExtendWith diff --git a/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/ServerLauncher.kt b/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/ServerLauncher.kt index 7758ae2230..a560fe1c23 100644 --- a/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/ServerLauncher.kt +++ b/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/ServerLauncher.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.web.tests.integration.common import io.ktor.http.content.default diff --git a/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/StaticServerSetupExtension.kt b/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/StaticServerSetupExtension.kt index 5de3cfe369..b2e595229f 100644 --- a/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/StaticServerSetupExtension.kt +++ b/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/StaticServerSetupExtension.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.web.tests.integration.common import org.junit.jupiter.api.extension.BeforeAllCallback diff --git a/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/WithChromeDriver.kt b/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/WithChromeDriver.kt index 45e56be181..af345ca50c 100644 --- a/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/WithChromeDriver.kt +++ b/web/integration/src/jvmTest/kotlin/org/jetbrains/compose/web/tests/integration/common/WithChromeDriver.kt @@ -1,18 +1,3 @@ -/* - * Copyright 2021 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package org.jetbrains.compose.web.tests.integration.common import org.openqa.selenium.remote.RemoteWebDriver @@ -32,4 +17,4 @@ fun WithChromeDriver.openTestPage(test: String) { fun WithChromeDriver.waitTextToBe(textId: String = "txt", value: String) { WebDriverWait(driver, 1).until(ExpectedConditions.textToBe(By.id(textId), value)) -} \ No newline at end of file +}