Commit 74b5310d authored by Matyáš Latner's avatar Matyáš Latner

#25 SQLite driver for iOS

parent 90612489
...@@ -88,6 +88,7 @@ project(":desktop") { ...@@ -88,6 +88,7 @@ project(":desktop") {
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop" compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
compile "net.engio:mbassador:$mbassadorVersion" compile "net.engio:mbassador:$mbassadorVersion"
compile "com.jcabi:jcabi-manifests:1.1" compile "com.jcabi:jcabi-manifests:1.1"
compile "org.xerial:sqlite-jdbc:$sqlLiteJdbcVersion"
} }
} }
...@@ -157,7 +158,6 @@ project(":core") { ...@@ -157,7 +158,6 @@ project(":core") {
compile "net.dermetfan.libgdx-utils:libgdx-utils:$gdxUtilsVersion" compile "net.dermetfan.libgdx-utils:libgdx-utils:$gdxUtilsVersion"
compile "net.engio:mbassador:$mbassadorVersion" compile "net.engio:mbassador:$mbassadorVersion"
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion" compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
compile "org.xerial:sqlite-jdbc:$sqlLiteJdbcVersion"
testCompile "junit:junit:4.11" testCompile "junit:junit:4.11"
testCompile "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion" testCompile "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
......
...@@ -19,8 +19,9 @@ public class SqliteStorage { ...@@ -19,8 +19,9 @@ public class SqliteStorage {
private enum SQLDriverType { private enum SQLDriverType {
DESKTOP(Application.ApplicationType.Desktop, "org.sqlite.JDBC", "jdbc:sqlite:"), DESKTOP (Application.ApplicationType.Desktop, "org.sqlite.JDBC", "jdbc:sqlite:"),
ANDROID(Application.ApplicationType.Android, "org.sqldroid.SQLDroidDriver", "jdbc:sqldroid:"); ANDROID (Application.ApplicationType.Android, "org.sqldroid.SQLDroidDriver", "jdbc:sqldroid:"),
IOS (Application.ApplicationType.iOS, "SQLite.JDBCDriver", "jdbc:sqlite:");
private Application.ApplicationType applicationType; private Application.ApplicationType applicationType;
private String driverName; private String driverName;
......
...@@ -31,10 +31,11 @@ ...@@ -31,10 +31,11 @@
<pattern>com.android.org.bouncycastle.crypto.digests.AndroidDigestFactoryOpenSSL</pattern> <pattern>com.android.org.bouncycastle.crypto.digests.AndroidDigestFactoryOpenSSL</pattern>
<pattern>org.apache.harmony.security.provider.cert.DRLCertFactory</pattern> <pattern>org.apache.harmony.security.provider.cert.DRLCertFactory</pattern>
<pattern>org.apache.harmony.security.provider.crypto.CryptoProvider</pattern> <pattern>org.apache.harmony.security.provider.crypto.CryptoProvider</pattern>
<pattern>SQLite.**</pattern>
</forceLinkClasses> </forceLinkClasses>
<libs> <libs>
<lib>build/libs/ios/libgdx.a</lib>
<lib>build/libs/ios/libgdx-freetype.a</lib> <lib>build/libs/ios/libgdx-freetype.a</lib>
<lib>build/libs/ios/libgdx.a</lib>
<lib>build/libs/ios/libObjectAL.a</lib> <lib>build/libs/ios/libObjectAL.a</lib>
</libs> </libs>
<frameworks> <frameworks>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment