Skip to content

Feat: crJSON and Builder archive updates#108

Open
redaranj wants to merge 3 commits into
contentauth:mainfrom
redaranj:feat/crjson-and-builder-archive
Open

Feat: crJSON and Builder archive updates#108
redaranj wants to merge 3 commits into
contentauth:mainfrom
redaranj:feat/crjson-and-builder-archive

Conversation

@redaranj

Copy link
Copy Markdown
Member

Changes in this pull request

Adds Reader.crJSON() to return the new manifest JSON export format. Migrates Builder.fromArchive to the context-based API. Bumps c2pa-rs version to v0.90.0.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • All applicable changes have been documented
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment

redaranj added 3 commits July 17, 2026 08:52
Set c2paVersion=v0.90.0 in library/gradle.properties. All FFI functions
the JNI bridge calls are present in the 0.90.0 header with unchanged
signatures; the functions 0.90.0 removes were already migrated off.
Add Reader.crJSON() over c2pa_reader_crjson, alongside json() and
detailedJson(), wired through the JNI bridge. Includes shared and
Android instrumented tests.
Route nativeFromArchive through c2pa_builder_from_context and
c2pa_builder_with_archive, which replace c2pa_builder_from_archive
in c2pa-rs 0.90.0. The Kotlin API is unchanged.
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.21%. Comparing base (bc05c2b) to head (5868c19).

Files with missing lines Patch % Lines
...ary/src/main/kotlin/org/contentauth/c2pa/Reader.kt 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #108      +/-   ##
============================================
- Coverage     72.25%   72.21%   -0.04%     
  Complexity       38       38              
============================================
  Files            62       62              
  Lines          2346     2350       +4     
  Branches        284      286       +2     
============================================
+ Hits           1695     1697       +2     
- Misses          494      495       +1     
- Partials        157      158       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@redaranj
redaranj requested a review from scouten-adobe July 21, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant