diff --git a/README.md b/README.md index a59ba21..b0941b9 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ We are brand new to objective-c, so there could be problems with our code! Installing ========== +PhoneGap 1.3.0 +-------------- + For installing with PhoneGap 1.3.0: in PGSQLitePlugin.h file change for PhoneGaps JSONKit.h implementation. @@ -24,11 +27,28 @@ in PGSQLitePlugin.h file change for PhoneGaps JSONKit.h implementation. #import "File.h" #endif -In the Project Build Phases tab, select the "Link Binary with Libraries" dropdown menu and add 2 libraries: +and in PGSQLitePlugin.m JSONRepresentation must be changed to JSONString: -libsqlite3.0.dylib -libsqlite3.dylib + --- a/Plugins/PGSQLitePlugin.m + +++ b/Plugins/PGSQLitePlugin.m + @@ -219,7 +219,7 @@ + if (hasInsertId) { + [resultSet setObject:insertId forKey:@"insertId"]; + } + - [self respond:callback withString:[resultSet JSONRepresentation] withType:@"success"]; + + [self respond:callback withString:[resultSet JSONString] withType:@"success"]; + } + } +SQLite library +-------------- + +In the Project "Build Phases" tab, select the _first_ "Link Binary with Libraries" dropdown menu and add the library `libsqlite3.dylib` or `libsqlite3.0.dylib`. + +**NOTE:** In the "Build Phases" there can be multiple "Link Binary with Libraries" dropdown menus. Please select the first one otherwise it will not work. + +PGSQLite Plugin +--------------- Drag .h and .m files into your project's Plugins folder (in xcode) -- I always just have "Create references" as the option selected.