fix: fix name conflict

Resolves name conflicts with other native modules.
Bump version to 0.1.1.
This commit is contained in:
coreyphillips
2024-09-15 12:35:12 -04:00
parent 9dcb906636
commit 31ecec8366
58 changed files with 14698 additions and 32882 deletions

View File

@@ -23,7 +23,7 @@ const setupAndroidCommand = `
cargo install cargo-ndk && \\
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android && \\
cargo ndk -o ./app/src/main/jniLibs --manifest-path ./Cargo.toml -t armeabi-v7a -t arm64-v8a -t x86 -t x86_64 build --release && \\
cargo run --bin uniffi-bindgen generate --library ./target/release/libmobile.dylib --language kotlin --out-dir ./app/src/main/java/tech/forgen/todolist/rust
cargo run --bin uniffi-bindgen generate --library ./target/release/libpubkymobile.dylib --language kotlin --out-dir ./app/src/main/java/tech/forgen/todolist/rust
`;
const postSetupAndroid = async () => {
@@ -38,8 +38,8 @@ const postSetupAndroid = async () => {
'todolist',
'rust',
'uniffi',
'mobile',
'mobile.kt'
'pubkymobile',
'pubkymobile.kt'
);
const androidMobileKt = path.resolve(
'android',
@@ -47,8 +47,8 @@ const postSetupAndroid = async () => {
'main',
'java',
'uniffi',
'mobile',
'mobile.kt'
'pubkymobile',
'pubkymobile.kt'
);
// Create the destination directory if it doesn't exist