Can we have android sample app as example? #5
Replies: 1 comment
-
Your questions are most easily answered by the KmpSqlencrypt repo It builds a kotlin multi-platform library using the sqlcipher plugin and the resulting libraries, for android, mac, and IOS. The scripting creates the gradle task names like the Readme for this plugin shows. In android studio I use the gradle window and double click the sqlcipherBuildAll task to build whatever builds you want that the platform you are running on supports. Of course I only do that when there is a new version of OpenSSL or Sqlcipher that I want to build, otherwise the built libraries are still present from the last sqlcipherBuildAll. That repo also shows the folder structure I use to hold the built sqlcipher libs for each platform/abi. Mac is one of the platforms I use for builds, I do most of my builds there as I can build all of what I need for IOS, android and Mac in the same build. The IOS and mac builds require the XCode install to be present but other than that not much else. Of course like the doc for the plugin already shows, you also need the Android SDK and a current NDK install for Android builds. I'll add a link to the main readme for that repo with some comments about what is in there. Once you've looked in there, lemme know what questions remain unanswered and we'll go from there. Thanks!! |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I need to build the SQL Cipher and it's very hard even for experience developer to understand how to build the project and make it work, I saw your documentation, but I could not create the project myself, the KTS files was the first challenge I got.
Could you make a simple android project as an example so we could start from there?
Or maybe a basic tutorial on how to get it setup in one kind of environment for example.
A sample app of it working would be perfectly.
I just did not see any example, on how to start?
what should I run to build the project on macOS?
I added the plugin on my gradle, but how about the classpath?
Where the DSL configuration goes?
What should be the next step to run it?
At the end how I can access the sql cipher on Android classes?
Beta Was this translation helpful? Give feedback.
All reactions