Skip to content
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

Fix build for android #445

Merged
merged 6 commits into from
Mar 20, 2024
Merged

Fix build for android #445

merged 6 commits into from
Mar 20, 2024

Conversation

DelevoXDG
Copy link
Contributor

@DelevoXDG DelevoXDG commented Mar 19, 2024

Describe your changes

Fix errors and warnings observed when running :android:compileDebugKotlin that caused 0.11.1 release to fail.

  • Don't use BigInteger.TWO: not supported in Java 1.8
  • android deps
    • Add kotlin-reflect
    • Bump and format deps
  • Update NativeLoader to handle System.getProperty() returning null

Linked issues

Closes

Breaking changes

  • This issue contains breaking changes

- Use `BigInteger.valueOf(2)` instead
- Reason: not supported in Java 1.8
- Update `NativeLoader` to handle `System.getProperty()` returning null
- Bump `org.bouncycastle:bcprov-jdk18on` to 1.77
- Bump `com.squareup.okhttp3:okhttp` to 4.12.0
- Remove unnecessary parenthesis; Use strings
implementation 'org.bouncycastle:bcprov-jdk18on:1.76'
implementation("com.squareup.okhttp3:okhttp:4.11.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
implementation 'org.bouncycastle:bcprov-jdk18on:1.77'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you tried to build it locally + run the demo? I vaguely remember we had some problems last time we tried to bump some deps

Copy link
Contributor Author

@DelevoXDG DelevoXDG Mar 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it now builds locally with no errors.

As for the demo, we'd need to do #389 and as of now, it would be much easier to test demo once we actually release the new version.

Co-authored-by: Wojciech Szymczyk <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 71.12%. Comparing base (2131ce4) to head (41b9ee3).

Files Patch % Lines
...tlin/com/swmansion/starknet/crypto/NativeLoader.kt 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #445      +/-   ##
==========================================
- Coverage   71.17%   71.12%   -0.06%     
==========================================
  Files          75       75              
  Lines        3337     3338       +1     
  Branches      366      367       +1     
==========================================
- Hits         2375     2374       -1     
- Misses        797      798       +1     
- Partials      165      166       +1     

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

@DelevoXDG DelevoXDG merged commit d28b008 into main Mar 20, 2024
2 checks passed
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.

3 participants