mirror of
https://github.com/moparisthebest/PhoneGap-SQLitePlugin-Android
synced 2024-11-29 11:52:16 -05:00
In README.md: document change to Plugins/PGSQLitePlugin.m for PG1.3, only 1 sqlite library
is required, add <h2> subsections to Installing, and warning to use the _first_ "Link Binary with Libraries" dropdown menu.
This commit is contained in:
parent
98076ebacd
commit
4fe8acc380
26
README.md
26
README.md
@ -8,6 +8,9 @@ We are brand new to objective-c, so there could be problems with our code!
|
|||||||
Installing
|
Installing
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
PhoneGap 1.3.0
|
||||||
|
--------------
|
||||||
|
|
||||||
For installing with PhoneGap 1.3.0:
|
For installing with PhoneGap 1.3.0:
|
||||||
in PGSQLitePlugin.h file change for PhoneGaps JSONKit.h implementation.
|
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"
|
#import "File.h"
|
||||||
#endif
|
#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
|
--- a/Plugins/PGSQLitePlugin.m
|
||||||
libsqlite3.dylib
|
+++ 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
|
Drag .h and .m files into your project's Plugins folder (in xcode) -- I always
|
||||||
just have "Create references" as the option selected.
|
just have "Create references" as the option selected.
|
||||||
|
Loading…
Reference in New Issue
Block a user