From 65f148648a660f8f3133cf557ecbd4bcbb28ca9b Mon Sep 17 00:00:00 2001 From: hngocl Date: Mon, 4 Oct 2021 21:39:12 +0700 Subject: [PATCH] fomat code --- .../app/src/main/java/com/helloworld/AppModule/AppModule.java | 3 ++- .../java/com/helloworld/AppModule/storage/MMKVStorage.java | 4 ---- template/src/app/library/utils/storage/index.ts | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/template/android/app/src/main/java/com/helloworld/AppModule/AppModule.java b/template/android/app/src/main/java/com/helloworld/AppModule/AppModule.java index 7866ec33..a4fa5204 100644 --- a/template/android/app/src/main/java/com/helloworld/AppModule/AppModule.java +++ b/template/android/app/src/main/java/com/helloworld/AppModule/AppModule.java @@ -111,7 +111,8 @@ public void createChannel(ReadableMap channelInfo, Promise promise) { boolean created = mNotificationHelper.createChannel(channelInfo); promise.resolve(created); } - @ReactMethod + + @ReactMethod public void mmkvSetString(String keyName, String value, String keyId, String cryptKey, Promise promise) { mmkvStorage.setValue(keyName, value, keyId, cryptKey); promise.resolve(true); diff --git a/template/android/app/src/main/java/com/helloworld/AppModule/storage/MMKVStorage.java b/template/android/app/src/main/java/com/helloworld/AppModule/storage/MMKVStorage.java index 149c4bec..55eb575f 100644 --- a/template/android/app/src/main/java/com/helloworld/AppModule/storage/MMKVStorage.java +++ b/template/android/app/src/main/java/com/helloworld/AppModule/storage/MMKVStorage.java @@ -5,10 +5,6 @@ import com.facebook.react.bridge.ReactApplicationContext; import com.tencent.mmkv.MMKV; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - public class MMKVStorage { private Context context; diff --git a/template/src/app/library/utils/storage/index.ts b/template/src/app/library/utils/storage/index.ts index 5ec92316..ea6ceefd 100644 --- a/template/src/app/library/utils/storage/index.ts +++ b/template/src/app/library/utils/storage/index.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-explicit-any */ import {MMKVOption, MMKVStorage} from '@common'; import {StyleSheet} from 'react-native';