Merge pull request #21 from chbrody/README-fix

Fix README.md for PhoneGap 1.3 changes
This commit is contained in:
Davide 2012-03-23 02:20:09 -07:00
commit 34302bbde1

View File

@ -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.