Skip to content

Commit

Permalink
chore: enabled progaurd and minor changes
Browse files Browse the repository at this point in the history
Signed-off-by: sarthakpranesh <[email protected]>
  • Loading branch information
sarthakpranesh committed Nov 19, 2022
1 parent 8368332 commit 3abcece
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
11 changes: 4 additions & 7 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 1,4 @@
import BottomSheet, {
BottomSheetScrollView,
BottomSheetFlatList,
} from "@gorhom/bottom-sheet";
import BottomSheet, { BottomSheetScrollView } from "@gorhom/bottom-sheet";
import analytics from "@react-native-firebase/analytics";
import { useState, useEffect, useCallback, useRef, useMemo } from "react";
import {
Expand All @@ -18,7 15,7 @@ import {
PermissionsAndroid,
} from "react-native";
import RNBootSplash from "react-native-bootsplash";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { GestureHandlerRootView, FlatList } from "react-native-gesture-handler";

// importing components
import CusCamera from "./components/Camera";
Expand Down Expand Up @@ -131,7 128,7 @@ export default function App() {
{details.images.length === 0 ? (
<Paragraph text="Loading..." />
) : (
<BottomSheetFlatList
<FlatList
style={{
borderRadius: 8,
backgroundColor: "#F9F9F9",
Expand Down Expand Up @@ -172,7 169,7 @@ export default function App() {
<Paragraph
text={
details.description.length === 0
? "Not able to extra description from Wikipedia!"
? "Unable to extract details from Wikipedia!"
: details.description
}
/>
Expand Down
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 98,7 @@ def enableSeparateBuildPerCPUArchitecture = true
/**
* Run Proguard to shrink the Java bytecode in release builds.
*/
def enableProguardInReleaseBuilds = false
def enableProguardInReleaseBuilds = true

/**
* The preferred build flavor of JavaScriptCore.
Expand Down
3 changes: 3 additions & 0 deletions android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 10,6 @@
# Add any project specific keep options here:
-keep class com.swmansion.reanimated.** { *; }
-keep class com.facebook.react.turbomodule.** { *; }
# react-native-svg
-keep public class com.horcrux.svg.** {*;}

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 1,6 @@
{
"name": "PlantRecog",
"version": "2.0.0",
"version": "1.3.0",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand Down

0 comments on commit 3abcece

Please sign in to comment.