Skip to content

Commit c517578

Browse files
committed
Upgraded to androidx and LiquidCore 0.7.0
1 parent c007c2e commit c517578

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed

liquidcore/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77

88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.3.0'
10+
classpath 'com.android.tools.build:gradle:3.4.2'
1111
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1212
classpath 'de.undercouch:gradle-download-task:3.4.3'
1313
}

liquidcore/node-sqlite3/build.gradle

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ android {
88
versionCode 1
99
versionName "0.1.4"
1010
setProperty("archivesBaseName", "node-sqlite3")
11-
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
11+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1212
externalNativeBuild {
1313
cmake {
1414
abiFilters "x86", "armeabi-v7a", "x86_64", "arm64-v8a"
@@ -35,18 +35,22 @@ configurations {
3535

3636
dependencies {
3737
implementation fileTree(dir: 'libs', include: ['*.jar'])
38-
implementation 'com.android.support:appcompat-v7:28.0.0'
39-
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
38+
implementation 'androidx.appcompat:appcompat:1.1.0'
4039
testImplementation 'junit:junit:4.12'
41-
androidTestImplementation 'com.android.support.test:runner:1.0.2'
42-
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
40+
androidTestImplementation 'androidx.annotation:annotation:1.1.0'
41+
androidTestImplementation 'androidx.test:runner:1.2.0'
42+
androidTestImplementation 'androidx.test:rules:1.2.0'
4343

4444
if (findProject(':LiquidCore') != null) {
4545
liquidcore project(path: ':LiquidCore', configuration: 'default')
46+
liquidcore project(path: ':LiquidV8', configuration: 'default')
4647
implementation project(':LiquidCore')
48+
implementation project(':LiquidV8')
4749
} else {
48-
liquidcore 'com.github.LiquidPlayer:LiquidCore:0.6.0'
49-
implementation 'com.github.LiquidPlayer:LiquidCore:0.6.0'
50+
liquidcore 'com.github.LiquidPlayer:LiquidCore:0.7.0'
51+
liquidcore 'com.github.LiquidPlayer:LiquidV8:0.7.0'
52+
implementation 'com.github.LiquidPlayer:LiquidCore:0.7.0'
53+
implementation 'com.github.LiquidPlayer:LiquidV8:0.7.0'
5054
}
5155
}
5256

liquidcore/node-sqlite3/src/androidTest/java/org/liquidplayer/node_sqlite3/SQLite3Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package org.liquidplayer.node_sqlite3;
22

33
import android.content.Context;
4-
import android.support.test.InstrumentationRegistry;
5-
import android.support.test.runner.AndroidJUnit4;
4+
import androidx.test.InstrumentationRegistry;
5+
import androidx.test.runner.AndroidJUnit4;
66

77
import org.junit.Test;
88
import org.junit.runner.RunWith;

liquidcore/node-sqlite3/src/main/cpp/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ find_library(
3434
log)
3535

3636
add_library(
37-
node-lib
37+
js-lib
3838
SHARED
3939
IMPORTED
4040
)
@@ -44,17 +44,17 @@ add_library(
4444
IMPORTED
4545
)
4646
set_target_properties(
47-
node-lib
47+
js-lib
4848
PROPERTIES IMPORTED_LOCATION
49-
${PROJECT_SOURCE_DIR}/../../../build/liquidcore-addon/jni/${ANDROID_ABI}/libnode.so
49+
${PROJECT_SOURCE_DIR}/../../../build/liquidcore-addon/jni/${ANDROID_ABI}/libliquidjs.so
5050
)
5151
set_target_properties(
5252
liquidcore-lib
5353
PROPERTIES IMPORTED_LOCATION
54-
${PROJECT_SOURCE_DIR}/../../../build/liquidcore-addon/jni/${ANDROID_ABI}/libliquidcore.so
54+
${PROJECT_SOURCE_DIR}/../../../build/liquidcore-addon/jni/${ANDROID_ABI}/libliquidnode.so
5555
)
5656
target_link_libraries( # Specifies the target library.
5757
node-sqlite3.node
58-
node-lib
58+
js-lib
5959
liquidcore-lib
6060
${log-lib})

liquidcore/node-sqlite3/src/main/java/org/liquidplayer/node_sqlite3/SQLite3Shim.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import android.database.sqlite.SQLiteOutOfMemoryException;
2424
import android.database.sqlite.SQLiteReadOnlyDatabaseException;
2525
import android.database.sqlite.SQLiteTableLockedException;
26-
import android.support.annotation.Keep;
26+
import androidx.annotation.Keep;
2727

2828
import static org.liquidplayer.node_sqlite3.SQLite3Shim.CODES.SQLITE_ERROR;
2929
import static org.liquidplayer.node_sqlite3.SQLite3Shim.CODES.SQLITE_OK;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@liquidcore/sqlite3",
33
"description": "Asynchronous, non-blocking SQLite3 bindings",
4-
"version": "0.1.4",
4+
"version": "0.2.0",
55
"homepage": "http://github.com/mapbox/node-sqlite3",
66
"author": {
77
"name": "MapBox",

0 commit comments

Comments
 (0)