aj
01/12/2024, 7:11 PMshared/build/outputs/aar/shared-debug.aar
for Android and shared/build/bin/iosArm64/debugFramework/shared.framework
for iOS
Upon extracting the shared
file that got generated on iOS, it appears to be holding a binary generated file targeting Mach-O 64-bit object arm64
which is what's expected.
Now, what's confusing, I extracted the shared-debug.aar
file generated for Android, and couldn't find any .so
file, however I am pretty sure I use at some point in life some Kotlin code that got converted into a binary object/ or ELF
that gets executed on Linux
. 🤔
How to use Kotlin to have the AAR
have a binary shared object from my Kotlin code? 🤔Landry Norris
01/12/2024, 8:37 PMaj
01/12/2024, 8:42 PMLandry Norris
01/12/2024, 8:43 PMaj
01/12/2024, 8:43 PMLandry Norris
01/12/2024, 8:44 PMLandry Norris
01/12/2024, 8:47 PMaj
01/12/2024, 8:48 PMaj
01/12/2024, 8:49 PMLandry Norris
01/12/2024, 8:49 PMLandry Norris
01/12/2024, 8:51 PMaj
01/12/2024, 8:54 PMaj
01/12/2024, 8:58 PMaj
01/12/2024, 8:59 PMsharedLib()
and now there's an .so and a .h fileaj
01/12/2024, 9:01 PMaj
01/12/2024, 9:04 PMLandry Norris
01/12/2024, 9:24 PMaj
01/12/2024, 9:29 PMaj
01/12/2024, 9:29 PMaj
01/12/2024, 9:36 PM<https://github.com/Kotlin/kotlinconf-spinner>
aj
01/12/2024, 9:39 PMaj
01/12/2024, 9:39 PMLandry Norris
01/12/2024, 11:12 PMaj
01/12/2024, 11:17 PMaj
01/12/2024, 11:17 PMaj
01/12/2024, 11:19 PMLandry Norris
01/12/2024, 11:22 PMaj
01/12/2024, 11:25 PMLandry Norris
01/12/2024, 11:27 PMaj
01/12/2024, 11:28 PMaj
01/12/2024, 11:28 PMLandry Norris
01/12/2024, 11:28 PMaj
01/12/2024, 11:30 PMaj
01/12/2024, 11:30 PMLandry Norris
01/12/2024, 11:31 PM./gradlew prepareAndroidNdkSo
aj
01/12/2024, 11:32 PMaj
01/12/2024, 11:32 PMaj
01/12/2024, 11:33 PMLandry Norris
01/12/2024, 11:33 PMaj
01/12/2024, 11:33 PMLandry Norris
01/12/2024, 11:34 PMLandry Norris
01/12/2024, 11:35 PMaj
01/12/2024, 11:38 PMaj
01/12/2024, 11:38 PMaj
01/12/2024, 11:38 PMaj
01/12/2024, 11:40 PMLandry Norris
01/12/2024, 11:41 PMaj
01/12/2024, 11:41 PMaj
01/12/2024, 11:42 PMaj
01/12/2024, 11:42 PMLandry Norris
01/12/2024, 11:42 PMaj
01/12/2024, 11:43 PMaj
01/12/2024, 11:43 PMaj
01/12/2024, 11:43 PMLandry Norris
01/12/2024, 11:43 PMaj
01/12/2024, 11:45 PMcopy {
from(debugArm64SoFolder)
into(jniArm64Folder)
include("*.so")
}
that's what I have nowaj
01/12/2024, 11:51 PMaj
01/12/2024, 11:52 PMaj
01/12/2024, 11:52 PMLandry Norris
01/13/2024, 12:03 AMaj
01/13/2024, 12:05 AMaj
01/13/2024, 12:06 AMaj
01/13/2024, 12:07 AMaj
01/13/2024, 12:09 AM├── AndroidManifest.xml
├── META-INF
│ └── com
│ └── android
│ └── build
│ └── gradle
│ └── aar-metadata.properties
├── R.txt
├── classes.jar
├── jni
│ └── arm64-v8a
│ └── libutils.so
└── libutils-debug.aar
and the classes.jar file is only 22 bytes and is empty upon extractionaj
01/13/2024, 12:31 AMaj
01/13/2024, 12:33 AM./gradlew :shared:android64Binaries
./gradlew :shared:assembleDebug
aj
01/13/2024, 12:33 AMLandry Norris
01/13/2024, 12:50 AMaj
01/13/2024, 1:15 AMaj
01/13/2024, 1:17 AMaj
01/13/2024, 2:40 AMaj
01/13/2024, 2:41 AMaj
01/13/2024, 2:41 AMaj
01/13/2024, 11:01 PMLandry Norris
01/13/2024, 11:04 PMaj
01/14/2024, 1:21 PMaj
01/14/2024, 1:22 PMaj
01/14/2024, 1:23 PM