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

Enable tvOS/watchOS targets #39

Closed
05nelsonm opened this issue Oct 1, 2023 · 5 comments · Fixed by #76
Closed

Enable tvOS/watchOS targets #39

05nelsonm opened this issue Oct 1, 2023 · 5 comments · Fixed by #76
Labels
blocked Issue is blocked by something

Comments

@05nelsonm
Copy link
Collaborator

Simply need to:

  • Uncomment targets in build-logic/src/main/kotlin/-KmpConfigurationExtension
  • Add to gradle.properties the following:
    • kotlin.native.cacheKind.tvosX64=none
    • kotlin.native.cacheKind.watchosX64=none
@05nelsonm
Copy link
Collaborator Author

Adding the blocked label until utelle/SQLite3MultipleCiphers#118 is resolved

@05nelsonm 05nelsonm added the blocked Issue is blocked by something label Oct 1, 2023
@05nelsonm
Copy link
Collaborator Author

05nelsonm commented Oct 2, 2023

POA is to use sed during unpack of amalgamations when building sqlite-jdbc in order to modify the sqlite3mc_amalgamation.c file and swap out the entropy implementation for darwin targets so that they will use SecRandomCopyBytes instead.

Will require bumping flag for macOS-x86_64 version-min to 10.7 and re-build.

Those same amalgamations will be copied to the library/driver/sqlite3mc/ directory and used for the native compilations, too, which will then allow for enabling of all tvOS and watchOS targets.

@05nelsonm
Copy link
Collaborator Author

Resolved in #43

Keeping this open until fix goes live upstream in SQLite3MultipleCiphers, at which time the git patch created (i.e. external/patches/0011-...) can be dropped.

@05nelsonm
Copy link
Collaborator Author

Looks like SQLite3MultipleCiphers version 1.7.0 will have the fix 🎉

@05nelsonm
Copy link
Collaborator Author

05nelsonm commented Oct 5, 2023

Waiting now until xerial/sqlite-jdbc publishes a release for SQLite version 3.43.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Issue is blocked by something
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant