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

Add gradle task to unzip amalgamations to local build directory #101

Open
05nelsonm opened this issue Dec 11, 2023 · 3 comments
Open

Add gradle task to unzip amalgamations to local build directory #101

05nelsonm opened this issue Dec 11, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@05nelsonm
Copy link
Collaborator

current build process is that of:

  • build sqlite-jdbc
  • amalgamations are then copied to library/driver/sqlite3mc
  • cklib compiles natively

This will blow up version control. Need to setup a gradle task to download the amalgamations to root project build directory, which then get unzipped to the project module's build directory at build time so that cklib can compile things.

@05nelsonm 05nelsonm added the enhancement New feature or request label Dec 11, 2023
@05nelsonm
Copy link
Collaborator Author

05nelsonm commented Dec 11, 2023

Everything that is checked into git (jar files) currently should also be compressed so that, at build time, it can be decompressed to the build directory as needed.

@05nelsonm
Copy link
Collaborator Author

Thought about this further. The flow should be this:

  • build sqlite-jdbc via external/task.sh
  • sign macOS/mingw libs
  • zip the jarfile, signed libs, and a SQLite3MultipleCiphers file containing the URL to download the amalgamations.
  • commit zip file to separate branch (e.g. sqlite-jdbc-{version})
  • master branch downloads the zip file to root project build directory
  • unzip jar file and signed libs to library/driver/build so repack task can run
  • download amalgamations to root project build directory
  • unzip amalgamations to library/driver/build so cklib can build Darwin targets.

@05nelsonm
Copy link
Collaborator Author

Removed all of the unnecessary native libs from library/android-unit-test/src/main/resources/org/sqlitenative, library/driver/src/androidMain/jniLibs, and external/libs/unsigned and added .gitignore files in #110.

It's better, but still have that .jar file and libs from external/libs/signed to figure out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant