Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

docs: Add link to Android aar and update installation instructions #66

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

jakubkoci
Copy link
Contributor

@jakubkoci jakubkoci commented Jan 29, 2023

I uploaded the Android .aar file to the Release 0.2.2, similarly we did with iOS dependency. Although the library still must be downloaded manually, it significantly simplifies the installation for Android.

Signed-off-by: Jakub Koci <jakub.koci@gmail.com>
@@ -48,50 +48,42 @@ allprojects {
}
```

### 3. Add JNA library dependency
### 3. Download Android libindy binaries
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have any instructions on how to build the .aar file? Otherwise could we also keep the non-aar instructions in here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you can do it in the following way:

  • In Android Studio, click File > New > New Module and select Android Library.
  • The simplest way to add so files into an aar file is to create a folder jniLibs under src/main And then copy *.so files into the folder:
src/main/jniLibs/<abi>/*.so

```groovy
android {
// ...
packagingOptions {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can exclude those from the .aar as they'll be provided by the App's environment itself.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't build the project right now because of some security restrictions on my computer, but I'll look at it later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see that I already had it in the Android module I used to build aar:

packagingOptions {
        excludes = ["**/libc++_shared.so", "**/libfbjni.so", "**/libjsi.so", "**/libreactnativejni.so", "**/libjscexecutor.so", "**/libhermes.so"]
    }

So, it seems it doesn't help

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay. Let's do it!

```groovy
android {
// ...
packagingOptions {
Copy link
Contributor

Choose a reason for hiding this comment

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

Okay. Let's do it!

@TimoGlastra TimoGlastra merged commit 67bf8e1 into main Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants