Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-neal committed Aug 13, 2024
2 parents 3f9dd89 + 0f5bc22 commit d80e411
Show file tree
Hide file tree
Showing 27 changed files with 665 additions and 232 deletions.
75 changes: 0 additions & 75 deletions .github/workflows/bound-ci-kt.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ Cargo.lock

.hermit/
.idea/

# Do not put native binaries in source control
bound/kt/src/main/resources/*.dylib
bound/kt/src/main/resources/*.so
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# The format is described: https://github.blog/2017-07-06-introducing-code-owners/

# These owners will be the default owners for everything in the repo.
* @KendallWeihe @nitro-neal @kirahsapong @shamilovtim @diehuxx @decentralgabe @frankhinek
* @KendallWeihe @nitro-neal @kirahsapong @shamilovtim @diehuxx @decentralgabe @frankhinek @leordev @ALRubinger


# -----------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ bind-kotlin: setup
generate --library bound/kt/src/main/resources/libweb5_uniffi_aarch64_apple_darwin.dylib \
--language kotlin \
--out-dir target/bindgen-kotlin
sed -i '' 's/findLibraryName(componentName)/detectSystemTarget()/' target/bindgen-kotlin/web5/sdk/rust/web5.kt
cp target/bindgen-kotlin/web5/sdk/rust/web5.kt bound/kt/src/main/kotlin/web5/sdk/rust/UniFFI.kt

test-bound: setup
Expand Down
1 change: 1 addition & 0 deletions bindings/web5_uniffi/libtargets/aarch64_apple_darwin/build
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ rustup target add aarch64-apple-darwin
(
cd $REPO_DIR;
cargo build --target aarch64-apple-darwin --release --package web5_uniffi;
mkdir -p bound/kt/src/main/resources;
cp target/aarch64-apple-darwin/release/libweb5_uniffi.dylib \
bound/kt/src/main/resources/libweb5_uniffi_aarch64_apple_darwin.dylib
)
1 change: 1 addition & 0 deletions bindings/web5_uniffi/libtargets/x86_64_apple_darwin/build
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ rustup target add x86_64-apple-darwin
cargo build --target x86_64-apple-darwin --release \
--package web5_uniffi \
--features x86_64_apple_darwin;
mkdir -p bound/kt/src/main/resources;
cp target/x86_64-apple-darwin/release/libweb5_uniffi.dylib \
bound/kt/src/main/resources/libweb5_uniffi_x86_64_apple_darwin.dylib
)
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ docker build -f $(pwd)/Dockerfile -t $IMAGE_NAME $REPO_DIR

docker run -d --name $CONTAINER_NAME $IMAGE_NAME

mkdir -p $REPO_DIR/bound/kt/src/main/resources;

docker cp $CONTAINER_NAME:/usr/src/myapp/target/release/libweb5_uniffi.so \
$REPO_DIR/bound/kt/src/main/resources/libweb5_uniffi_x86_64_unknown_linux_gnu.so

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ docker build -f $(pwd)/Dockerfile -t $IMAGE_NAME $REPO_DIR

docker run -d --name $CONTAINER_NAME $IMAGE_NAME

mkdir -p $REPO_DIR/bound/kt/src/main/resources;

docker cp $CONTAINER_NAME:/usr/src/myapp/target/release/libweb5_uniffi.so \
$REPO_DIR/bound/kt/src/main/resources/libweb5_uniffi_x86_64_unknown_linux_musl.so

Expand Down
29 changes: 29 additions & 0 deletions bound/kt/.maven_settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<settings>
<servers>
<server>
<id>github</id>
<username>tbd-releases</username>
<password>${env.TBD_RELEASE_GITHUB_PERSONAL_ACCESS_TOKEN}</password>
</server>
<server>
<id>tbd-oss-releases</id>
<username>${env.ARTIFACTORY_USERNAME}</username>
<password>${env.ARTIFACTORY_PASSWORD}</password>
</server>
<server>
<id>tbd-oss-snapshots</id>
<username>${env.ARTIFACTORY_USERNAME}</username>
<password>${env.ARTIFACTORY_PASSWORD}</password>
</server>
<server>
<id>ossrh-snapshots</id>
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
<server>
<id>ossrh-releases</id>
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
</servers>
</settings>
Loading

0 comments on commit d80e411

Please sign in to comment.