Skip to content

Commit

Permalink
fix: cleanup android deps (#1592)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm authored Sep 20, 2022
1 parent 43f7bd7 commit bd6fa56
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions packages/app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,6 @@ dependencies {
// Custom Add Library
// Lifecycle
def lifecycle_version = "2.3.1"
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"

// Details see https://developer.android.com/training/constraint-layout?hl=zh-cn
Expand All @@ -395,16 +393,9 @@ dependencies {
implementation "androidx.recyclerview:recyclerview:1.2.1"
implementation "androidx.fragment:fragment-ktx:1.3.6"

// Details see https://github.com/li-xiaojun/XPopup
implementation 'com.lxj:xpopup:2.2.23'

// Details see https://github.com/bumptech/glide
implementation 'com.github.bumptech.glide:glide:4.12.0'
kapt 'com.github.bumptech.glide:compiler:4.12.0'

// Details see https://github.com/google/gson
implementation 'com.google.code.gson:gson:2.8.9'

// Details see https://developer.android.com/kotlin/coroutines?hl=zh-cn
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import android.database.CursorWindow;
import androidx.lifecycle.ViewModelStore;
import androidx.lifecycle.ViewModelStoreOwner;

import com.facebook.react.PackageList;
import com.facebook.react.ReactApplication;
Expand All @@ -35,8 +33,7 @@
import io.csie.kudo.reactnative.v8.executor.V8ExecutorFactory;
import cn.jiguang.plugins.push.JPushModule;

public class MainApplication extends Application implements ReactApplication , ViewModelStoreOwner {
private final ViewModelStore mViewModelStore = new ViewModelStore();
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mNewArchitectureNativeHost =
new ReactNativeHostWrapper(this, new MainApplicationReactNativeHost(this));
private final ReactNativeHost mReactNativeHost = new ReactNativeHostWrapper(
Expand Down Expand Up @@ -161,9 +158,4 @@ private static void initializeFlipper(
}
}

@NonNull
@Override
public ViewModelStore getViewModelStore() {
return mViewModelStore;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import androidx.annotation.IntDef
import androidx.fragment.app.FragmentActivity
import com.facebook.react.bridge.*
import com.facebook.react.modules.core.DeviceEventManagerModule.RCTDeviceEventEmitter
import com.google.gson.Gson
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.Channel
import so.onekey.app.wallet.nfc.NFCExceptions
Expand Down

0 comments on commit bd6fa56

Please sign in to comment.