From 4fe8acc3804bc33f1ee35a9341be1ec849fee41c Mon Sep 17 00:00:00 2001 From: Chris Brody Date: Fri, 23 Mar 2012 08:55:19 +0100 Subject: [PATCH] In README.md: document change to Plugins/PGSQLitePlugin.m for PG1.3, only 1 sqlite library is required, add

subsections to Installing, and warning to use the _first_ "Link Binary with Libraries" dropdown menu. --- README.md | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) 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.