Skip to content

Commit

Permalink
more renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
krizzu committed Feb 3, 2024
1 parent ed3557f commit 42bdebf
Show file tree
Hide file tree
Showing 20 changed files with 13 additions and 18 deletions.
9 changes: 6 additions & 3 deletions SQLiteStorage.podspec → AsyncStorageSQLiteKMP.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ require "json"

info = JSON.parse(File.read(File.join(__dir__, "package_info.json")))

podspecName = info["darwin"]["podspec_name"]
frameworkName = info["darwin"]["xcframework_name"]

Pod::Spec.new do |spec|
spec.name = info["darwin"]["podspec_name"]
spec.name = podspecName
spec.version = info["version"]
spec.summary = info["description"]
spec.homepage = info["homepage"]
Expand All @@ -13,8 +16,8 @@ Pod::Spec.new do |spec|

spec.platforms = { :ios => "13.0" }

spec.vendored_frameworks = "SQLiteStorage/#{info["darwin"]["xcframework_name"]}.xcframework"
spec.source_files = "SQLiteStorage/src/**/*.{swift}"
spec.vendored_frameworks = "#{podspecName}/#{frameworkName}.xcframework"
spec.source_files = "#{podspecName}/src/**/*.{swift}"

spec.dependency "KMPNativeCoroutinesAsync", "1.0.0-ALPHA-24"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public typealias StorageAsyncSequence<T, E: Error> = NativeFlowAsyncSequence<T,
/**
todo: retrieve items via kotlin flow
*/
public struct SQLiteStorage {
public struct AsyncStorageSQLite {

public let name: String
public let files: DatabaseFiles
Expand Down
2 changes: 1 addition & 1 deletion package_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"date": "2023"
},
"darwin": {
"podspec_name": "SQLiteStorage",
"podspec_name": "AsyncStorageSQLiteKMP",
"xcframework_name": "SQLiteStorageKMP"
},
"android": {
Expand Down
2 changes: 1 addition & 1 deletion samples/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ target 'iosExample' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

pod 'SQLiteStorage', :path => '../../'
pod 'AsyncStorageSQLiteKMP', :path => '../../'

end
12 changes: 2 additions & 10 deletions samples/ios/iosExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
OTHER_LDFLAGS = (
"$(inherited)",
"-framework",
SqliteStorage,
);
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = com.asyncstorage.sqlite.ios.example;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -376,11 +372,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
OTHER_LDFLAGS = (
"$(inherited)",
"-framework",
SqliteStorage,
);
OTHER_LDFLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = com.asyncstorage.sqlite.ios.example;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
4 changes: 2 additions & 2 deletions samples/ios/iosExample/ContentView.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import SwiftUI
import SQLiteStorage
import AsyncStorageSQLiteKMP

struct ContentView: View {
let db = SQLiteStorage(name: "example.db")
let db = AsyncStorageSQLite(name: "example.db")
let randomKey = "random"


Expand Down

0 comments on commit 42bdebf

Please sign in to comment.