From b0468367628f63416ff61dd8b9fa7a4763d4bcdc Mon Sep 17 00:00:00 2001 From: DongHoon Yoo Date: Thu, 22 May 2025 23:25:39 +0900 Subject: [PATCH] Remove redundant license comment header --- .../androidify/navigation/ListSaver.kt | 16 ---------------- .../androidify/navigation/MainNavigation.kt | 15 --------------- .../androidify/navigation/NavigationRoutes.kt | 15 --------------- .../androidify/RemoteConfigDataSource.kt | 15 --------------- .../developers/androidify/di/NetworkModule.kt | 15 --------------- .../androidify/vertexai/FirebaseAiDataSource.kt | 16 ---------------- .../developers/androidify/theme/Motion.kt | 15 --------------- .../androidify/theme/SharedElementsConfig.kt | 15 --------------- .../androidify/theme/components/Backgrounds.kt | 15 --------------- .../androidify/util/AdaptivePreview.kt | 16 ---------------- .../developers/androidify/util/AnimationUtils.kt | 15 --------------- .../developers/androidify/util/GraphicsUtils.kt | 15 --------------- .../developers/androidify/util/LayoutUtils.kt | 16 ---------------- .../androidify/util/LocalFileProvider.kt | 15 --------------- .../developers/androidify/data/DataModule.kt | 16 ---------------- .../developers/androidify/data/Exceptions.kt | 15 --------------- .../data/GeminiNanoGenerationDataSource.kt | 16 ---------------- .../androidify/data/ImageGenerationRepository.kt | 15 --------------- .../androidify/creation/AndroidBotColorPicker.kt | 16 ---------------- .../androidify/creation/CreationViewModel.kt | 15 --------------- .../androidify/creation/LoadingScreen.kt | 15 --------------- .../developers/androidify/home/HomeViewModel.kt | 15 --------------- .../androidify/results/ResultsScreen.kt | 15 --------------- .../androidify/results/ResultsViewModel.kt | 15 --------------- .../developers/androidify/results/ShareAction.kt | 16 ---------------- 25 files changed, 383 deletions(-) diff --git a/app/src/main/java/com/android/developers/androidify/navigation/ListSaver.kt b/app/src/main/java/com/android/developers/androidify/navigation/ListSaver.kt index 751ca0da..9f194de5 100644 --- a/app/src/main/java/com/android/developers/androidify/navigation/ListSaver.kt +++ b/app/src/main/java/com/android/developers/androidify/navigation/ListSaver.kt @@ -34,22 +34,6 @@ import kotlinx.serialization.encoding.decodeStructure import kotlinx.serialization.encoding.encodeStructure import kotlinx.serialization.serializer -/* -* Copyright 2025 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. -*/ - @Composable fun rememberMutableStateListOf(vararg elements: T): SnapshotStateList { return rememberSaveable(saver = snapshotStateListSaver(serializableListSaver())) { diff --git a/app/src/main/java/com/android/developers/androidify/navigation/MainNavigation.kt b/app/src/main/java/com/android/developers/androidify/navigation/MainNavigation.kt index 1bc07ed7..d14c48aa 100644 --- a/app/src/main/java/com/android/developers/androidify/navigation/MainNavigation.kt +++ b/app/src/main/java/com/android/developers/androidify/navigation/MainNavigation.kt @@ -45,21 +45,6 @@ import com.android.developers.androidify.home.AboutScreen import com.android.developers.androidify.home.HomeScreen import com.android.developers.androidify.theme.transitions.ColorSplashTransitionScreen -/* -* Copyright 2025 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. -*/ @ExperimentalMaterial3ExpressiveApi @Composable fun MainNavigation() { diff --git a/app/src/main/java/com/android/developers/androidify/navigation/NavigationRoutes.kt b/app/src/main/java/com/android/developers/androidify/navigation/NavigationRoutes.kt index 71fce12c..0025a7fc 100644 --- a/app/src/main/java/com/android/developers/androidify/navigation/NavigationRoutes.kt +++ b/app/src/main/java/com/android/developers/androidify/navigation/NavigationRoutes.kt @@ -20,21 +20,6 @@ package com.android.developers.androidify.navigation import kotlinx.serialization.ExperimentalSerializationApi import kotlinx.serialization.Serializable -/* -* Copyright 2025 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. -*/ interface NavigationRoute @Serializable diff --git a/core/network/src/main/java/com/android/developers/androidify/RemoteConfigDataSource.kt b/core/network/src/main/java/com/android/developers/androidify/RemoteConfigDataSource.kt index f28901e6..7c9f502c 100644 --- a/core/network/src/main/java/com/android/developers/androidify/RemoteConfigDataSource.kt +++ b/core/network/src/main/java/com/android/developers/androidify/RemoteConfigDataSource.kt @@ -20,21 +20,6 @@ import com.google.firebase.remoteconfig.remoteConfig import javax.inject.Inject import javax.inject.Singleton -/* -* Copyright 2025 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. -*/ interface RemoteConfigDataSource { fun isAppInactive(): Boolean fun textModelName(): String diff --git a/core/network/src/main/java/com/android/developers/androidify/di/NetworkModule.kt b/core/network/src/main/java/com/android/developers/androidify/di/NetworkModule.kt index 4e705ad1..1777cd07 100644 --- a/core/network/src/main/java/com/android/developers/androidify/di/NetworkModule.kt +++ b/core/network/src/main/java/com/android/developers/androidify/di/NetworkModule.kt @@ -37,21 +37,6 @@ import java.util.concurrent.TimeUnit import javax.inject.Inject import javax.inject.Singleton -/* -* Copyright 2025 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. -*/ @Module @InstallIn(SingletonComponent::class) internal class NetworkModule @Inject constructor() { diff --git a/core/network/src/main/java/com/android/developers/androidify/vertexai/FirebaseAiDataSource.kt b/core/network/src/main/java/com/android/developers/androidify/vertexai/FirebaseAiDataSource.kt index 24e079d7..63349c5b 100644 --- a/core/network/src/main/java/com/android/developers/androidify/vertexai/FirebaseAiDataSource.kt +++ b/core/network/src/main/java/com/android/developers/androidify/vertexai/FirebaseAiDataSource.kt @@ -44,22 +44,6 @@ import kotlinx.serialization.json.jsonPrimitive import javax.inject.Inject import javax.inject.Singleton -/* -* Copyright 2025 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. -*/ - interface FirebaseAiDataSource { suspend fun validatePromptHasEnoughInformation(inputPrompt: String): ValidatedDescription suspend fun validateImageHasEnoughInformation(image: Bitmap): ValidatedImage diff --git a/core/theme/src/main/java/com/android/developers/androidify/theme/Motion.kt b/core/theme/src/main/java/com/android/developers/androidify/theme/Motion.kt index 1286e474..fca653ce 100644 --- a/core/theme/src/main/java/com/android/developers/androidify/theme/Motion.kt +++ b/core/theme/src/main/java/com/android/developers/androidify/theme/Motion.kt @@ -23,21 +23,6 @@ import androidx.compose.material3.MotionScheme import androidx.compose.runtime.Composable import androidx.compose.ui.geometry.Rect -/* -* Copyright 2022 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. -*/ @OptIn( ExperimentalMaterial3ExpressiveApi::class, ExperimentalSharedTransitionApi::class, diff --git a/core/theme/src/main/java/com/android/developers/androidify/theme/SharedElementsConfig.kt b/core/theme/src/main/java/com/android/developers/androidify/theme/SharedElementsConfig.kt index 2e37b2e6..5d249476 100644 --- a/core/theme/src/main/java/com/android/developers/androidify/theme/SharedElementsConfig.kt +++ b/core/theme/src/main/java/com/android/developers/androidify/theme/SharedElementsConfig.kt @@ -66,21 +66,6 @@ import androidx.navigation3.ui.LocalNavAnimatedContentScope import com.android.developers.androidify.util.skipToLookaheadPlacement import kotlin.math.max -/* -* Copyright 2025 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. -*/ sealed interface SharedElementKey { object CameraButtonToFullScreenCamera : SharedElementKey object CaptureImageToDetails : SharedElementKey diff --git a/core/theme/src/main/java/com/android/developers/androidify/theme/components/Backgrounds.kt b/core/theme/src/main/java/com/android/developers/androidify/theme/components/Backgrounds.kt index 5169398b..525ffe43 100644 --- a/core/theme/src/main/java/com/android/developers/androidify/theme/components/Backgrounds.kt +++ b/core/theme/src/main/java/com/android/developers/androidify/theme/components/Backgrounds.kt @@ -46,21 +46,6 @@ import com.android.developers.androidify.util.backgroundRepeatX import com.android.developers.androidify.util.dpToPx import com.android.developers.androidify.util.isAtLeastMedium -/* -* Copyright 2025 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. -*/ @Composable fun SquiggleBackground( modifier: Modifier = Modifier, diff --git a/core/util/src/main/java/com/android/developers/androidify/util/AdaptivePreview.kt b/core/util/src/main/java/com/android/developers/androidify/util/AdaptivePreview.kt index 65af69e4..63e7626f 100644 --- a/core/util/src/main/java/com/android/developers/androidify/util/AdaptivePreview.kt +++ b/core/util/src/main/java/com/android/developers/androidify/util/AdaptivePreview.kt @@ -22,22 +22,6 @@ import androidx.compose.ui.tooling.preview.Devices.PIXEL_FOLD import androidx.compose.ui.tooling.preview.Devices.PIXEL_TABLET import androidx.compose.ui.tooling.preview.Preview -/* -* Copyright 2025 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. -*/ - @Preview(device = PIXEL_7_PRO, name = "Phone preview") annotation class PhonePreview diff --git a/core/util/src/main/java/com/android/developers/androidify/util/AnimationUtils.kt b/core/util/src/main/java/com/android/developers/androidify/util/AnimationUtils.kt index 1cb9ebe7..3da21172 100644 --- a/core/util/src/main/java/com/android/developers/androidify/util/AnimationUtils.kt +++ b/core/util/src/main/java/com/android/developers/androidify/util/AnimationUtils.kt @@ -31,21 +31,6 @@ import kotlinx.coroutines.delay import java.text.BreakIterator import java.text.StringCharacterIterator -/* -* Copyright 2025 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. -*/ /** * Skips to the end size for a particular composable, skipping through the intermediate animated sizes. * Similar to skipToLookaheadSize, but for placement instead. diff --git a/core/util/src/main/java/com/android/developers/androidify/util/GraphicsUtils.kt b/core/util/src/main/java/com/android/developers/androidify/util/GraphicsUtils.kt index 7a467043..d3c36b7c 100644 --- a/core/util/src/main/java/com/android/developers/androidify/util/GraphicsUtils.kt +++ b/core/util/src/main/java/com/android/developers/androidify/util/GraphicsUtils.kt @@ -36,21 +36,6 @@ import androidx.compose.ui.unit.dp import androidx.core.graphics.PathSegment import androidx.core.graphics.flatten -/* -* Copyright 2025 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. -*/ @Composable fun Dp.dpToPx() = with(LocalDensity.current) { this@dpToPx.toPx() } diff --git a/core/util/src/main/java/com/android/developers/androidify/util/LayoutUtils.kt b/core/util/src/main/java/com/android/developers/androidify/util/LayoutUtils.kt index c88a5c0a..d2e830f5 100644 --- a/core/util/src/main/java/com/android/developers/androidify/util/LayoutUtils.kt +++ b/core/util/src/main/java/com/android/developers/androidify/util/LayoutUtils.kt @@ -15,22 +15,6 @@ */ package com.android.developers.androidify.util -/* -* Copyright 2025 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 android.annotation.SuppressLint import androidx.compose.runtime.Composable import androidx.compose.runtime.DisposableEffect diff --git a/core/util/src/main/java/com/android/developers/androidify/util/LocalFileProvider.kt b/core/util/src/main/java/com/android/developers/androidify/util/LocalFileProvider.kt index 140e0843..52952061 100644 --- a/core/util/src/main/java/com/android/developers/androidify/util/LocalFileProvider.kt +++ b/core/util/src/main/java/com/android/developers/androidify/util/LocalFileProvider.kt @@ -31,21 +31,6 @@ import java.util.UUID import javax.inject.Inject import javax.inject.Singleton -/* -* Copyright 2025 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. -*/ interface LocalFileProvider { fun saveBitmapToFile(bitmap: Bitmap, file: File): File fun getFileFromCache(fileName: String): File diff --git a/data/src/main/java/com/android/developers/androidify/data/DataModule.kt b/data/src/main/java/com/android/developers/androidify/data/DataModule.kt index 988ec01b..ac5c211f 100644 --- a/data/src/main/java/com/android/developers/androidify/data/DataModule.kt +++ b/data/src/main/java/com/android/developers/androidify/data/DataModule.kt @@ -32,22 +32,6 @@ import kotlinx.coroutines.Dispatchers import javax.inject.Named import javax.inject.Singleton -/* -* Copyright 2025 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. -*/ - @Module @InstallIn(SingletonComponent::class) internal object DataModule { diff --git a/data/src/main/java/com/android/developers/androidify/data/Exceptions.kt b/data/src/main/java/com/android/developers/androidify/data/Exceptions.kt index 1412cada..bbf00ee2 100644 --- a/data/src/main/java/com/android/developers/androidify/data/Exceptions.kt +++ b/data/src/main/java/com/android/developers/androidify/data/Exceptions.kt @@ -17,21 +17,6 @@ package com.android.developers.androidify.data import com.android.developers.androidify.model.ImageValidationError as ModelImageValidationError -/* -* Copyright 2025 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. -*/ class InsufficientInformationException(errorMessage: String? = null) : Exception(errorMessage) class ImageValidationException(val imageValidationError: ImageValidationError? = null) : Exception(imageValidationError.toString()) diff --git a/data/src/main/java/com/android/developers/androidify/data/GeminiNanoGenerationDataSource.kt b/data/src/main/java/com/android/developers/androidify/data/GeminiNanoGenerationDataSource.kt index 5ec7dcc7..a8385ea0 100644 --- a/data/src/main/java/com/android/developers/androidify/data/GeminiNanoGenerationDataSource.kt +++ b/data/src/main/java/com/android/developers/androidify/data/GeminiNanoGenerationDataSource.kt @@ -19,22 +19,6 @@ import android.util.Log import javax.inject.Inject import javax.inject.Singleton -/* -* Copyright 2025 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. -*/ - interface GeminiNanoGenerationDataSource { suspend fun initialize() suspend fun generatePrompt(prompt: String): String? diff --git a/data/src/main/java/com/android/developers/androidify/data/ImageGenerationRepository.kt b/data/src/main/java/com/android/developers/androidify/data/ImageGenerationRepository.kt index f635550c..93211388 100644 --- a/data/src/main/java/com/android/developers/androidify/data/ImageGenerationRepository.kt +++ b/data/src/main/java/com/android/developers/androidify/data/ImageGenerationRepository.kt @@ -29,21 +29,6 @@ import java.util.UUID import javax.inject.Inject import javax.inject.Singleton -/* -* Copyright 2025 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. -*/ interface ImageGenerationRepository { suspend fun initialize() suspend fun generateFromDescription(description: String, skinTone: String): Bitmap diff --git a/feature/creation/src/main/java/com/android/developers/androidify/creation/AndroidBotColorPicker.kt b/feature/creation/src/main/java/com/android/developers/androidify/creation/AndroidBotColorPicker.kt index c229d517..599a5ba0 100644 --- a/feature/creation/src/main/java/com/android/developers/androidify/creation/AndroidBotColorPicker.kt +++ b/feature/creation/src/main/java/com/android/developers/androidify/creation/AndroidBotColorPicker.kt @@ -54,22 +54,6 @@ import androidx.compose.ui.semantics.semantics import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp -/* -* Copyright 2025 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. -*/ - @Composable fun AndroidBotColorPicker( selectedBotColor: BotColor, diff --git a/feature/creation/src/main/java/com/android/developers/androidify/creation/CreationViewModel.kt b/feature/creation/src/main/java/com/android/developers/androidify/creation/CreationViewModel.kt index 960ea03e..eb36fcea 100644 --- a/feature/creation/src/main/java/com/android/developers/androidify/creation/CreationViewModel.kt +++ b/feature/creation/src/main/java/com/android/developers/androidify/creation/CreationViewModel.kt @@ -45,21 +45,6 @@ import kotlinx.coroutines.launch import javax.inject.Inject import javax.inject.Named -/* -* Copyright 2025 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. -*/ @HiltViewModel class CreationViewModel @Inject constructor( val internetConnectivityManager: InternetConnectivityManager, diff --git a/feature/creation/src/main/java/com/android/developers/androidify/creation/LoadingScreen.kt b/feature/creation/src/main/java/com/android/developers/androidify/creation/LoadingScreen.kt index 563a5877..3dde0509 100644 --- a/feature/creation/src/main/java/com/android/developers/androidify/creation/LoadingScreen.kt +++ b/feature/creation/src/main/java/com/android/developers/androidify/creation/LoadingScreen.kt @@ -80,21 +80,6 @@ import kotlinx.coroutines.delay import kotlin.math.roundToInt import com.android.developers.androidify.creation.R as CreationR -/* -* Copyright 2025 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. -*/ @Composable fun LoadingScreen( onCancelPress: () -> Unit, diff --git a/feature/home/src/main/java/com/android/developers/androidify/home/HomeViewModel.kt b/feature/home/src/main/java/com/android/developers/androidify/home/HomeViewModel.kt index 1b744f7d..1077dbdf 100644 --- a/feature/home/src/main/java/com/android/developers/androidify/home/HomeViewModel.kt +++ b/feature/home/src/main/java/com/android/developers/androidify/home/HomeViewModel.kt @@ -24,21 +24,6 @@ import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutines.launch import javax.inject.Inject -/* -* Copyright 2025 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. -*/ @HiltViewModel class HomeViewModel @Inject constructor(val configProvider: ConfigProvider) : ViewModel() { private val _state = MutableStateFlow(HomeState()) diff --git a/feature/results/src/main/java/com/android/developers/androidify/results/ResultsScreen.kt b/feature/results/src/main/java/com/android/developers/androidify/results/ResultsScreen.kt index a1b1c6cf..24d3cff2 100644 --- a/feature/results/src/main/java/com/android/developers/androidify/results/ResultsScreen.kt +++ b/feature/results/src/main/java/com/android/developers/androidify/results/ResultsScreen.kt @@ -82,21 +82,6 @@ import com.google.accompanist.permissions.isGranted import com.google.accompanist.permissions.rememberPermissionState import com.google.accompanist.permissions.shouldShowRationale -/* -* Copyright 2025 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. -*/ @Composable fun ResultsScreen( resultImage: Bitmap, diff --git a/feature/results/src/main/java/com/android/developers/androidify/results/ResultsViewModel.kt b/feature/results/src/main/java/com/android/developers/androidify/results/ResultsViewModel.kt index 21c0ff92..82b02a01 100644 --- a/feature/results/src/main/java/com/android/developers/androidify/results/ResultsViewModel.kt +++ b/feature/results/src/main/java/com/android/developers/androidify/results/ResultsViewModel.kt @@ -32,21 +32,6 @@ import kotlinx.coroutines.launch import javax.inject.Inject import javax.inject.Named -/* -* Copyright 2025 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. -*/ @HiltViewModel class ResultsViewModel @Inject constructor( val imageGenerationRepository: ImageGenerationRepository, diff --git a/feature/results/src/main/java/com/android/developers/androidify/results/ShareAction.kt b/feature/results/src/main/java/com/android/developers/androidify/results/ShareAction.kt index 6c778781..7f42b32d 100644 --- a/feature/results/src/main/java/com/android/developers/androidify/results/ShareAction.kt +++ b/feature/results/src/main/java/com/android/developers/androidify/results/ShareAction.kt @@ -19,22 +19,6 @@ import android.content.Context import android.net.Uri import androidx.core.app.ShareCompat -/* -* Copyright 2025 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. -*/ - fun shareImage(context: Context, uri: Uri) { ShareCompat.IntentBuilder(context) .setType("image/jpeg")