diff --git a/apollo/apollo-appsync-amplify/src/test/java/com/amplifyframework/apollo/appsync/ApolloAmplifyConnectorTest.kt b/apollo/apollo-appsync-amplify/src/test/java/com/amplifyframework/apollo/appsync/ApolloAmplifyConnectorTest.kt index 5e78c8098f..5afead7933 100644 --- a/apollo/apollo-appsync-amplify/src/test/java/com/amplifyframework/apollo/appsync/ApolloAmplifyConnectorTest.kt +++ b/apollo/apollo-appsync-amplify/src/test/java/com/amplifyframework/apollo/appsync/ApolloAmplifyConnectorTest.kt @@ -1,16 +1,16 @@ /* - * Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.apollo.appsync diff --git a/apollo/apollo-appsync-amplify/src/test/java/com/amplifyframework/apollo/appsync/util/AccessTokenProviderTest.kt b/apollo/apollo-appsync-amplify/src/test/java/com/amplifyframework/apollo/appsync/util/AccessTokenProviderTest.kt index 82ed75e4c4..10532ed371 100644 --- a/apollo/apollo-appsync-amplify/src/test/java/com/amplifyframework/apollo/appsync/util/AccessTokenProviderTest.kt +++ b/apollo/apollo-appsync-amplify/src/test/java/com/amplifyframework/apollo/appsync/util/AccessTokenProviderTest.kt @@ -1,16 +1,16 @@ /* - * Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.apollo.appsync.util diff --git a/apollo/apollo-appsync-amplify/src/test/java/com/amplifyframework/apollo/appsync/util/ApolloRequestSignerTest.kt b/apollo/apollo-appsync-amplify/src/test/java/com/amplifyframework/apollo/appsync/util/ApolloRequestSignerTest.kt index e7bce852df..06a39dd747 100644 --- a/apollo/apollo-appsync-amplify/src/test/java/com/amplifyframework/apollo/appsync/util/ApolloRequestSignerTest.kt +++ b/apollo/apollo-appsync-amplify/src/test/java/com/amplifyframework/apollo/appsync/util/ApolloRequestSignerTest.kt @@ -1,16 +1,16 @@ /* - * Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.apollo.appsync.util diff --git a/appsync/aws-sdk-appsync-events/src/test/java/com/amazonaws/sdk/appsync/events/EventsWebSocketTest.kt b/appsync/aws-sdk-appsync-events/src/test/java/com/amazonaws/sdk/appsync/events/EventsWebSocketTest.kt index be3bf7ed9e..6c7e5a8066 100644 --- a/appsync/aws-sdk-appsync-events/src/test/java/com/amazonaws/sdk/appsync/events/EventsWebSocketTest.kt +++ b/appsync/aws-sdk-appsync-events/src/test/java/com/amazonaws/sdk/appsync/events/EventsWebSocketTest.kt @@ -1,17 +1,17 @@ /* -* Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. -* -* Licensed under the Apache License, Version 2.0 (the "License"). -* You may not use this file except in compliance with the License. -* A copy of the License is located at -* -* http://aws.amazon.com/apache2.0 -* -* or in the "license" file accompanying this file. This file 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 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file 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 com.amazonaws.sdk.appsync.events import app.cash.turbine.test diff --git a/aws-api/src/main/java/com/amplifyframework/api/aws/ApiQuery.kt b/aws-api/src/main/java/com/amplifyframework/api/aws/ApiQuery.kt index e6512a98fa..51daab8dd2 100644 --- a/aws-api/src/main/java/com/amplifyframework/api/aws/ApiQuery.kt +++ b/aws-api/src/main/java/com/amplifyframework/api/aws/ApiQuery.kt @@ -5,7 +5,7 @@ * You may not use this file except in compliance with the License. * A copy of the License is located at * - * http://aws.amazon.com/apache2.0 + * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either diff --git a/aws-api/src/main/java/com/amplifyframework/api/aws/ModelPostProcessingTypeAdapter.kt b/aws-api/src/main/java/com/amplifyframework/api/aws/ModelPostProcessingTypeAdapter.kt index 9844a9b113..1f4195611e 100644 --- a/aws-api/src/main/java/com/amplifyframework/api/aws/ModelPostProcessingTypeAdapter.kt +++ b/aws-api/src/main/java/com/amplifyframework/api/aws/ModelPostProcessingTypeAdapter.kt @@ -5,7 +5,7 @@ * You may not use this file except in compliance with the License. * A copy of the License is located at * - * http://aws.amazon.com/apache2.0 + * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either diff --git a/aws-api/src/test/java/com/amplifyframework/api/aws/AWSApiSchemaRegistryTest.kt b/aws-api/src/test/java/com/amplifyframework/api/aws/AWSApiSchemaRegistryTest.kt index 76624dce43..6034a1e208 100644 --- a/aws-api/src/test/java/com/amplifyframework/api/aws/AWSApiSchemaRegistryTest.kt +++ b/aws-api/src/test/java/com/amplifyframework/api/aws/AWSApiSchemaRegistryTest.kt @@ -1,18 +1,16 @@ /* + * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * * - * * Licensed under the Apache License, Version 2.0 (the "License"). - * * You may not use this file except in compliance with the License. - * * A copy of the License is located at - * * - * * http://aws.amazon.com/apache2.0 - * * - * * or in the "license" file accompanying this file. This file 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. + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.api.aws diff --git a/aws-api/src/test/java/com/amplifyframework/api/aws/ApiLazyModelListTest.kt b/aws-api/src/test/java/com/amplifyframework/api/aws/ApiLazyModelListTest.kt index da51ef6ef7..68e4a8cab1 100644 --- a/aws-api/src/test/java/com/amplifyframework/api/aws/ApiLazyModelListTest.kt +++ b/aws-api/src/test/java/com/amplifyframework/api/aws/ApiLazyModelListTest.kt @@ -5,7 +5,7 @@ * You may not use this file except in compliance with the License. * A copy of the License is located at * - * http://aws.amazon.com/apache2.0 + * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either diff --git a/aws-api/src/test/java/com/amplifyframework/api/aws/ApiLazyModelReferenceTest.kt b/aws-api/src/test/java/com/amplifyframework/api/aws/ApiLazyModelReferenceTest.kt index 20241da57d..8e217be699 100644 --- a/aws-api/src/test/java/com/amplifyframework/api/aws/ApiLazyModelReferenceTest.kt +++ b/aws-api/src/test/java/com/amplifyframework/api/aws/ApiLazyModelReferenceTest.kt @@ -5,7 +5,7 @@ * You may not use this file except in compliance with the License. * A copy of the License is located at * - * http://aws.amazon.com/apache2.0 + * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either diff --git a/aws-api/src/test/java/com/amplifyframework/api/aws/ApiLoadedModelListTest.kt b/aws-api/src/test/java/com/amplifyframework/api/aws/ApiLoadedModelListTest.kt index 7faf4194f5..962143a41e 100644 --- a/aws-api/src/test/java/com/amplifyframework/api/aws/ApiLoadedModelListTest.kt +++ b/aws-api/src/test/java/com/amplifyframework/api/aws/ApiLoadedModelListTest.kt @@ -5,7 +5,7 @@ * You may not use this file except in compliance with the License. * A copy of the License is located at * - * http://aws.amazon.com/apache2.0 + * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either diff --git a/aws-api/src/test/java/com/amplifyframework/api/aws/MultiAuthAppSyncGraphQLOperationTest.kt b/aws-api/src/test/java/com/amplifyframework/api/aws/MultiAuthAppSyncGraphQLOperationTest.kt index 9426788576..144ec282c0 100644 --- a/aws-api/src/test/java/com/amplifyframework/api/aws/MultiAuthAppSyncGraphQLOperationTest.kt +++ b/aws-api/src/test/java/com/amplifyframework/api/aws/MultiAuthAppSyncGraphQLOperationTest.kt @@ -1,4 +1,3 @@ - /* * Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. * diff --git a/aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/options/AuthWebUIPrompt.kt b/aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/options/AuthWebUIPrompt.kt index 03b2fd2dc0..3a8ef494a7 100644 --- a/aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/options/AuthWebUIPrompt.kt +++ b/aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/options/AuthWebUIPrompt.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.auth.cognito.options /** diff --git a/aws-auth-cognito/src/test/java/featureTest/utilities/TimeZoneRule.kt b/aws-auth-cognito/src/test/java/featureTest/utilities/TimeZoneRule.kt index 846f1f8433..f248618812 100644 --- a/aws-auth-cognito/src/test/java/featureTest/utilities/TimeZoneRule.kt +++ b/aws-auth-cognito/src/test/java/featureTest/utilities/TimeZoneRule.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file 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 featureTest.utilities import java.util.TimeZone diff --git a/aws-core/src/main/java/com/amplifyframework/auth/AWSCognitoUserPoolTokens.kt b/aws-core/src/main/java/com/amplifyframework/auth/AWSCognitoUserPoolTokens.kt index cdcb24dd49..947cb2bd84 100644 --- a/aws-core/src/main/java/com/amplifyframework/auth/AWSCognitoUserPoolTokens.kt +++ b/aws-core/src/main/java/com/amplifyframework/auth/AWSCognitoUserPoolTokens.kt @@ -1,17 +1,17 @@ /* -* Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. -* -* Licensed under the Apache License, Version 2.0 (the "License"). -* You may not use this file except in compliance with the License. -* A copy of the License is located at -* -* http://aws.amazon.com/apache2.0 -* -* or in the "license" file accompanying this file. This file 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 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.auth diff --git a/aws-datastore/src/androidTest/java/com/amplifyframework/datastore/storage/sqlite/SQLiteStorageAdapterBatchTest.kt b/aws-datastore/src/androidTest/java/com/amplifyframework/datastore/storage/sqlite/SQLiteStorageAdapterBatchTest.kt index c52456676c..4d3417a7d6 100644 --- a/aws-datastore/src/androidTest/java/com/amplifyframework/datastore/storage/sqlite/SQLiteStorageAdapterBatchTest.kt +++ b/aws-datastore/src/androidTest/java/com/amplifyframework/datastore/storage/sqlite/SQLiteStorageAdapterBatchTest.kt @@ -1,3 +1,17 @@ +/* + * Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.datastore.storage.sqlite import com.amplifyframework.core.Consumer diff --git a/aws-datastore/src/main/java/com/amplifyframework/datastore/extensions/ModelExtensions.kt b/aws-datastore/src/main/java/com/amplifyframework/datastore/extensions/ModelExtensions.kt index 7263e854b4..d2e633f7fc 100644 --- a/aws-datastore/src/main/java/com/amplifyframework/datastore/extensions/ModelExtensions.kt +++ b/aws-datastore/src/main/java/com/amplifyframework/datastore/extensions/ModelExtensions.kt @@ -1,3 +1,17 @@ +/* + * Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.datastore.extensions import com.amplifyframework.core.model.Model diff --git a/aws-datastore/src/main/java/com/amplifyframework/datastore/storage/StorageOperation.kt b/aws-datastore/src/main/java/com/amplifyframework/datastore/storage/StorageOperation.kt index b5e434cfe7..95404957bc 100644 --- a/aws-datastore/src/main/java/com/amplifyframework/datastore/storage/StorageOperation.kt +++ b/aws-datastore/src/main/java/com/amplifyframework/datastore/storage/StorageOperation.kt @@ -1,3 +1,17 @@ +/* + * Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.datastore.storage import com.amplifyframework.annotations.InternalAmplifyApi diff --git a/aws-datastore/src/main/java/com/amplifyframework/datastore/storage/sqlite/TransactionBlock.kt b/aws-datastore/src/main/java/com/amplifyframework/datastore/storage/sqlite/TransactionBlock.kt index bb3716dae4..cbbe484dcb 100644 --- a/aws-datastore/src/main/java/com/amplifyframework/datastore/storage/sqlite/TransactionBlock.kt +++ b/aws-datastore/src/main/java/com/amplifyframework/datastore/storage/sqlite/TransactionBlock.kt @@ -1,3 +1,17 @@ +/* + * Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.datastore.storage.sqlite import com.amplifyframework.datastore.DataStoreException diff --git a/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfile.kt b/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfile.kt index 011562cc0e..bbb2e4adfd 100644 --- a/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfile.kt +++ b/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfile.kt @@ -1,17 +1,16 @@ /* - * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. - * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.pinpoint.core.endpointProfile diff --git a/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileDemographic.kt b/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileDemographic.kt index 6bec551a70..ee20a3df88 100644 --- a/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileDemographic.kt +++ b/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileDemographic.kt @@ -1,17 +1,16 @@ /* - * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. - * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.pinpoint.core.endpointProfile diff --git a/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileLocation.kt b/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileLocation.kt index 7cc76c5e61..f72b75404b 100644 --- a/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileLocation.kt +++ b/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileLocation.kt @@ -1,17 +1,16 @@ /* - * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. - * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.pinpoint.core.endpointProfile diff --git a/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileUser.kt b/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileUser.kt index 0b03b976cc..8428361ac5 100644 --- a/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileUser.kt +++ b/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileUser.kt @@ -1,17 +1,16 @@ /* - * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. - * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.pinpoint.core.endpointProfile diff --git a/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/util/DateUtil.kt b/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/util/DateUtil.kt index 5d84b7630f..f3c5b4b140 100644 --- a/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/util/DateUtil.kt +++ b/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/util/DateUtil.kt @@ -1,17 +1,16 @@ /* - * Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. - * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.pinpoint.core.util diff --git a/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/util/SharedPreferencesUtil.kt b/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/util/SharedPreferencesUtil.kt index c7b36a5a0a..ac7647521c 100644 --- a/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/util/SharedPreferencesUtil.kt +++ b/aws-pinpoint-core/src/main/java/com/amplifyframework/pinpoint/core/util/SharedPreferencesUtil.kt @@ -1,17 +1,16 @@ /* - * Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. - * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.pinpoint.core.util diff --git a/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/ConstructTargetingClasses.kt b/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/ConstructTargetingClasses.kt index ba6afb8897..6f4b48fb17 100644 --- a/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/ConstructTargetingClasses.kt +++ b/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/ConstructTargetingClasses.kt @@ -1,17 +1,16 @@ /* - * Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. - * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.pinpoint.core diff --git a/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/SharedPreferencesUtilTest.kt b/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/SharedPreferencesUtilTest.kt index 3cac335f99..852a90e2ba 100644 --- a/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/SharedPreferencesUtilTest.kt +++ b/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/SharedPreferencesUtilTest.kt @@ -1,17 +1,16 @@ /* - * Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. - * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.pinpoint.core diff --git a/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/TargetingClientTest.kt b/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/TargetingClientTest.kt index 67199aa9f7..5ef8d34d49 100644 --- a/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/TargetingClientTest.kt +++ b/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/TargetingClientTest.kt @@ -1,17 +1,16 @@ /* - * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. - * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.pinpoint.core diff --git a/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileTest.kt b/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileTest.kt index 0c009d91f7..65d5a6efe9 100644 --- a/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileTest.kt +++ b/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/endpointProfile/EndpointProfileTest.kt @@ -1,17 +1,16 @@ /* - * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. - * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.pinpoint.core.endpointProfile diff --git a/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/util/DateUtilTest.kt b/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/util/DateUtilTest.kt index f263dfb9af..c594f6afd6 100644 --- a/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/util/DateUtilTest.kt +++ b/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/util/DateUtilTest.kt @@ -1,17 +1,16 @@ /* - * Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. - * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.pinpoint.core.util diff --git a/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/util/SharedPrefsUniqueIdTest.kt b/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/util/SharedPrefsUniqueIdTest.kt index cc2af1b889..b671d98c99 100644 --- a/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/util/SharedPrefsUniqueIdTest.kt +++ b/aws-pinpoint-core/src/test/java/com/amplifyframework/pinpoint/core/util/SharedPrefsUniqueIdTest.kt @@ -1,17 +1,16 @@ /* - * Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. - * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.pinpoint.core.util diff --git a/aws-storage-s3/src/androidTest/java/com/amplifyframework/storage/s3/transfer/TransferDBTest.kt b/aws-storage-s3/src/androidTest/java/com/amplifyframework/storage/s3/transfer/TransferDBTest.kt index bb7c80d7e3..03409cab12 100644 --- a/aws-storage-s3/src/androidTest/java/com/amplifyframework/storage/s3/transfer/TransferDBTest.kt +++ b/aws-storage-s3/src/androidTest/java/com/amplifyframework/storage/s3/transfer/TransferDBTest.kt @@ -1,12 +1,12 @@ -/** +/* * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. - *

+ * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at - *

- * http://aws.amazon.com/apache2.0 - *

+ * + * http://aws.amazon.com/apache2.0 + * * or in the "license" file accompanying this file. This file 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 diff --git a/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/ClearableBufferedOutputStream.kt b/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/ClearableBufferedOutputStream.kt index 96819e52ea..7829dec4c7 100644 --- a/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/ClearableBufferedOutputStream.kt +++ b/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/ClearableBufferedOutputStream.kt @@ -1,16 +1,16 @@ /* * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * - * http://aws.amazon.com/apache2.0 + * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.storage.s3.transfer diff --git a/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferDB.kt b/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferDB.kt index 3af14e104e..4d5a80dd15 100644 --- a/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferDB.kt +++ b/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferDB.kt @@ -1,12 +1,12 @@ -/** +/* * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. - *

+ * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at - *

- * http://aws.amazon.com/apache2.0 - *

+ * + * http://aws.amazon.com/apache2.0 + * * or in the "license" file accompanying this file. This file 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 diff --git a/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferDBHelper.kt b/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferDBHelper.kt index f770447467..cfb7f0fc71 100644 --- a/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferDBHelper.kt +++ b/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferDBHelper.kt @@ -1,12 +1,12 @@ -/** +/* * Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. - *

+ * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at - *

- * http://aws.amazon.com/apache2.0 - *

+ * + * http://aws.amazon.com/apache2.0 + * * or in the "license" file accompanying this file. This file 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 diff --git a/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferRecord.kt b/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferRecord.kt index 8cdf0ddcba..e1fbcfa0cc 100644 --- a/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferRecord.kt +++ b/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferRecord.kt @@ -1,12 +1,12 @@ -/** +/* * Copyright 2015-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - *

+ * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at - *

- * http://aws.amazon.com/apache2.0 - *

+ * + * http://aws.amazon.com/apache2.0 + * * or in the "license" file accompanying this file. This file 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 diff --git a/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferTable.kt b/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferTable.kt index d7417c4937..96ea6cbb4f 100644 --- a/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferTable.kt +++ b/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferTable.kt @@ -1,12 +1,12 @@ -/** +/* * Copyright 2015-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - *

+ * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at - *

- * http://aws.amazon.com/apache2.0 - *

+ * + * http://aws.amazon.com/apache2.0 + * * or in the "license" file accompanying this file. This file 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 diff --git a/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferType.kt b/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferType.kt index e96c09c90a..4e13df0395 100644 --- a/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferType.kt +++ b/aws-storage-s3/src/main/java/com/amplifyframework/storage/s3/transfer/TransferType.kt @@ -1,12 +1,12 @@ -/** +/* * Copyright 2015-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - *

+ * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at - *

- * http://aws.amazon.com/apache2.0 - *

+ * + * http://aws.amazon.com/apache2.0 + * * or in the "license" file accompanying this file. This file 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 diff --git a/aws-storage-s3/src/test/java/com/amplifyframework/storage/s3/transfer/TransferDBTest.kt b/aws-storage-s3/src/test/java/com/amplifyframework/storage/s3/transfer/TransferDBTest.kt index af99857b0b..dd4f1b275e 100644 --- a/aws-storage-s3/src/test/java/com/amplifyframework/storage/s3/transfer/TransferDBTest.kt +++ b/aws-storage-s3/src/test/java/com/amplifyframework/storage/s3/transfer/TransferDBTest.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.storage.s3.transfer import io.kotest.matchers.types.shouldBeSameInstanceAs diff --git a/build-logic/plugins/src/main/kotlin/KotlinConventionPlugin.kt b/build-logic/plugins/src/main/kotlin/KotlinConventionPlugin.kt index c9821bc54b..cfd05c8300 100644 --- a/build-logic/plugins/src/main/kotlin/KotlinConventionPlugin.kt +++ b/build-logic/plugins/src/main/kotlin/KotlinConventionPlugin.kt @@ -60,6 +60,8 @@ class KotlinConventionPlugin : Plugin { freeCompilerArgs.add("-Xconsistent-data-class-copy-visibility") } } + + registerLicenseHeaderCheck() } } } diff --git a/build-logic/plugins/src/main/kotlin/KotlinMultiplatformConventionPlugin.kt b/build-logic/plugins/src/main/kotlin/KotlinMultiplatformConventionPlugin.kt index 4294b7fb23..99b2c186a7 100644 --- a/build-logic/plugins/src/main/kotlin/KotlinMultiplatformConventionPlugin.kt +++ b/build-logic/plugins/src/main/kotlin/KotlinMultiplatformConventionPlugin.kt @@ -36,6 +36,8 @@ class KotlinMultiplatformConventionPlugin : Plugin { extensions.configure { configureKotlinMultiplatform(this) } + + registerLicenseHeaderCheck() } } diff --git a/build-logic/plugins/src/main/kotlin/Util.kt b/build-logic/plugins/src/main/kotlin/Util.kt index cb6d6338b9..2e04b1b589 100644 --- a/build-logic/plugins/src/main/kotlin/Util.kt +++ b/build-logic/plugins/src/main/kotlin/Util.kt @@ -30,3 +30,64 @@ internal val optInAnnotations = amplifyInternalMarkers + listOf( internal val Project.libs get(): VersionCatalog = extensions.getByType().named("libs") + +private val licenseHeaderPatterns = listOf( + """^/\*$""", + """^ \* Copyright \d{4}(-\d{4})? Amazon\.com, Inc\. or its affiliates\. All Rights Reserved\.$""", + """^ \*$""", + """^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\)\.$""", + """^ \* You may not use this file except in compliance with the License\.$""", + """^ \* A copy of the License is located at$""", + """^ \*$""", + """^ \* http://aws\.amazon\.com/apache2\.0$""", + """^ \*$""", + """^ \* or in the "license" file accompanying this file\. This file 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\.$""", + """^ \*/$""", +).map { Regex(it) } + +internal fun Project.registerLicenseHeaderCheck() { + tasks.register("licenseHeaderCheck") { + group = "verification" + description = "Verify source files have the required Apache 2.0 license header" + + val sourceTree = fileTree("src") { + include("**/*.kt") + } + inputs.files(sourceTree) + val reportFile = layout.buildDirectory.file("reports/licenseHeaderCheck.txt") + outputs.file(reportFile) + + doLast { + val failures = mutableListOf() + sourceTree.forEach { file -> + val lines = file.readLines() + if (lines.size < licenseHeaderPatterns.size) { + failures += file.relativeTo(projectDir).path + return@forEach + } + for (i in licenseHeaderPatterns.indices) { + if (!licenseHeaderPatterns[i].matches(lines[i])) { + failures += file.relativeTo(projectDir).path + break + } + } + } + + val report = reportFile.get().asFile + report.parentFile.mkdirs() + if (failures.isEmpty()) { + report.writeText("All source files have valid license headers.\n") + } else { + val msg = "Missing or invalid license header in ${failures.size} file(s):\n" + + failures.joinToString("\n") { " - $it" } + report.writeText(msg + "\n") + throw org.gradle.api.GradleException(msg) + } + } + } + + tasks.named("check") { dependsOn("licenseHeaderCheck") } +} diff --git a/configuration/checkstyle.gradle b/configuration/checkstyle.gradle index 7be3640f4a..7008466c4e 100644 --- a/configuration/checkstyle.gradle +++ b/configuration/checkstyle.gradle @@ -47,4 +47,3 @@ def javaSources() { } return files } - diff --git a/core-kotlin/src/main/java/com/amplifyframework/kotlin/geo/Geo.kt b/core-kotlin/src/main/java/com/amplifyframework/kotlin/geo/Geo.kt index fffe28e056..57d284e336 100644 --- a/core-kotlin/src/main/java/com/amplifyframework/kotlin/geo/Geo.kt +++ b/core-kotlin/src/main/java/com/amplifyframework/kotlin/geo/Geo.kt @@ -1,16 +1,16 @@ /* - * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * - * http://aws.amazon.com/apache2.0 + * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.kotlin.geo diff --git a/core-kotlin/src/main/java/com/amplifyframework/kotlin/geo/KotlinGeoFacade.kt b/core-kotlin/src/main/java/com/amplifyframework/kotlin/geo/KotlinGeoFacade.kt index d442e13264..0115dbf1d6 100644 --- a/core-kotlin/src/main/java/com/amplifyframework/kotlin/geo/KotlinGeoFacade.kt +++ b/core-kotlin/src/main/java/com/amplifyframework/kotlin/geo/KotlinGeoFacade.kt @@ -1,16 +1,16 @@ /* - * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * - * http://aws.amazon.com/apache2.0 + * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.kotlin.geo diff --git a/core-kotlin/src/test/java/com/amplifyframework/kotlin/geo/KotlinGeoFacadeTest.kt b/core-kotlin/src/test/java/com/amplifyframework/kotlin/geo/KotlinGeoFacadeTest.kt index 0efb5516bb..0e423dc9c8 100644 --- a/core-kotlin/src/test/java/com/amplifyframework/kotlin/geo/KotlinGeoFacadeTest.kt +++ b/core-kotlin/src/test/java/com/amplifyframework/kotlin/geo/KotlinGeoFacadeTest.kt @@ -1,16 +1,16 @@ /* - * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * - * http://aws.amazon.com/apache2.0 + * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.kotlin.geo diff --git a/core/src/main/java/com/amplifyframework/storage/TransferState.kt b/core/src/main/java/com/amplifyframework/storage/TransferState.kt index f349b23a45..99a5ed082a 100644 --- a/core/src/main/java/com/amplifyframework/storage/TransferState.kt +++ b/core/src/main/java/com/amplifyframework/storage/TransferState.kt @@ -1,12 +1,12 @@ -/** +/* * Copyright 2015-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - *

+ * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at - *

- * http://aws.amazon.com/apache2.0 - *

+ * + * http://aws.amazon.com/apache2.0 + * * or in the "license" file accompanying this file. This file 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 diff --git a/core/src/test/java/com/amplifyframework/core/store/AmplifyKeyValueRepositoryTest.kt b/core/src/test/java/com/amplifyframework/core/store/AmplifyKeyValueRepositoryTest.kt index 77651f4f4c..3cc872d20e 100644 --- a/core/src/test/java/com/amplifyframework/core/store/AmplifyKeyValueRepositoryTest.kt +++ b/core/src/test/java/com/amplifyframework/core/store/AmplifyKeyValueRepositoryTest.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.core.store import android.security.keystore.KeyProperties diff --git a/core/src/test/java/com/amplifyframework/core/store/InMemoryKeyValueRepositoryProviderTest.kt b/core/src/test/java/com/amplifyframework/core/store/InMemoryKeyValueRepositoryProviderTest.kt index 425df0f5a1..cc404d4609 100644 --- a/core/src/test/java/com/amplifyframework/core/store/InMemoryKeyValueRepositoryProviderTest.kt +++ b/core/src/test/java/com/amplifyframework/core/store/InMemoryKeyValueRepositoryProviderTest.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.core.store import io.kotest.matchers.equals.shouldBeEqual diff --git a/rxbindings/src/test/java/com/amplifyframework/rx/RxGeoBindingTest.kt b/rxbindings/src/test/java/com/amplifyframework/rx/RxGeoBindingTest.kt index ce95160611..ed73841f78 100644 --- a/rxbindings/src/test/java/com/amplifyframework/rx/RxGeoBindingTest.kt +++ b/rxbindings/src/test/java/com/amplifyframework/rx/RxGeoBindingTest.kt @@ -1,16 +1,16 @@ /* - * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at * - * http://aws.amazon.com/apache2.0 + * http://aws.amazon.com/apache2.0 * - * or in the "license" file accompanying this file. This file 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. + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.rx diff --git a/testutils/src/main/java/com/amplifyframework/testutils/coroutines/RunBlockingWithTimeout.kt b/testutils/src/main/java/com/amplifyframework/testutils/coroutines/RunBlockingWithTimeout.kt index 3b0e2e5a0b..eeb1907902 100644 --- a/testutils/src/main/java/com/amplifyframework/testutils/coroutines/RunBlockingWithTimeout.kt +++ b/testutils/src/main/java/com/amplifyframework/testutils/coroutines/RunBlockingWithTimeout.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file 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 com.amplifyframework.testutils.coroutines import io.kotest.assertions.fail