Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 5454b79

Browse files
committed
chores
1 parent 42cd8fc commit 5454b79

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
"homepage": "https://github.com/react-native-async-storage/sqlite-storage",
2222
"packageManager": "yarn@4.0.2",
2323
"scripts": {
24-
"lib:build": "bob build"
24+
"build": "yarn build:js && yarn build:native",
25+
"build:js": "bob build",
26+
"build:native": "./gradlew sqlite-storage:bundleSqliteStorage"
2527
},
2628
"react-native-builder-bob": {
2729
"source": "src",

sqlite-storage-plugin/src/main/kotlin/tasks/AndroidBundleTask.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import org.gradle.api.tasks.TaskAction
1313
internal abstract class SqliteStorageAndroidBundleTask : DefaultTask() {
1414
override fun getGroup() = PLUGIN_GROUP
1515

16-
override fun getDescription() = "Bundles release AAR and moves it to release directory"
16+
override fun getDescription() = "Creates release AAR and moves it to output dir"
1717

1818
@get:OutputDirectory
1919
abstract val outputDir: DirectoryProperty

sqlite-storage-plugin/src/main/kotlin/tasks/IosBundleTask.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import org.gradle.api.tasks.TaskAction
1212
internal abstract class SqliteStorageIosBundleTask : DefaultTask() {
1313
override fun getGroup() = PLUGIN_GROUP
1414

15-
override fun getDescription() = "Bundles release XCFramework and moves it to release directory"
15+
override fun getDescription() = "Creates release XCFramework and moves it to output dir"
1616

1717
@get:OutputDirectory
1818
abstract val outputDir: DirectoryProperty
@@ -27,7 +27,7 @@ internal abstract class SqliteStorageIosBundleTask : DefaultTask() {
2727
fun execute() {
2828
val framework = sourceFramework.get().asFile
2929
if (!framework.exists()) {
30-
throw IllegalStateException("XCFramework not found at location ${framework.absolutePath}")
30+
throw IllegalStateException("XCFramework not found at ${framework.absolutePath}")
3131
}
3232
val finalName: String = outputFrameworkName.get().let { name ->
3333
if (name.endsWith(".xcframework")) name

sqlite-storage/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ sqldelight {
6868

6969
asyncStorage {
7070
outputDir.set(rootProject.file("nativeLib"))
71-
binaryName.set("sqlite-storage")
71+
binaryName.set("sqlite-storage-${version}")
7272
}
7373

7474
android {

0 commit comments

Comments
 (0)