Last active
May 15, 2019 16:49
-
-
Save stigi/5c972cd1d47b8486633ce29cbf9469d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@nozbe/watermelondb/WatermelonDB.podspec b/node_modules/@nozbe/watermelondb/WatermelonDB.podspec | |
new file mode 100644 | |
index 0000000..bb0eac2 | |
--- /dev/null | |
+++ b/node_modules/@nozbe/watermelondb/WatermelonDB.podspec | |
@@ -0,0 +1,19 @@ | |
+require "json" | |
+ | |
+Pod::Spec.new do |s| | |
+ # NPM package specification | |
+ package = JSON.parse(File.read(File.join(File.dirname(__FILE__), "package.json"))) | |
+ | |
+ s.name = "WatermelonDB" | |
+ s.version = package["version"] | |
+ s.summary = package["description"] | |
+ s.homepage = package["homepage"] | |
+ s.license = package["license"] | |
+ s.author = package["author"] | |
+ s.platform = :ios, "8.0" | |
+ s.source = { :git => "https://github.com/Nozbe/WatermelonDB.git", :tag => "master" } | |
+ s.source_files = "native/ios/WatermelonDB/*.{h,m,swift}" | |
+ s.public_header_files = "native/ios/*/*.h" | |
+ s.dependency "React" | |
+ s.dependency "FMDB" | |
+end | |
diff --git a/node_modules/@nozbe/watermelondb/native/ios/WatermelonDB/Database.swift b/node_modules/@nozbe/watermelondb/native/ios/WatermelonDB/Database.swift | |
index d11677c..06e4b0a 100644 | |
--- a/node_modules/@nozbe/watermelondb/native/ios/WatermelonDB/Database.swift | |
+++ b/node_modules/@nozbe/watermelondb/native/ios/WatermelonDB/Database.swift | |
@@ -1,4 +1,5 @@ | |
import Foundation | |
+import FMDB | |
class Database { | |
typealias SQL = String | |
diff --git a/node_modules/@nozbe/watermelondb/native/ios/WatermelonDB/DatabaseBridge.swift b/node_modules/@nozbe/watermelondb/native/ios/WatermelonDB/DatabaseBridge.swift | |
index 8591163..18ecabf 100644 | |
--- a/node_modules/@nozbe/watermelondb/native/ios/WatermelonDB/DatabaseBridge.swift | |
+++ b/node_modules/@nozbe/watermelondb/native/ios/WatermelonDB/DatabaseBridge.swift | |
@@ -1,4 +1,5 @@ | |
import Foundation | |
+import React | |
@objc(DatabaseBridge) | |
final public class DatabaseBridge: NSObject { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment