mirror of
https://github.com/aljazceru/react-native-pubky.git
synced 2025-12-17 22:54:29 +01:00
refactor: updates build scripts
Updates build scripts to account for the updated naming convention. Updates bindings accordingly.
This commit is contained in:
@@ -4,11 +4,11 @@ const simpleGit = require('simple-git');
|
||||
|
||||
// Configuration
|
||||
const repoOwner = 'pubky';
|
||||
const repoName = 'pubky-core-mobile-sdk';
|
||||
const repoName = 'pubky-core-ffi';
|
||||
const branch = 'main';
|
||||
const frameworkPath = 'bindings/ios/PubkyMobile.xcframework';
|
||||
const frameworkPath = 'bindings/ios/PubkyCore.xcframework';
|
||||
const frameworkDestinationPath = 'ios/Frameworks';
|
||||
const swiftFilePath = 'bindings/ios/pubkymobile.swift';
|
||||
const swiftFilePath = 'bindings/ios/pubkycore.swift';
|
||||
const swiftDestinationPath = 'ios/';
|
||||
const tempDir = 'temp';
|
||||
|
||||
@@ -18,7 +18,7 @@ async function runSetup() {
|
||||
// Remove destination directories if they exist & Clean up any lingering temporary directory
|
||||
await Promise.all([
|
||||
fs.rm(frameworkDestinationPath, { recursive: true, force: true }),
|
||||
fs.rm('ios/pubkymobile.swift', { recursive: true, force: true }),
|
||||
fs.rm('ios/pubkycore.swift', { recursive: true, force: true }),
|
||||
fs.rm(tempDir, { recursive: true, force: true }),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user