-
Notifications
You must be signed in to change notification settings - Fork 4
docs: Add docs and web publishing #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| name: Documentation | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - docs | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: "pages" | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| build-docs: | ||
| name: Build Documentation | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: "17" | ||
| distribution: "temurin" | ||
|
|
||
| - name: Setup Android SDK | ||
| uses: android-actions/setup-android@v3 | ||
|
|
||
| - name: Setup Gradle | ||
| uses: gradle/actions/setup-gradle@v3 | ||
|
|
||
| - name: Build Documentation | ||
| run: make docs | ||
|
|
||
| - name: Upload Documentation Artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: ./build/docs | ||
|
|
||
| deploy: | ||
| name: Deploy to GitHub Pages | ||
| needs: build-docs | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Module c2pa-android | ||
|
|
||
| C2PA Android is a Kotlin wrapper around the C2PA C API, providing content authenticity and provenance functionality for Android applications. | ||
|
|
||
| ## Overview | ||
|
|
||
| This library enables Android applications to create, read, and validate C2PA manifests, which provide cryptographic proof of content origin and history. The library uses JNI to bridge native C2PA libraries with Android's Kotlin/Java ecosystem. | ||
|
|
||
| ## Core Components | ||
|
|
||
| ### Content Authenticity | ||
|
|
||
| - [Reader] - Read and validate C2PA manifests from media files | ||
| - [Builder] - Create new C2PA manifests with claims, assertions, and ingredients | ||
|
|
||
| ### Signing Methods | ||
|
|
||
| The library supports multiple signing approaches: | ||
|
|
||
| - **Direct signing** - Sign with in-memory private keys using [SignerInfo] | ||
| - **Callback signing** - Implement custom signing logic with [Signer] | ||
| - **Web service signing** - Delegate signing to remote servers with [WebServiceSigner] | ||
| - **Hardware security** - Use device hardware security modules with [StrongBoxSigner] or [KeyStoreSigner] | ||
|
|
||
| ### Hardware Security Integration | ||
|
|
||
| - [StrongBoxSigner] - Hardware-backed signing using Android StrongBox | ||
| - [KeyStoreSigner] - Android Keystore signing with optional biometric authentication | ||
| - [CertificateManager] - Certificate generation and management for Android Keystore | ||
|
|
||
| ## Platform Requirements | ||
|
|
||
| - **Minimum Android SDK**: 28 (Android 9.0 Pie) | ||
| - **Target Android SDK**: 35 | ||
| - **Kotlin**: 1.9+ | ||
| - **Hardware security** (optional): Devices with StrongBox or TEE support |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the content from this file get folded into the generated docs? I don't see it anywhere in https://contentauth.github.io/c2pa-android/c2pa-android/org.contentauth.c2pa/index.html and search doesn't return any hits either.
I would assume due to its location that it should be incorporated into the generated docs, but If it's actually meant for consumption in GitHub, then there are some minor formatting issues that should be fixed and it should be probably be moved to better location.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The module name at the top of the file needed to be changed to exactly match the package. Now that that's done, the intro is showing on the site: https://contentauth.github.io/c2pa-android/
Happy to make any formatting changes.