Skip to content

Commit be267e2

Browse files
authored
Merge pull request swiftlang#6 from swiftlang/madsodgaard-patch-1
Update build from cmdline instructions for swift-java example
2 parents def8c6b + 622d0d7 commit be267e2

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

swift-java-hashing-example/README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,9 @@ As the `swift-java` project does not yet publish the neccessary Java packages ne
5353

5454
### Only building the Swift Library (`hashing-lib`)
5555

56-
1. Navigate to the `hashing-lib` directory:
56+
1. Run the Gradle assemble command from the root directory. This will compile the Swift code for all supported Android ABIs (arm64-v8a, armeabi-v7a, x86_64), run the `jextract` plugin, and package everything into an `.aar` file.
5757
```bash
58-
cd hashing-lib
59-
```
60-
61-
2. Run the Gradle assemble command. This will compile the Swift code for all supported Android ABIs (arm64-v8a, armeabi-v7a, x86_64), run the `jextract` plugin, and package everything into an `.aar` file.
62-
```bash
63-
./gradlew assembleRelease
58+
./gradlew :hashing-lib:assembleRelease
6459
```
6560

66-
3. After a successful build, the Android library will be located at `hashing-lib/build/outputs/aar/hashing-lib-release.aar`.
61+
3. After a successful build, the Android library will be located at `swift-java-hashing-example/hashing-lib/build/outputs/aar/hashing-lib-release.aar`.

0 commit comments

Comments
 (0)