From 881e82cf14221a01be90e36dea3beb00dfac18f9 Mon Sep 17 00:00:00 2001 From: Rand McKinney Date: Mon, 24 Nov 2025 12:59:53 -0800 Subject: [PATCH 1/2] chore: Add license header to source files --- build.gradle.kts | 11 +++++++++++ example-app/app/build.gradle.kts | 11 +++++++++++ .../org/contentauth/c2pa/exampleapp/MainActivity.kt | 11 +++++++++++ .../contentauth/c2pa/exampleapp/data/C2PAManager.kt | 11 +++++++++++ .../c2pa/exampleapp/data/PreferencesManager.kt | 11 +++++++++++ .../contentauth/c2pa/exampleapp/model/SigningMode.kt | 11 +++++++++++ .../c2pa/exampleapp/ui/camera/CameraScreen.kt | 11 +++++++++++ .../c2pa/exampleapp/ui/gallery/GalleryScreen.kt | 11 +++++++++++ .../c2pa/exampleapp/ui/settings/SettingsScreen.kt | 11 +++++++++++ .../org/contentauth/c2pa/exampleapp/ui/theme/Color.kt | 11 +++++++++++ .../c2pa/exampleapp/ui/theme/ExampleTheme.kt | 11 +++++++++++ .../org/contentauth/c2pa/exampleapp/ui/theme/Type.kt | 11 +++++++++++ .../exampleapp/ui/webview/C2PAFileChooserActivity.kt | 11 +++++++++++ .../c2pa/exampleapp/ui/webview/WebViewScreen.kt | 11 +++++++++++ library/build.gradle.kts | 11 +++++++++++ .../org/contentauth/c2pa/AndroidBuilderTests.kt | 11 +++++++++++ .../kotlin/org/contentauth/c2pa/AndroidCoreTests.kt | 11 +++++++++++ .../kotlin/org/contentauth/c2pa/AndroidSignerTests.kt | 11 +++++++++++ .../kotlin/org/contentauth/c2pa/AndroidStreamTests.kt | 11 +++++++++++ .../org/contentauth/c2pa/AndroidWebServiceTests.kt | 11 +++++++++++ .../kotlin/org/contentauth/c2pa/ResourceTestHelper.kt | 11 +++++++++++ .../src/main/kotlin/org/contentauth/c2pa/Builder.kt | 10 ++++++++++ library/src/main/kotlin/org/contentauth/c2pa/C2PA.kt | 11 +++++++++++ .../src/main/kotlin/org/contentauth/c2pa/C2PAError.kt | 11 +++++++++++ .../kotlin/org/contentauth/c2pa/CertificateManager.kt | 11 +++++++++++ .../src/main/kotlin/org/contentauth/c2pa/Helpers.kt | 11 +++++++++++ .../kotlin/org/contentauth/c2pa/KeyStoreSigner.kt | 11 +++++++++++ .../src/main/kotlin/org/contentauth/c2pa/Reader.kt | 11 +++++++++++ .../src/main/kotlin/org/contentauth/c2pa/Signer.kt | 11 +++++++++++ .../main/kotlin/org/contentauth/c2pa/SignerInfo.kt | 11 +++++++++++ .../kotlin/org/contentauth/c2pa/SigningAlgorithm.kt | 11 +++++++++++ .../src/main/kotlin/org/contentauth/c2pa/Stream.kt | 11 +++++++++++ .../kotlin/org/contentauth/c2pa/StrongBoxSigner.kt | 11 +++++++++++ .../kotlin/org/contentauth/c2pa/WebServiceSigner.kt | 11 +++++++++++ settings.gradle.kts | 11 +++++++++++ signing-server/build.gradle.kts | 11 +++++++++++ .../org/contentauth/c2pa/signingserver/Application.kt | 11 +++++++++++ .../c2pa/signingserver/config/ServerConfig.kt | 11 +++++++++++ .../controllers/C2PAConfigurationController.kt | 11 +++++++++++ .../controllers/C2PASigningController.kt | 11 +++++++++++ .../controllers/CertificateSigningController.kt | 11 +++++++++++ .../c2pa/signingserver/models/C2PASigning.kt | 11 +++++++++++ .../c2pa/signingserver/models/CertificateSigning.kt | 11 +++++++++++ .../services/CertificateSigningService.kt | 11 +++++++++++ test-app/app/build.gradle.kts | 11 +++++++++++ .../org/contentauth/c2pa/testapp/MainActivity.kt | 11 +++++++++++ .../kotlin/org/contentauth/c2pa/testapp/TestScreen.kt | 11 +++++++++++ .../contentauth/c2pa/testapp/ui/theme/TestTheme.kt | 11 +++++++++++ test-shared/build.gradle.kts | 11 +++++++++++ .../org/contentauth/c2pa/test/shared/BuilderTests.kt | 11 +++++++++++ .../org/contentauth/c2pa/test/shared/CoreTests.kt | 11 +++++++++++ .../org/contentauth/c2pa/test/shared/SignerTests.kt | 11 +++++++++++ .../org/contentauth/c2pa/test/shared/StreamTests.kt | 11 +++++++++++ .../org/contentauth/c2pa/test/shared/TestBase.kt | 11 +++++++++++ .../contentauth/c2pa/test/shared/WebServiceTests.kt | 11 +++++++++++ 55 files changed, 604 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 129599f..3f9c270 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { alias(libs.plugins.android.application) apply false diff --git a/example-app/app/build.gradle.kts b/example-app/app/build.gradle.kts index 9b6654a..ea27a8a 100644 --- a/example-app/app/build.gradle.kts +++ b/example-app/app/build.gradle.kts @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.android) diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/MainActivity.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/MainActivity.kt index 4828e3d..4a14bb7 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/MainActivity.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/MainActivity.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.exampleapp import android.os.Bundle diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/C2PAManager.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/C2PAManager.kt index d494013..40d8764 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/C2PAManager.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/C2PAManager.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.exampleapp.data import android.content.Context diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/PreferencesManager.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/PreferencesManager.kt index f31f562..9f85ffc 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/PreferencesManager.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/PreferencesManager.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.exampleapp.data import android.content.Context diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/model/SigningMode.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/model/SigningMode.kt index bd93d69..188f51a 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/model/SigningMode.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/model/SigningMode.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.exampleapp.model enum class SigningMode(val displayName: String, val description: String, val requiresConfiguration: Boolean = false) { diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/camera/CameraScreen.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/camera/CameraScreen.kt index a783cd4..b43bc38 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/camera/CameraScreen.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/camera/CameraScreen.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.exampleapp.ui.camera import android.Manifest diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/gallery/GalleryScreen.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/gallery/GalleryScreen.kt index cfef828..208d4a8 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/gallery/GalleryScreen.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/gallery/GalleryScreen.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.exampleapp.ui.gallery import androidx.compose.foundation.clickable diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/settings/SettingsScreen.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/settings/SettingsScreen.kt index 462983e..d2b5be8 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/settings/SettingsScreen.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/settings/SettingsScreen.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.exampleapp.ui.settings import android.net.Uri diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Color.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Color.kt index 2967904..690ed81 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Color.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Color.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.exampleapp.ui.theme import androidx.compose.ui.graphics.Color diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/ExampleTheme.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/ExampleTheme.kt index c078af9..677a196 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/ExampleTheme.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/ExampleTheme.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.exampleapp.ui.theme import android.os.Build diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Type.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Type.kt index 71e6dc6..457d99d 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Type.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Type.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.exampleapp.ui.theme import androidx.compose.material3.Typography diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/C2PAFileChooserActivity.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/C2PAFileChooserActivity.kt index 4c31297..bba23d4 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/C2PAFileChooserActivity.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/C2PAFileChooserActivity.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.exampleapp.ui.webview import android.app.Activity diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/WebViewScreen.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/WebViewScreen.kt index 789df65..64044b3 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/WebViewScreen.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/WebViewScreen.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.exampleapp.ui.webview import android.app.Activity diff --git a/library/build.gradle.kts b/library/build.gradle.kts index dc82d33..d617ea3 100644 --- a/library/build.gradle.kts +++ b/library/build.gradle.kts @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ import org.gradle.api.publish.maven.MavenPublication import java.util.Properties diff --git a/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidBuilderTests.kt b/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidBuilderTests.kt index 7da19fa..bcf8564 100644 --- a/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidBuilderTests.kt +++ b/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidBuilderTests.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import android.content.Context diff --git a/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidCoreTests.kt b/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidCoreTests.kt index e1743b8..4748872 100644 --- a/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidCoreTests.kt +++ b/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidCoreTests.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import android.content.Context diff --git a/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidSignerTests.kt b/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidSignerTests.kt index 39b85ba..9c0e693 100644 --- a/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidSignerTests.kt +++ b/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidSignerTests.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import android.content.Context diff --git a/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidStreamTests.kt b/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidStreamTests.kt index 8887fff..e861636 100644 --- a/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidStreamTests.kt +++ b/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidStreamTests.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import android.content.Context diff --git a/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidWebServiceTests.kt b/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidWebServiceTests.kt index c3cca4f..69dd546 100644 --- a/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidWebServiceTests.kt +++ b/library/src/androidTest/kotlin/org/contentauth/c2pa/AndroidWebServiceTests.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import android.content.Context diff --git a/library/src/androidTest/kotlin/org/contentauth/c2pa/ResourceTestHelper.kt b/library/src/androidTest/kotlin/org/contentauth/c2pa/ResourceTestHelper.kt index ebb75d9..6eba884 100644 --- a/library/src/androidTest/kotlin/org/contentauth/c2pa/ResourceTestHelper.kt +++ b/library/src/androidTest/kotlin/org/contentauth/c2pa/ResourceTestHelper.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import android.content.Context diff --git a/library/src/main/kotlin/org/contentauth/c2pa/Builder.kt b/library/src/main/kotlin/org/contentauth/c2pa/Builder.kt index 588c9e7..85e8792 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/Builder.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/Builder.kt @@ -1,3 +1,13 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import java.io.Closeable diff --git a/library/src/main/kotlin/org/contentauth/c2pa/C2PA.kt b/library/src/main/kotlin/org/contentauth/c2pa/C2PA.kt index 8e06ba2..7407725 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/C2PA.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/C2PA.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import java.io.File diff --git a/library/src/main/kotlin/org/contentauth/c2pa/C2PAError.kt b/library/src/main/kotlin/org/contentauth/c2pa/C2PAError.kt index 2268747..74adef7 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/C2PAError.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/C2PAError.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa /** diff --git a/library/src/main/kotlin/org/contentauth/c2pa/CertificateManager.kt b/library/src/main/kotlin/org/contentauth/c2pa/CertificateManager.kt index 56f1901..cf1e389 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/CertificateManager.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/CertificateManager.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import android.os.Build diff --git a/library/src/main/kotlin/org/contentauth/c2pa/Helpers.kt b/library/src/main/kotlin/org/contentauth/c2pa/Helpers.kt index 8310615..0e54891 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/Helpers.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/Helpers.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import android.util.Log diff --git a/library/src/main/kotlin/org/contentauth/c2pa/KeyStoreSigner.kt b/library/src/main/kotlin/org/contentauth/c2pa/KeyStoreSigner.kt index fd0b411..5695a6b 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/KeyStoreSigner.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/KeyStoreSigner.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import android.os.Build diff --git a/library/src/main/kotlin/org/contentauth/c2pa/Reader.kt b/library/src/main/kotlin/org/contentauth/c2pa/Reader.kt index 6b35042..8d389e7 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/Reader.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/Reader.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import java.io.Closeable diff --git a/library/src/main/kotlin/org/contentauth/c2pa/Signer.kt b/library/src/main/kotlin/org/contentauth/c2pa/Signer.kt index 732e26b..18bbf6f 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/Signer.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/Signer.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import java.io.Closeable diff --git a/library/src/main/kotlin/org/contentauth/c2pa/SignerInfo.kt b/library/src/main/kotlin/org/contentauth/c2pa/SignerInfo.kt index 074706b..9ef80af 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/SignerInfo.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/SignerInfo.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa /** diff --git a/library/src/main/kotlin/org/contentauth/c2pa/SigningAlgorithm.kt b/library/src/main/kotlin/org/contentauth/c2pa/SigningAlgorithm.kt index ba23490..ce767b4 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/SigningAlgorithm.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/SigningAlgorithm.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa /** diff --git a/library/src/main/kotlin/org/contentauth/c2pa/Stream.kt b/library/src/main/kotlin/org/contentauth/c2pa/Stream.kt index d528186..703994e 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/Stream.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/Stream.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import java.io.ByteArrayOutputStream diff --git a/library/src/main/kotlin/org/contentauth/c2pa/StrongBoxSigner.kt b/library/src/main/kotlin/org/contentauth/c2pa/StrongBoxSigner.kt index c7b6ac4..c39de81 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/StrongBoxSigner.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/StrongBoxSigner.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import android.content.Context diff --git a/library/src/main/kotlin/org/contentauth/c2pa/WebServiceSigner.kt b/library/src/main/kotlin/org/contentauth/c2pa/WebServiceSigner.kt index 360e7bd..1180d0b 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/WebServiceSigner.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/WebServiceSigner.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa import android.util.Base64 diff --git a/settings.gradle.kts b/settings.gradle.kts index 00cdce3..afd10d8 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ pluginManagement { repositories { google() diff --git a/signing-server/build.gradle.kts b/signing-server/build.gradle.kts index 93330ac..6987c14 100644 --- a/signing-server/build.gradle.kts +++ b/signing-server/build.gradle.kts @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ plugins { kotlin("jvm") kotlin("plugin.serialization") diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/Application.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/Application.kt index 6657ca6..ccce80e 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/Application.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/Application.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.signingserver import io.ktor.http.HttpStatusCode diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/config/ServerConfig.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/config/ServerConfig.kt index c6b5572..1d0021e 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/config/ServerConfig.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/config/ServerConfig.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.signingserver.config data class ServerConfig( diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PAConfigurationController.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PAConfigurationController.kt index b778dc4..694b9d4 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PAConfigurationController.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PAConfigurationController.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.signingserver.controllers import io.ktor.http.HttpStatusCode diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PASigningController.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PASigningController.kt index 4d0b854..d3dd338 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PASigningController.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PASigningController.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.signingserver.controllers import io.ktor.http.HttpStatusCode diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/CertificateSigningController.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/CertificateSigningController.kt index c43c37d..b6f7059 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/CertificateSigningController.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/CertificateSigningController.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.signingserver.controllers import io.ktor.http.HttpStatusCode diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/C2PASigning.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/C2PASigning.kt index 5abf19a..58f921b 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/C2PASigning.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/C2PASigning.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.signingserver.models import kotlinx.serialization.Serializable diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/CertificateSigning.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/CertificateSigning.kt index 71eee18..8191d74 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/CertificateSigning.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/CertificateSigning.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.signingserver.models import kotlinx.datetime.Instant diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/services/CertificateSigningService.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/services/CertificateSigningService.kt index 9247e89..191d6ef 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/services/CertificateSigningService.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/services/CertificateSigningService.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.signingserver.services import kotlinx.datetime.Instant diff --git a/test-app/app/build.gradle.kts b/test-app/app/build.gradle.kts index bfb2394..e015134 100644 --- a/test-app/app/build.gradle.kts +++ b/test-app/app/build.gradle.kts @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ plugins { id("com.android.application") id("org.jetbrains.kotlin.android") diff --git a/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/MainActivity.kt b/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/MainActivity.kt index aa7ff2c..f33a373 100644 --- a/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/MainActivity.kt +++ b/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/MainActivity.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.testapp import android.os.Bundle diff --git a/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/TestScreen.kt b/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/TestScreen.kt index cadbaac..38e72fe 100644 --- a/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/TestScreen.kt +++ b/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/TestScreen.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.testapp import android.content.Context diff --git a/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/ui/theme/TestTheme.kt b/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/ui/theme/TestTheme.kt index 8d8832e..89e1cbb 100644 --- a/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/ui/theme/TestTheme.kt +++ b/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/ui/theme/TestTheme.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.testapp.ui.theme import android.app.Activity diff --git a/test-shared/build.gradle.kts b/test-shared/build.gradle.kts index c852861..c066955 100644 --- a/test-shared/build.gradle.kts +++ b/test-shared/build.gradle.kts @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ plugins { id("com.android.library") id("org.jetbrains.kotlin.android") diff --git a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/BuilderTests.kt b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/BuilderTests.kt index 4c50061..fd79059 100644 --- a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/BuilderTests.kt +++ b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/BuilderTests.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.test.shared import kotlinx.coroutines.Dispatchers diff --git a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/CoreTests.kt b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/CoreTests.kt index ca8c659..a7c3960 100644 --- a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/CoreTests.kt +++ b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/CoreTests.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.test.shared import kotlinx.coroutines.Dispatchers diff --git a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/SignerTests.kt b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/SignerTests.kt index 6d7d8a7..b3b012b 100644 --- a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/SignerTests.kt +++ b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/SignerTests.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.test.shared import kotlinx.coroutines.Dispatchers diff --git a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/StreamTests.kt b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/StreamTests.kt index 327121b..f4a7d25 100644 --- a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/StreamTests.kt +++ b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/StreamTests.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.test.shared import kotlinx.coroutines.Dispatchers diff --git a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/TestBase.kt b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/TestBase.kt index 39fa4dc..f7ca33c 100644 --- a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/TestBase.kt +++ b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/TestBase.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.test.shared import android.content.Context diff --git a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/WebServiceTests.kt b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/WebServiceTests.kt index 043c27c..b2b9ebf 100644 --- a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/WebServiceTests.kt +++ b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/WebServiceTests.kt @@ -1,3 +1,14 @@ +/* +This file is licensed to you under the Apache License, Version 2.0 +(http://www.apache.org/licenses/LICENSE-2.0) or the MIT license +(http://opensource.org/licenses/MIT), at your option. + +Unless required by applicable law or agreed to in writing, this software is +distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF +ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE +files for the specific language governing permissions and limitations under +each license. +*/ package org.contentauth.c2pa.test.shared import kotlinx.coroutines.Dispatchers From 3e1af8050cbcd7e5b5534c95ec58ba91359f6aba Mon Sep 17 00:00:00 2001 From: Rand McKinney Date: Tue, 25 Nov 2025 10:55:22 -0800 Subject: [PATCH 2/2] Add blank line after license header comments per @scouten --- build.gradle.kts | 1 + example-app/app/build.gradle.kts | 1 + .../main/kotlin/org/contentauth/c2pa/exampleapp/MainActivity.kt | 1 + .../kotlin/org/contentauth/c2pa/exampleapp/data/C2PAManager.kt | 1 + .../org/contentauth/c2pa/exampleapp/data/PreferencesManager.kt | 1 + .../kotlin/org/contentauth/c2pa/exampleapp/model/SigningMode.kt | 1 + .../org/contentauth/c2pa/exampleapp/ui/camera/CameraScreen.kt | 1 + .../org/contentauth/c2pa/exampleapp/ui/gallery/GalleryScreen.kt | 1 + .../contentauth/c2pa/exampleapp/ui/settings/SettingsScreen.kt | 1 + .../kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Color.kt | 1 + .../org/contentauth/c2pa/exampleapp/ui/theme/ExampleTheme.kt | 1 + .../main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Type.kt | 1 + .../c2pa/exampleapp/ui/webview/C2PAFileChooserActivity.kt | 1 + .../org/contentauth/c2pa/exampleapp/ui/webview/WebViewScreen.kt | 1 + library/build.gradle.kts | 1 + library/src/main/kotlin/org/contentauth/c2pa/Builder.kt | 1 + library/src/main/kotlin/org/contentauth/c2pa/C2PA.kt | 1 + library/src/main/kotlin/org/contentauth/c2pa/C2PAError.kt | 1 + .../src/main/kotlin/org/contentauth/c2pa/CertificateManager.kt | 1 + library/src/main/kotlin/org/contentauth/c2pa/Helpers.kt | 1 + library/src/main/kotlin/org/contentauth/c2pa/KeyStoreSigner.kt | 1 + library/src/main/kotlin/org/contentauth/c2pa/Reader.kt | 1 + library/src/main/kotlin/org/contentauth/c2pa/Signer.kt | 1 + library/src/main/kotlin/org/contentauth/c2pa/SignerInfo.kt | 1 + library/src/main/kotlin/org/contentauth/c2pa/SigningAlgorithm.kt | 1 + library/src/main/kotlin/org/contentauth/c2pa/Stream.kt | 1 + library/src/main/kotlin/org/contentauth/c2pa/StrongBoxSigner.kt | 1 + library/src/main/kotlin/org/contentauth/c2pa/WebServiceSigner.kt | 1 + settings.gradle.kts | 1 + signing-server/build.gradle.kts | 1 + .../kotlin/org/contentauth/c2pa/signingserver/Application.kt | 1 + .../org/contentauth/c2pa/signingserver/config/ServerConfig.kt | 1 + .../signingserver/controllers/C2PAConfigurationController.kt | 1 + .../c2pa/signingserver/controllers/C2PASigningController.kt | 1 + .../signingserver/controllers/CertificateSigningController.kt | 1 + .../org/contentauth/c2pa/signingserver/models/C2PASigning.kt | 1 + .../contentauth/c2pa/signingserver/models/CertificateSigning.kt | 1 + test-app/app/build.gradle.kts | 1 + .../src/main/kotlin/org/contentauth/c2pa/testapp/MainActivity.kt | 1 + .../src/main/kotlin/org/contentauth/c2pa/testapp/TestScreen.kt | 1 + .../kotlin/org/contentauth/c2pa/testapp/ui/theme/TestTheme.kt | 1 + test-shared/build.gradle.kts | 1 + .../main/kotlin/org/contentauth/c2pa/test/shared/BuilderTests.kt | 1 + .../main/kotlin/org/contentauth/c2pa/test/shared/CoreTests.kt | 1 + .../main/kotlin/org/contentauth/c2pa/test/shared/SignerTests.kt | 1 + .../main/kotlin/org/contentauth/c2pa/test/shared/StreamTests.kt | 1 + .../src/main/kotlin/org/contentauth/c2pa/test/shared/TestBase.kt | 1 + .../kotlin/org/contentauth/c2pa/test/shared/WebServiceTests.kt | 1 + 48 files changed, 48 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 3f9c270..fc56e30 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { alias(libs.plugins.android.application) apply false diff --git a/example-app/app/build.gradle.kts b/example-app/app/build.gradle.kts index ea27a8a..378dd24 100644 --- a/example-app/app/build.gradle.kts +++ b/example-app/app/build.gradle.kts @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.android) diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/MainActivity.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/MainActivity.kt index 4a14bb7..b7e5883 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/MainActivity.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/MainActivity.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.exampleapp import android.os.Bundle diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/C2PAManager.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/C2PAManager.kt index 40d8764..7d2c5cd 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/C2PAManager.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/C2PAManager.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.exampleapp.data import android.content.Context diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/PreferencesManager.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/PreferencesManager.kt index 9f85ffc..1006482 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/PreferencesManager.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/data/PreferencesManager.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.exampleapp.data import android.content.Context diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/model/SigningMode.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/model/SigningMode.kt index 188f51a..cbf8dc5 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/model/SigningMode.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/model/SigningMode.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.exampleapp.model enum class SigningMode(val displayName: String, val description: String, val requiresConfiguration: Boolean = false) { diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/camera/CameraScreen.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/camera/CameraScreen.kt index b43bc38..3c7b061 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/camera/CameraScreen.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/camera/CameraScreen.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.exampleapp.ui.camera import android.Manifest diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/gallery/GalleryScreen.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/gallery/GalleryScreen.kt index 208d4a8..4c17621 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/gallery/GalleryScreen.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/gallery/GalleryScreen.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.exampleapp.ui.gallery import androidx.compose.foundation.clickable diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/settings/SettingsScreen.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/settings/SettingsScreen.kt index d2b5be8..812ef06 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/settings/SettingsScreen.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/settings/SettingsScreen.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.exampleapp.ui.settings import android.net.Uri diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Color.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Color.kt index 690ed81..75efbe4 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Color.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Color.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.exampleapp.ui.theme import androidx.compose.ui.graphics.Color diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/ExampleTheme.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/ExampleTheme.kt index 677a196..2669233 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/ExampleTheme.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/ExampleTheme.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.exampleapp.ui.theme import android.os.Build diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Type.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Type.kt index 457d99d..a9cb91f 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Type.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/theme/Type.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.exampleapp.ui.theme import androidx.compose.material3.Typography diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/C2PAFileChooserActivity.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/C2PAFileChooserActivity.kt index bba23d4..16492dc 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/C2PAFileChooserActivity.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/C2PAFileChooserActivity.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.exampleapp.ui.webview import android.app.Activity diff --git a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/WebViewScreen.kt b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/WebViewScreen.kt index 64044b3..4aaf697 100644 --- a/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/WebViewScreen.kt +++ b/example-app/app/src/main/kotlin/org/contentauth/c2pa/exampleapp/ui/webview/WebViewScreen.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.exampleapp.ui.webview import android.app.Activity diff --git a/library/build.gradle.kts b/library/build.gradle.kts index d617ea3..0d246a3 100644 --- a/library/build.gradle.kts +++ b/library/build.gradle.kts @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + import org.gradle.api.publish.maven.MavenPublication import java.util.Properties diff --git a/library/src/main/kotlin/org/contentauth/c2pa/Builder.kt b/library/src/main/kotlin/org/contentauth/c2pa/Builder.kt index 85e8792..ce8ac0c 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/Builder.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/Builder.kt @@ -8,6 +8,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa import java.io.Closeable diff --git a/library/src/main/kotlin/org/contentauth/c2pa/C2PA.kt b/library/src/main/kotlin/org/contentauth/c2pa/C2PA.kt index 7407725..c2fb5bb 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/C2PA.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/C2PA.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa import java.io.File diff --git a/library/src/main/kotlin/org/contentauth/c2pa/C2PAError.kt b/library/src/main/kotlin/org/contentauth/c2pa/C2PAError.kt index 74adef7..e616bd0 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/C2PAError.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/C2PAError.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa /** diff --git a/library/src/main/kotlin/org/contentauth/c2pa/CertificateManager.kt b/library/src/main/kotlin/org/contentauth/c2pa/CertificateManager.kt index cf1e389..3aeb92b 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/CertificateManager.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/CertificateManager.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa import android.os.Build diff --git a/library/src/main/kotlin/org/contentauth/c2pa/Helpers.kt b/library/src/main/kotlin/org/contentauth/c2pa/Helpers.kt index 0e54891..484d0c6 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/Helpers.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/Helpers.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa import android.util.Log diff --git a/library/src/main/kotlin/org/contentauth/c2pa/KeyStoreSigner.kt b/library/src/main/kotlin/org/contentauth/c2pa/KeyStoreSigner.kt index 5695a6b..98e4afc 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/KeyStoreSigner.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/KeyStoreSigner.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa import android.os.Build diff --git a/library/src/main/kotlin/org/contentauth/c2pa/Reader.kt b/library/src/main/kotlin/org/contentauth/c2pa/Reader.kt index 8d389e7..3d74e4b 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/Reader.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/Reader.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa import java.io.Closeable diff --git a/library/src/main/kotlin/org/contentauth/c2pa/Signer.kt b/library/src/main/kotlin/org/contentauth/c2pa/Signer.kt index 18bbf6f..788ccad 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/Signer.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/Signer.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa import java.io.Closeable diff --git a/library/src/main/kotlin/org/contentauth/c2pa/SignerInfo.kt b/library/src/main/kotlin/org/contentauth/c2pa/SignerInfo.kt index 9ef80af..21ba61c 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/SignerInfo.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/SignerInfo.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa /** diff --git a/library/src/main/kotlin/org/contentauth/c2pa/SigningAlgorithm.kt b/library/src/main/kotlin/org/contentauth/c2pa/SigningAlgorithm.kt index ce767b4..1dd6b57 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/SigningAlgorithm.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/SigningAlgorithm.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa /** diff --git a/library/src/main/kotlin/org/contentauth/c2pa/Stream.kt b/library/src/main/kotlin/org/contentauth/c2pa/Stream.kt index 703994e..e6de3ed 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/Stream.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/Stream.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa import java.io.ByteArrayOutputStream diff --git a/library/src/main/kotlin/org/contentauth/c2pa/StrongBoxSigner.kt b/library/src/main/kotlin/org/contentauth/c2pa/StrongBoxSigner.kt index c39de81..ec471cd 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/StrongBoxSigner.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/StrongBoxSigner.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa import android.content.Context diff --git a/library/src/main/kotlin/org/contentauth/c2pa/WebServiceSigner.kt b/library/src/main/kotlin/org/contentauth/c2pa/WebServiceSigner.kt index 1180d0b..9419104 100644 --- a/library/src/main/kotlin/org/contentauth/c2pa/WebServiceSigner.kt +++ b/library/src/main/kotlin/org/contentauth/c2pa/WebServiceSigner.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa import android.util.Base64 diff --git a/settings.gradle.kts b/settings.gradle.kts index afd10d8..de65bf2 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + pluginManagement { repositories { google() diff --git a/signing-server/build.gradle.kts b/signing-server/build.gradle.kts index 6987c14..c6400ce 100644 --- a/signing-server/build.gradle.kts +++ b/signing-server/build.gradle.kts @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + plugins { kotlin("jvm") kotlin("plugin.serialization") diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/Application.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/Application.kt index ccce80e..40f4ebb 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/Application.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/Application.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.signingserver import io.ktor.http.HttpStatusCode diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/config/ServerConfig.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/config/ServerConfig.kt index 1d0021e..575dfc3 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/config/ServerConfig.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/config/ServerConfig.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.signingserver.config data class ServerConfig( diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PAConfigurationController.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PAConfigurationController.kt index 694b9d4..e2d3a7a 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PAConfigurationController.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PAConfigurationController.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.signingserver.controllers import io.ktor.http.HttpStatusCode diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PASigningController.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PASigningController.kt index d3dd338..2f12ab1 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PASigningController.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/C2PASigningController.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.signingserver.controllers import io.ktor.http.HttpStatusCode diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/CertificateSigningController.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/CertificateSigningController.kt index b6f7059..bd13a49 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/CertificateSigningController.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/controllers/CertificateSigningController.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.signingserver.controllers import io.ktor.http.HttpStatusCode diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/C2PASigning.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/C2PASigning.kt index 58f921b..1ca1d3d 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/C2PASigning.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/C2PASigning.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.signingserver.models import kotlinx.serialization.Serializable diff --git a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/CertificateSigning.kt b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/CertificateSigning.kt index 8191d74..bf59dfd 100644 --- a/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/CertificateSigning.kt +++ b/signing-server/src/main/kotlin/org/contentauth/c2pa/signingserver/models/CertificateSigning.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.signingserver.models import kotlinx.datetime.Instant diff --git a/test-app/app/build.gradle.kts b/test-app/app/build.gradle.kts index e015134..6f80ec2 100644 --- a/test-app/app/build.gradle.kts +++ b/test-app/app/build.gradle.kts @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + plugins { id("com.android.application") id("org.jetbrains.kotlin.android") diff --git a/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/MainActivity.kt b/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/MainActivity.kt index f33a373..8bd3ae7 100644 --- a/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/MainActivity.kt +++ b/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/MainActivity.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.testapp import android.os.Bundle diff --git a/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/TestScreen.kt b/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/TestScreen.kt index 38e72fe..dad2b73 100644 --- a/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/TestScreen.kt +++ b/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/TestScreen.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.testapp import android.content.Context diff --git a/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/ui/theme/TestTheme.kt b/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/ui/theme/TestTheme.kt index 89e1cbb..79b1a79 100644 --- a/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/ui/theme/TestTheme.kt +++ b/test-app/app/src/main/kotlin/org/contentauth/c2pa/testapp/ui/theme/TestTheme.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.testapp.ui.theme import android.app.Activity diff --git a/test-shared/build.gradle.kts b/test-shared/build.gradle.kts index c066955..476a28b 100644 --- a/test-shared/build.gradle.kts +++ b/test-shared/build.gradle.kts @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + plugins { id("com.android.library") id("org.jetbrains.kotlin.android") diff --git a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/BuilderTests.kt b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/BuilderTests.kt index fd79059..dec4a07 100644 --- a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/BuilderTests.kt +++ b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/BuilderTests.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.test.shared import kotlinx.coroutines.Dispatchers diff --git a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/CoreTests.kt b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/CoreTests.kt index a7c3960..89f292d 100644 --- a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/CoreTests.kt +++ b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/CoreTests.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.test.shared import kotlinx.coroutines.Dispatchers diff --git a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/SignerTests.kt b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/SignerTests.kt index b3b012b..fbc1293 100644 --- a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/SignerTests.kt +++ b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/SignerTests.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.test.shared import kotlinx.coroutines.Dispatchers diff --git a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/StreamTests.kt b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/StreamTests.kt index f4a7d25..e12ded6 100644 --- a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/StreamTests.kt +++ b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/StreamTests.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.test.shared import kotlinx.coroutines.Dispatchers diff --git a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/TestBase.kt b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/TestBase.kt index f7ca33c..0c4a22e 100644 --- a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/TestBase.kt +++ b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/TestBase.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.test.shared import android.content.Context diff --git a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/WebServiceTests.kt b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/WebServiceTests.kt index b2b9ebf..3960c69 100644 --- a/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/WebServiceTests.kt +++ b/test-shared/src/main/kotlin/org/contentauth/c2pa/test/shared/WebServiceTests.kt @@ -9,6 +9,7 @@ ANY KIND, either express or implied. See the LICENSE-MIT and LICENSE-APACHE files for the specific language governing permissions and limitations under each license. */ + package org.contentauth.c2pa.test.shared import kotlinx.coroutines.Dispatchers