Skip to content

Commit

Permalink
remove unused dependencies
Browse files Browse the repository at this point in the history
avoid loading unused native lib
  • Loading branch information
kuamanet committed Jul 21, 2020
1 parent 4fe25f7 commit 9f56898
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 33 deletions.
4 changes: 1 addition & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "androidx.core:core-ktx:1.3.0"
implementation "androidx.appcompat:appcompat:1.1.0"
implementation "com.github.kuamanet:android-native-opencv:0.1"
api "com.github.kuamanet:android-native-opencv:0.1"
// ViewModel
api "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
// LiveData
Expand All @@ -61,8 +61,6 @@ dependencies {
implementation "com.github.chrisbanes:PhotoView:2.3.0"
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.navigation:navigation-fragment-ktx:2.2.2'
implementation 'androidx.navigation:navigation-ui-ktx:2.2.2'

testImplementation "junit:junit:4.13"
androidTestImplementation "androidx.test.ext:junit:1.1.1"
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/net/kuama/documentscanner/data/Loader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class Loader(context: Context) {
override fun onManagerConnected(status: Int) {
when (status) {
LoaderCallbackInterface.SUCCESS -> {
// Load native library after(!) OpenCV initialization
System.loadLibrary("native-lib")
onLoad?.invoke(OpenCvStatus.LOADED)
}
else -> {
Expand Down
28 changes: 0 additions & 28 deletions app/src/main/res/navigation/nav_graph.xml

This file was deleted.

0 comments on commit 9f56898

Please sign in to comment.