refactor: updates build scripts

Updates build scripts to account for the updated naming convention.
Updates bindings accordingly.
This commit is contained in:
coreyphillips
2024-10-29 19:47:33 -04:00
parent 693106a2e1
commit 58870cab6a
26 changed files with 929 additions and 857 deletions

View File

@@ -1,8 +1,8 @@
const fs = require('fs').promises;
const path = require('path');
const ktPath = 'rust/bindings/android/pubkymobile.kt';
const ktDestinationPath = 'android/src/main/java/uniffi/pubkymobile/';
const ktPath = 'rust/bindings/android/pubkycore.kt';
const ktDestinationPath = 'android/src/main/java/uniffi/pubkycore/';
const jniPath = 'rust/bindings/android/jniLibs';
const jniDestinationPath = 'android/src/main/jniLibs/';
@@ -24,7 +24,7 @@ async function runSetup() {
console.log('Copying Kotlin file...');
// Copy Kotlin file to destination
const ktTargetPath = path.join(ktDestinationPath, 'pubkymobile.kt');
const ktTargetPath = path.join(ktDestinationPath, 'pubkycore.kt');
await fs.copyFile(ktPath, ktTargetPath);
console.log('Copying JNI libraries...');