Skip to content

Commit c34d2e2

Browse files
committed
fix: HybridNitroSQLiteOnLoad implementation in nitrogen generated directory
1 parent 27b08cd commit c34d2e2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.margelo.nitro.rnnitrosqlite
2+
3+
import androidx.annotation.Keep
4+
import com.facebook.proguard.annotations.DoNotStrip
5+
import com.margelo.nitro.NitroModules
6+
import com.margelo.rnnitrosqlite.DocPathSetter
7+
8+
@Keep
9+
@DoNotStrip
10+
class HybridNitroSQLiteOnLoad : HybridNitroSQLiteOnLoadSpec() {
11+
@Keep
12+
@DoNotStrip
13+
override fun init() {
14+
NitroModules.applicationContext?.let { context ->
15+
DocPathSetter.setDocPath(context)
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)