/node_modules/react-native/Libraries/Image/RelativeImageStub'
39 |
40 | suppress_type=$FlowIssue
41 | suppress_type=$FlowFixMe
42 | suppress_type=$FlowFixMeProps
43 | suppress_type=$FlowFixMeState
44 |
45 | [lints]
46 | sketchy-null-number=warn
47 | sketchy-null-mixed=warn
48 | sketchy-number=warn
49 | untyped-type-import=warn
50 | nonstrict-import=warn
51 | deprecated-type=warn
52 | unsafe-getters-setters=warn
53 | unnecessary-invariant=warn
54 | signature-verification-failure=warn
55 |
56 | [strict]
57 | deprecated-type
58 | nonstrict-import
59 | sketchy-null
60 | unclear-type
61 | unsafe-getters-setters
62 | untyped-import
63 | untyped-type-import
64 |
65 | [version]
66 | ^0.137.0
67 |
--------------------------------------------------------------------------------
/mobile-app/.gitattributes:
--------------------------------------------------------------------------------
1 | # Windows files should use crlf line endings
2 | # https://help.github.com/articles/dealing-with-line-endings/
3 | *.bat text eol=crlf
4 |
--------------------------------------------------------------------------------
/mobile-app/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 | .env
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 |
24 | # Android/IntelliJ
25 | #
26 | build/
27 | .idea
28 | .gradle
29 | local.properties
30 | *.iml
31 |
32 | # node.js
33 | #
34 | node_modules/
35 | npm-debug.log
36 | yarn-error.log
37 |
38 | # BUCK
39 | buck-out/
40 | \.buckd/
41 | *.keystore
42 | !debug.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://docs.fastlane.tools/best-practices/source-control/
50 |
51 | */fastlane/report.xml
52 | */fastlane/Preview.html
53 | */fastlane/screenshots
54 |
55 | # Bundle artifact
56 | *.jsbundle
57 |
58 | # CocoaPods
59 | /ios/Pods/
60 |
--------------------------------------------------------------------------------
/mobile-app/.prettierrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | bracketSpacing: false,
3 | jsxBracketSameLine: true,
4 | singleQuote: true,
5 | trailingComma: 'all',
6 | arrowParens: 'avoid',
7 | };
8 |
--------------------------------------------------------------------------------
/mobile-app/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/mobile-app/App.js:
--------------------------------------------------------------------------------
1 | import React, {useState} from 'react';
2 | import {
3 | SafeAreaView,
4 | Image,
5 | StatusBar,
6 | StyleSheet,
7 | Text,
8 | Platform,
9 | Dimensions,
10 | useColorScheme,
11 | View,
12 | TouchableOpacity,
13 | ImageBackground,
14 | } from 'react-native';
15 | import axios from 'axios';
16 | import Config from 'react-native-config';
17 | import {launchCamera, launchImageLibrary} from 'react-native-image-picker';
18 | import {Colors} from 'react-native/Libraries/NewAppScreen';
19 | import PermissionsService, {isIOS} from './Permissions';
20 |
21 | axios.interceptors.request.use(
22 | async config => {
23 | let request = config;
24 | request.headers = {
25 | 'Content-Type': 'application/json',
26 | Accept: 'application/json',
27 | };
28 | request.url = configureUrl(config.url);
29 | return request;
30 | },
31 | error => error,
32 | );
33 |
34 | export const {height, width} = Dimensions.get('window');
35 |
36 | export const configureUrl = url => {
37 | let authUrl = url;
38 | if (url && url[url.length - 1] === '/') {
39 | authUrl = url.substring(0, url.length - 1);
40 | }
41 | return authUrl;
42 | };
43 |
44 | export const fonts = {
45 | Bold: {fontFamily: 'Roboto-Bold'},
46 | };
47 |
48 | const options = {
49 | mediaType: 'photo',
50 | quality: 1,
51 | width: 256,
52 | height: 256,
53 | includeBase64: true,
54 | };
55 |
56 | const App = () => {
57 | const [result, setResult] = useState('');
58 | const [label, setLabel] = useState('');
59 | const isDarkMode = useColorScheme() === 'dark';
60 | const [image, setImage] = useState('');
61 | const backgroundStyle = {
62 | backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
63 | };
64 |
65 | const getPredication = async params => {
66 | return new Promise((resolve, reject) => {
67 | var bodyFormData = new FormData();
68 | bodyFormData.append('file', params);
69 | const url = Config.URL;
70 | return axios
71 | .post(url, bodyFormData)
72 | .then(response => {
73 | resolve(response);
74 | })
75 | .catch(error => {
76 | setLabel('Failed to predicting.');
77 | reject('err', error);
78 | });
79 | });
80 | };
81 |
82 | const manageCamera = async type => {
83 | try {
84 | if (!(await PermissionsService.hasCameraPermission())) {
85 | return [];
86 | } else {
87 | if (type === 'Camera') {
88 | openCamera();
89 | } else {
90 | openLibrary();
91 | }
92 | }
93 | } catch (err) {
94 | console.log(err);
95 | }
96 | };
97 |
98 | const openCamera = async () => {
99 | launchCamera(options, async response => {
100 | if (response.didCancel) {
101 | console.log('User cancelled image picker');
102 | } else if (response.error) {
103 | console.log('ImagePicker Error: ', response.error);
104 | } else if (response.customButton) {
105 | console.log('User tapped custom button: ', response.customButton);
106 | } else {
107 | const uri = response?.assets[0]?.uri;
108 | const path = Platform.OS !== 'ios' ? uri : 'file://' + uri;
109 | getResult(path, response);
110 | }
111 | });
112 | };
113 |
114 | const clearOutput = () => {
115 | setResult('');
116 | setImage('');
117 | };
118 |
119 | const getResult = async (path, response) => {
120 | setImage(path);
121 | setLabel('Predicting...');
122 | setResult('');
123 | const params = {
124 | uri: path,
125 | name: response.assets[0].fileName,
126 | type: response.assets[0].type,
127 | };
128 | const res = await getPredication(params);
129 | if (res?.data?.class) {
130 | setLabel(res.data.class);
131 | setResult(res.data.confidence);
132 | } else {
133 | setLabel('Failed to predict');
134 | }
135 | };
136 |
137 | const openLibrary = async () => {
138 | launchImageLibrary(options, async response => {
139 | if (response.didCancel) {
140 | console.log('User cancelled image picker');
141 | } else if (response.error) {
142 | console.log('ImagePicker Error: ', response.error);
143 | } else if (response.customButton) {
144 | console.log('User tapped custom button: ', response.customButton);
145 | } else {
146 | const uri = response.assets[0].uri;
147 | const path = Platform.OS !== 'ios' ? uri : 'file://' + uri;
148 | getResult(path, response);
149 | }
150 | });
151 | };
152 |
153 | return (
154 |
155 |
156 |
161 | {'Potato Disease \nPrediction App'}
162 |
163 |
164 |
165 | {(image?.length && (
166 |
167 | )) ||
168 | null}
169 | {(result && label && (
170 |
171 |
172 | {'Label: \n'}
173 | {label}
174 |
175 |
176 | {'Confidence: \n'}
177 |
178 | {parseFloat(result).toFixed(2) + '%'}
179 |
180 |
181 |
182 | )) ||
183 | (image && {label}) || (
184 |
185 | Use below buttons to select a picture of a potato plant leaf.
186 |
187 | )}
188 |
189 | manageCamera('Camera')}
192 | style={styles.btnStyle}>
193 |
194 |
195 | manageCamera('Photo')}
198 | style={styles.btnStyle}>
199 |
200 |
201 |
202 |
203 | );
204 | };
205 |
206 | const styles = StyleSheet.create({
207 | title: {
208 | alignSelf: 'center',
209 | position: 'absolute',
210 | top: (isIOS && 35) || 10,
211 | fontSize: 30,
212 | ...fonts.Bold,
213 | color: '#FFF',
214 | },
215 | clearImage: {height: 40, width: 40, tintColor: '#FFF'},
216 | mainOuter: {
217 | flexDirection: 'row',
218 | justifyContent: 'space-between',
219 | position: 'absolute',
220 | top: height / 1.6,
221 | alignSelf: 'center',
222 | },
223 | outer: {
224 | flex: 1,
225 | alignItems: 'center',
226 | justifyContent: 'center',
227 | },
228 | btn: {
229 | position: 'absolute',
230 | bottom: 40,
231 | justifyContent: 'space-between',
232 | flexDirection: 'row',
233 | },
234 | btnStyle: {
235 | backgroundColor: '#FFF',
236 | opacity: 0.8,
237 | marginHorizontal: 30,
238 | padding: 20,
239 | borderRadius: 20,
240 | },
241 | imageStyle: {
242 | marginBottom: 50,
243 | width: width / 1.5,
244 | height: width / 1.5,
245 | borderRadius: 20,
246 | position: 'absolute',
247 | borderWidth: 0.3,
248 | borderColor: '#FFF',
249 | top: height / 4.5,
250 | },
251 | clearStyle: {
252 | position: 'absolute',
253 | top: 100,
254 | right: 30,
255 | tintColor: '#FFF',
256 | zIndex: 10,
257 | },
258 | space: {marginVertical: 10, marginHorizontal: 10},
259 | labelText: {color: '#FFF', fontSize: 20, ...fonts.Bold},
260 | resultText: {fontSize: 32, ...fonts.Bold},
261 | imageIcon: {height: 40, width: 40, tintColor: '#000'},
262 | emptyText: {
263 | position: 'absolute',
264 | top: height / 1.6,
265 | alignSelf: 'center',
266 | color: '#FFF',
267 | fontSize: 20,
268 | maxWidth: '70%',
269 | ...fonts.Bold,
270 | },
271 | });
272 |
273 | export default App;
274 |
--------------------------------------------------------------------------------
/mobile-app/Permissions.js:
--------------------------------------------------------------------------------
1 | import {Alert, Platform} from 'react-native';
2 | import {
3 | check,
4 | PERMISSIONS,
5 | RESULTS,
6 | request,
7 | openSettings,
8 | } from 'react-native-permissions';
9 |
10 | export const isIOS = Platform.OS === 'ios';
11 |
12 | function showAlert(msg) {
13 | Alert.alert('', msg, [
14 | {
15 | text: 'Cancel',
16 | onPress: () => console.log('Cancel Pressed'),
17 | style: 'cancel',
18 | },
19 | {
20 | text: 'Settings',
21 | onPress: () => {
22 | openSettings().catch(() => console.warn('cannot open settings'));
23 | },
24 | },
25 | ]);
26 | }
27 |
28 | const hasCameraPermission = async (withAlert = true) => {
29 | try {
30 | const permission = isIOS
31 | ? PERMISSIONS.IOS.CAMERA
32 | : PERMISSIONS.ANDROID.CAMERA;
33 | const response = await check(permission);
34 | let camera;
35 | if (response.camera !== RESULTS.GRANTED) {
36 | camera = await request(permission);
37 | }
38 | if (camera === RESULTS.DENIED || camera === RESULTS.BLOCKED) {
39 | if (withAlert) {
40 | showAlert(
41 | 'Permission not granted for camera. You will not able to use camera in this application.',
42 | );
43 | }
44 | return false;
45 | }
46 | return true;
47 | } catch (error) {
48 | console.log(error);
49 | return false;
50 | }
51 | };
52 |
53 | const hasPhotoPermission = async (withAlert = true) => {
54 | try {
55 | const permission = isIOS
56 | ? PERMISSIONS.IOS.PHOTO_LIBRARY
57 | : PERMISSIONS.ANDROID.WRITE_EXTERNAL_StorageService;
58 | const response = await check(permission);
59 | let photo;
60 | if (response.photo !== RESULTS.GRANTED) {
61 | photo = await request(permission);
62 | }
63 | if (photo === RESULTS.DENIED || photo === RESULTS.BLOCKED) {
64 | if (withAlert) {
65 | showAlert(
66 | 'Permission not granted for photos. You will not able to get photos in this application.',
67 | );
68 | }
69 | return false;
70 | }
71 | return true;
72 | } catch (error) {
73 | console.log(error);
74 | return false;
75 | }
76 | };
77 |
78 | const PermissionsService = {
79 | hasCameraPermission,
80 | hasPhotoPermission,
81 | };
82 |
83 | export default PermissionsService;
84 |
--------------------------------------------------------------------------------
/mobile-app/__tests__/App-test.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | */
4 |
5 | import 'react-native';
6 | import React from 'react';
7 | import App from '../App';
8 |
9 | // Note: test renderer must be required after react-native.
10 | import renderer from 'react-test-renderer';
11 |
12 | it('renders correctly', () => {
13 | renderer.create();
14 | });
15 |
--------------------------------------------------------------------------------
/mobile-app/android/app/BUCK:
--------------------------------------------------------------------------------
1 | # To learn about Buck see [Docs](https://buckbuild.com/).
2 | # To run your application with Buck:
3 | # - install Buck
4 | # - `npm start` - to start the packager
5 | # - `cd android`
6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8 | # - `buck install -r android/app` - compile, install and run application
9 | #
10 |
11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
12 |
13 | lib_deps = []
14 |
15 | create_aar_targets(glob(["libs/*.aar"]))
16 |
17 | create_jar_targets(glob(["libs/*.jar"]))
18 |
19 | android_library(
20 | name = "all-libs",
21 | exported_deps = lib_deps,
22 | )
23 |
24 | android_library(
25 | name = "app-code",
26 | srcs = glob([
27 | "src/main/java/**/*.java",
28 | ]),
29 | deps = [
30 | ":all-libs",
31 | ":build_config",
32 | ":res",
33 | ],
34 | )
35 |
36 | android_build_config(
37 | name = "build_config",
38 | package = "com.mldemo",
39 | )
40 |
41 | android_resource(
42 | name = "res",
43 | package = "com.mldemo",
44 | res = "src/main/res",
45 | )
46 |
47 | android_binary(
48 | name = "app",
49 | keystore = "//android/keystores:debug",
50 | manifest = "src/main/AndroidManifest.xml",
51 | package_type = "debug",
52 | deps = [
53 | ":app-code",
54 | ],
55 | )
56 |
--------------------------------------------------------------------------------
/mobile-app/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation. If none specified and
19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is
20 | * // default. Can be overridden with ENTRY_FILE environment variable.
21 | * entryFile: "index.android.js",
22 | *
23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format
24 | * bundleCommand: "ram-bundle",
25 | *
26 | * // whether to bundle JS and assets in debug mode
27 | * bundleInDebug: false,
28 | *
29 | * // whether to bundle JS and assets in release mode
30 | * bundleInRelease: true,
31 | *
32 | * // whether to bundle JS and assets in another build variant (if configured).
33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
34 | * // The configuration property can be in the following formats
35 | * // 'bundleIn${productFlavor}${buildType}'
36 | * // 'bundleIn${buildType}'
37 | * // bundleInFreeDebug: true,
38 | * // bundleInPaidRelease: true,
39 | * // bundleInBeta: true,
40 | *
41 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
42 | * // for example: to disable dev mode in the staging build type (if configured)
43 | * devDisabledInStaging: true,
44 | * // The configuration property can be in the following formats
45 | * // 'devDisabledIn${productFlavor}${buildType}'
46 | * // 'devDisabledIn${buildType}'
47 | *
48 | * // the root of your project, i.e. where "package.json" lives
49 | * root: "../../",
50 | *
51 | * // where to put the JS bundle asset in debug mode
52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
53 | *
54 | * // where to put the JS bundle asset in release mode
55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
56 | *
57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
58 | * // require('./image.png')), in debug mode
59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
60 | *
61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
62 | * // require('./image.png')), in release mode
63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
64 | *
65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
69 | * // for example, you might want to remove it from here.
70 | * inputExcludes: ["android/**", "ios/**"],
71 | *
72 | * // override which node gets called and with what additional arguments
73 | * nodeExecutableAndArgs: ["node"],
74 | *
75 | * // supply additional arguments to the packager
76 | * extraPackagerArgs: []
77 | * ]
78 | */
79 |
80 | project.ext.react = [
81 | enableHermes: false, // clean and rebuild if changing
82 | ]
83 |
84 | apply from: "../../node_modules/react-native/react.gradle"
85 | apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
86 |
87 | /**
88 | * Set this to true to create two separate APKs instead of one:
89 | * - An APK that only works on ARM devices
90 | * - An APK that only works on x86 devices
91 | * The advantage is the size of the APK is reduced by about 4MB.
92 | * Upload all the APKs to the Play Store and people will download
93 | * the correct one based on the CPU architecture of their device.
94 | */
95 | def enableSeparateBuildPerCPUArchitecture = false
96 |
97 | /**
98 | * Run Proguard to shrink the Java bytecode in release builds.
99 | */
100 | def enableProguardInReleaseBuilds = false
101 |
102 | /**
103 | * The preferred build flavor of JavaScriptCore.
104 | *
105 | * For example, to use the international variant, you can use:
106 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
107 | *
108 | * The international variant includes ICU i18n library and necessary data
109 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
110 | * give correct results when using with locales other than en-US. Note that
111 | * this variant is about 6MiB larger per architecture than default.
112 | */
113 | def jscFlavor = 'org.webkit:android-jsc:+'
114 |
115 | /**
116 | * Whether to enable the Hermes VM.
117 | *
118 | * This should be set on project.ext.react and mirrored here. If it is not set
119 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
120 | * and the benefits of using Hermes will therefore be sharply reduced.
121 | */
122 | def enableHermes = project.ext.react.get("enableHermes", false);
123 |
124 | android {
125 | ndkVersion rootProject.ext.ndkVersion
126 |
127 | compileSdkVersion rootProject.ext.compileSdkVersion
128 |
129 | compileOptions {
130 | sourceCompatibility JavaVersion.VERSION_1_8
131 | targetCompatibility JavaVersion.VERSION_1_8
132 |
133 | }
134 | aaptOptions {
135 | noCompress 'tflite'
136 | }
137 |
138 | defaultConfig {
139 | applicationId "com.mldemo"
140 | minSdkVersion rootProject.ext.minSdkVersion
141 | targetSdkVersion rootProject.ext.targetSdkVersion
142 | versionCode 1
143 | versionName "1.0"
144 | }
145 | splits {
146 | abi {
147 | reset()
148 | enable enableSeparateBuildPerCPUArchitecture
149 | universalApk false // If true, also generate a universal APK
150 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
151 | }
152 | }
153 | signingConfigs {
154 | release {
155 | if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
156 | storeFile file(MYAPP_UPLOAD_STORE_FILE)
157 | storePassword MYAPP_UPLOAD_STORE_PASSWORD
158 | keyAlias MYAPP_UPLOAD_KEY_ALIAS
159 | keyPassword MYAPP_UPLOAD_KEY_PASSWORD
160 | }
161 | }
162 | debug {
163 | storeFile file('debug.keystore')
164 | storePassword 'android'
165 | keyAlias 'androiddebugkey'
166 | keyPassword 'android'
167 | }
168 | }
169 | buildTypes {
170 | debug {
171 | signingConfig signingConfigs.debug
172 | }
173 | release {
174 | // Caution! In production, you need to generate your own keystore file.
175 | // see https://reactnative.dev/docs/signed-apk-android.
176 | signingConfig signingConfigs.release
177 | minifyEnabled enableProguardInReleaseBuilds
178 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
179 | }
180 | }
181 |
182 | // applicationVariants are e.g. debug, release
183 | applicationVariants.all { variant ->
184 | variant.outputs.each { output ->
185 | // For each separate APK per architecture, set a unique version code as described here:
186 | // https://developer.android.com/studio/build/configure-apk-splits.html
187 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
188 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
189 | def abi = output.getFilter(OutputFile.ABI)
190 | if (abi != null) { // null for the universal-debug, universal-release variants
191 | output.versionCodeOverride =
192 | defaultConfig.versionCode * 1000 + versionCodes.get(abi)
193 | }
194 |
195 | }
196 | }
197 | }
198 |
199 | dependencies {
200 | implementation fileTree(dir: "libs", include: ["*.jar"])
201 | //noinspection GradleDynamicVersion
202 | implementation "com.facebook.react:react-native:+" // From node_modules
203 | // compile project(':tflite-react-native')
204 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
205 |
206 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
207 | exclude group:'com.facebook.fbjni'
208 | }
209 |
210 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
211 | exclude group:'com.facebook.flipper'
212 | exclude group:'com.squareup.okhttp3', module:'okhttp'
213 | }
214 |
215 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
216 | exclude group:'com.facebook.flipper'
217 | }
218 |
219 | if (enableHermes) {
220 | def hermesPath = "../../node_modules/hermes-engine/android/";
221 | debugImplementation files(hermesPath + "hermes-debug.aar")
222 | releaseImplementation files(hermesPath + "hermes-release.aar")
223 | } else {
224 | implementation jscFlavor
225 | }
226 | }
227 |
228 | // Run this once to be able to run the application with BUCK
229 | // puts all compile dependencies into folder libs for BUCK to use
230 | task copyDownloadableDepsToLibs(type: Copy) {
231 | from configurations.compile
232 | into 'libs'
233 | }
234 |
235 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
236 |
--------------------------------------------------------------------------------
/mobile-app/android/app/build_defs.bzl:
--------------------------------------------------------------------------------
1 | """Helper definitions to glob .aar and .jar targets"""
2 |
3 | def create_aar_targets(aarfiles):
4 | for aarfile in aarfiles:
5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
6 | lib_deps.append(":" + name)
7 | android_prebuilt_aar(
8 | name = name,
9 | aar = aarfile,
10 | )
11 |
12 | def create_jar_targets(jarfiles):
13 | for jarfile in jarfiles:
14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
15 | lib_deps.append(":" + name)
16 | prebuilt_jar(
17 | name = name,
18 | binary_jar = jarfile,
19 | )
20 |
--------------------------------------------------------------------------------
/mobile-app/android/app/debug.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/debug.keystore
--------------------------------------------------------------------------------
/mobile-app/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
--------------------------------------------------------------------------------
/mobile-app/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/mobile-app/android/app/src/debug/java/com/mldemo/ReactNativeFlipper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the LICENSE file in the root
5 | * directory of this source tree.
6 | */
7 | package com.mldemo;
8 |
9 | import android.content.Context;
10 | import com.facebook.flipper.android.AndroidFlipperClient;
11 | import com.facebook.flipper.android.utils.FlipperUtils;
12 | import com.facebook.flipper.core.FlipperClient;
13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
22 | import com.facebook.react.ReactInstanceManager;
23 | import com.facebook.react.bridge.ReactContext;
24 | import com.facebook.react.modules.network.NetworkingModule;
25 | import okhttp3.OkHttpClient;
26 |
27 | public class ReactNativeFlipper {
28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
29 | if (FlipperUtils.shouldEnableFlipper(context)) {
30 | final FlipperClient client = AndroidFlipperClient.getInstance(context);
31 |
32 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
33 | client.addPlugin(new ReactFlipperPlugin());
34 | client.addPlugin(new DatabasesFlipperPlugin(context));
35 | client.addPlugin(new SharedPreferencesFlipperPlugin(context));
36 | client.addPlugin(CrashReporterPlugin.getInstance());
37 |
38 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
39 | NetworkingModule.setCustomClientBuilder(
40 | new NetworkingModule.CustomClientBuilder() {
41 | @Override
42 | public void apply(OkHttpClient.Builder builder) {
43 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
44 | }
45 | });
46 | client.addPlugin(networkFlipperPlugin);
47 | client.start();
48 |
49 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
50 | // Hence we run if after all native modules have been initialized
51 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
52 | if (reactContext == null) {
53 | reactInstanceManager.addReactInstanceEventListener(
54 | new ReactInstanceManager.ReactInstanceEventListener() {
55 | @Override
56 | public void onReactContextInitialized(ReactContext reactContext) {
57 | reactInstanceManager.removeReactInstanceEventListener(this);
58 | reactContext.runOnNativeModulesQueueThread(
59 | new Runnable() {
60 | @Override
61 | public void run() {
62 | client.addPlugin(new FrescoFlipperPlugin());
63 | }
64 | });
65 | }
66 | });
67 | } else {
68 | client.addPlugin(new FrescoFlipperPlugin());
69 | }
70 | }
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
19 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/assets/fonts/Roboto-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/assets/fonts/Roboto-Bold.ttf
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/java/com/mldemo/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.mldemo;
2 | import com.facebook.react.ReactActivity;
3 |
4 | public class MainActivity extends ReactActivity {
5 |
6 | /**
7 | * Returns the name of the main component registered from JavaScript. This is used to schedule
8 | * rendering of the component.
9 | */
10 | @Override
11 | protected String getMainComponentName() {
12 | return "mlDemo";
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/java/com/mldemo/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.mldemo;
2 |
3 | import android.app.Application;
4 | import android.content.Context;
5 | import com.facebook.react.PackageList;
6 | import com.facebook.react.ReactApplication;
7 | import com.facebook.react.ReactInstanceManager;
8 | import com.facebook.react.ReactNativeHost;
9 | import com.facebook.react.ReactPackage;
10 | import com.facebook.soloader.SoLoader;
11 | // import com.reactlibrary.TfliteReactNativePackage;
12 | import java.lang.reflect.InvocationTargetException;
13 | import java.util.List;
14 |
15 | public class MainApplication extends Application implements ReactApplication {
16 |
17 | private final ReactNativeHost mReactNativeHost =
18 | new ReactNativeHost(this) {
19 | @Override
20 | public boolean getUseDeveloperSupport() {
21 | return BuildConfig.DEBUG;
22 | }
23 |
24 | @Override
25 | protected List getPackages() {
26 | @SuppressWarnings("UnnecessaryLocalVariable")
27 | List packages = new PackageList(this).getPackages();
28 | // Packages that cannot be autolinked yet can be added manually here, for example:
29 | // packages.add(new MyReactNativePackage());
30 | //packages.add(new TfliteReactNativePackage());
31 | return packages;
32 | }
33 |
34 | @Override
35 | protected String getJSMainModuleName() {
36 | return "index";
37 | }
38 | };
39 |
40 | @Override
41 | public ReactNativeHost getReactNativeHost() {
42 | return mReactNativeHost;
43 | }
44 |
45 | @Override
46 | public void onCreate() {
47 | super.onCreate();
48 | SoLoader.init(this, /* native exopackage */ false);
49 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
50 | }
51 |
52 | /**
53 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like
54 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
55 | *
56 | * @param context
57 | * @param reactInstanceManager
58 | */
59 | private static void initializeFlipper(
60 | Context context, ReactInstanceManager reactInstanceManager) {
61 | if (BuildConfig.DEBUG) {
62 | try {
63 | /*
64 | We use reflection here to pick up the class that initializes Flipper,
65 | since Flipper library is not available in release mode
66 | */
67 | Class> aClass = Class.forName("com.mldemo.ReactNativeFlipper");
68 | aClass
69 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
70 | .invoke(null, context, reactInstanceManager);
71 | } catch (ClassNotFoundException e) {
72 | e.printStackTrace();
73 | } catch (NoSuchMethodException e) {
74 | e.printStackTrace();
75 | } catch (IllegalAccessException e) {
76 | e.printStackTrace();
77 | } catch (InvocationTargetException e) {
78 | e.printStackTrace();
79 | }
80 | }
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/drawable/background.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/drawable/background.jpeg
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/drawable/camera.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/drawable/camera.png
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/drawable/cblogo.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/drawable/cblogo.PNG
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/drawable/clean.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/drawable/clean.png
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/drawable/gallery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/drawable/gallery.png
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/drawable/pic1.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/drawable/pic1.jpeg
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | mlDemo
3 |
4 |
--------------------------------------------------------------------------------
/mobile-app/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/mobile-app/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext {
5 | buildToolsVersion = "29.0.3"
6 | minSdkVersion = 21
7 | compileSdkVersion = 29
8 | targetSdkVersion = 29
9 | ndkVersion = "20.1.5948944"
10 | }
11 | repositories {
12 | google()
13 | jcenter()
14 | }
15 | dependencies {
16 | classpath("com.android.tools.build:gradle:4.1.0")
17 | // NOTE: Do not place your application dependencies here; they belong
18 | // in the individual module build.gradle files
19 | }
20 | }
21 |
22 | allprojects {
23 | repositories {
24 | mavenLocal()
25 | maven {
26 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
27 | url("$rootDir/../node_modules/react-native/android")
28 | }
29 | maven {
30 | // Android JSC is installed from npm
31 | url("$rootDir/../node_modules/jsc-android/dist")
32 | }
33 |
34 | google()
35 | jcenter()
36 | maven { url 'https://www.jitpack.io' }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/mobile-app/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | # AndroidX package structure to make it clearer which packages are bundled with the
21 | # Android operating system, and which are packaged with your app's APK
22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
23 | android.useAndroidX=true
24 | # Automatically convert third-party libraries to use AndroidX
25 | android.enableJetifier=true
26 |
27 | # Version of flipper SDK to use with React Native
28 | FLIPPER_VERSION=0.75.1
29 | MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore
30 | MYAPP_UPLOAD_KEY_ALIAS=my-key-alias
31 | MYAPP_UPLOAD_STORE_PASSWORD=MLDEMO2021
32 | MYAPP_UPLOAD_KEY_PASSWORD=MLDEMO2021
--------------------------------------------------------------------------------
/mobile-app/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/mobile-app/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/mobile-app/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | #
4 | # Copyright 2015 the original author or authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | ##
21 | ## Gradle start up script for UN*X
22 | ##
23 | ##############################################################################
24 |
25 | # Attempt to set APP_HOME
26 | # Resolve links: $0 may be a link
27 | PRG="$0"
28 | # Need this for relative symlinks.
29 | while [ -h "$PRG" ] ; do
30 | ls=`ls -ld "$PRG"`
31 | link=`expr "$ls" : '.*-> \(.*\)$'`
32 | if expr "$link" : '/.*' > /dev/null; then
33 | PRG="$link"
34 | else
35 | PRG=`dirname "$PRG"`"/$link"
36 | fi
37 | done
38 | SAVED="`pwd`"
39 | cd "`dirname \"$PRG\"`/" >/dev/null
40 | APP_HOME="`pwd -P`"
41 | cd "$SAVED" >/dev/null
42 |
43 | APP_NAME="Gradle"
44 | APP_BASE_NAME=`basename "$0"`
45 |
46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48 |
49 | # Use the maximum available, or set MAX_FD != -1 to use that value.
50 | MAX_FD="maximum"
51 |
52 | warn () {
53 | echo "$*"
54 | }
55 |
56 | die () {
57 | echo
58 | echo "$*"
59 | echo
60 | exit 1
61 | }
62 |
63 | # OS specific support (must be 'true' or 'false').
64 | cygwin=false
65 | msys=false
66 | darwin=false
67 | nonstop=false
68 | case "`uname`" in
69 | CYGWIN* )
70 | cygwin=true
71 | ;;
72 | Darwin* )
73 | darwin=true
74 | ;;
75 | MINGW* )
76 | msys=true
77 | ;;
78 | NONSTOP* )
79 | nonstop=true
80 | ;;
81 | esac
82 |
83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84 |
85 |
86 | # Determine the Java command to use to start the JVM.
87 | if [ -n "$JAVA_HOME" ] ; then
88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
89 | # IBM's JDK on AIX uses strange locations for the executables
90 | JAVACMD="$JAVA_HOME/jre/sh/java"
91 | else
92 | JAVACMD="$JAVA_HOME/bin/java"
93 | fi
94 | if [ ! -x "$JAVACMD" ] ; then
95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96 |
97 | Please set the JAVA_HOME variable in your environment to match the
98 | location of your Java installation."
99 | fi
100 | else
101 | JAVACMD="java"
102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103 |
104 | Please set the JAVA_HOME variable in your environment to match the
105 | location of your Java installation."
106 | fi
107 |
108 | # Increase the maximum file descriptors if we can.
109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
110 | MAX_FD_LIMIT=`ulimit -H -n`
111 | if [ $? -eq 0 ] ; then
112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
113 | MAX_FD="$MAX_FD_LIMIT"
114 | fi
115 | ulimit -n $MAX_FD
116 | if [ $? -ne 0 ] ; then
117 | warn "Could not set maximum file descriptor limit: $MAX_FD"
118 | fi
119 | else
120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
121 | fi
122 | fi
123 |
124 | # For Darwin, add options to specify how the application appears in the dock
125 | if $darwin; then
126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
127 | fi
128 |
129 | # For Cygwin or MSYS, switch paths to Windows format before running java
130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133 |
134 | JAVACMD=`cygpath --unix "$JAVACMD"`
135 |
136 | # We build the pattern for arguments to be converted via cygpath
137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
138 | SEP=""
139 | for dir in $ROOTDIRSRAW ; do
140 | ROOTDIRS="$ROOTDIRS$SEP$dir"
141 | SEP="|"
142 | done
143 | OURCYGPATTERN="(^($ROOTDIRS))"
144 | # Add a user-defined pattern to the cygpath arguments
145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
147 | fi
148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
149 | i=0
150 | for arg in "$@" ; do
151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
153 |
154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
156 | else
157 | eval `echo args$i`="\"$arg\""
158 | fi
159 | i=`expr $i + 1`
160 | done
161 | case $i in
162 | 0) set -- ;;
163 | 1) set -- "$args0" ;;
164 | 2) set -- "$args0" "$args1" ;;
165 | 3) set -- "$args0" "$args1" "$args2" ;;
166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
172 | esac
173 | fi
174 |
175 | # Escape application args
176 | save () {
177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
178 | echo " "
179 | }
180 | APP_ARGS=`save "$@"`
181 |
182 | # Collect all arguments for the java command, following the shell quoting and substitution rules
183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184 |
185 | exec "$JAVACMD" "$@"
186 |
--------------------------------------------------------------------------------
/mobile-app/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/mobile-app/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'mlDemo'
2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3 | include ':tflite-react-native'
4 | project(':tflite-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/tflite-react-native/android')
5 | include ':app'
6 |
--------------------------------------------------------------------------------
/mobile-app/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "mlDemo",
3 | "displayName": "mlDemo"
4 | }
--------------------------------------------------------------------------------
/mobile-app/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ['module:metro-react-native-babel-preset'],
3 | };
4 |
--------------------------------------------------------------------------------
/mobile-app/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | */
4 |
5 | import {AppRegistry} from 'react-native';
6 | import App from './App';
7 | import {name as appName} from './app.json';
8 |
9 | AppRegistry.registerComponent(appName, () => App);
10 |
--------------------------------------------------------------------------------
/mobile-app/ios/Podfile:
--------------------------------------------------------------------------------
1 | require_relative '../node_modules/react-native/scripts/react_native_pods'
2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3 |
4 | platform :ios, '10.0'
5 |
6 | target 'mlDemo' do
7 | config = use_native_modules!
8 | pod 'TensorFlowLite', '1.12.0'
9 |
10 | use_react_native!(
11 | :path => config[:reactNativePath],
12 | # to enable hermes on iOS, change `false` to `true` and then install pods
13 | :hermes_enabled => false
14 | )
15 | permissions_path = '../node_modules/react-native-permissions/ios'
16 | pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
17 | pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary"
18 |
19 | target 'mlDemoTests' do
20 | inherit! :complete
21 | # Pods for testing
22 | end
23 |
24 |
25 | # Enables Flipper.
26 | #
27 | # Note that if you have use_frameworks! enabled, Flipper will not work and
28 | # you should disable the next line.
29 | use_flipper!()
30 |
31 | post_install do |installer|
32 | react_native_post_install(installer)
33 | end
34 | end
--------------------------------------------------------------------------------
/mobile-app/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - boost-for-react-native (1.63.0)
3 | - CocoaAsyncSocket (7.6.5)
4 | - DoubleConversion (1.1.6)
5 | - FBLazyVector (0.64.2)
6 | - FBReactNativeSpec (0.64.2):
7 | - RCT-Folly (= 2020.01.13.00)
8 | - RCTRequired (= 0.64.2)
9 | - RCTTypeSafety (= 0.64.2)
10 | - React-Core (= 0.64.2)
11 | - React-jsi (= 0.64.2)
12 | - ReactCommon/turbomodule/core (= 0.64.2)
13 | - Flipper (0.75.1):
14 | - Flipper-Folly (~> 2.5)
15 | - Flipper-RSocket (~> 1.3)
16 | - Flipper-DoubleConversion (1.1.7)
17 | - Flipper-Folly (2.5.3):
18 | - boost-for-react-native
19 | - Flipper-DoubleConversion
20 | - Flipper-Glog
21 | - libevent (~> 2.1.12)
22 | - OpenSSL-Universal (= 1.1.180)
23 | - Flipper-Glog (0.3.6)
24 | - Flipper-PeerTalk (0.0.4)
25 | - Flipper-RSocket (1.3.1):
26 | - Flipper-Folly (~> 2.5)
27 | - FlipperKit (0.75.1):
28 | - FlipperKit/Core (= 0.75.1)
29 | - FlipperKit/Core (0.75.1):
30 | - Flipper (~> 0.75.1)
31 | - FlipperKit/CppBridge
32 | - FlipperKit/FBCxxFollyDynamicConvert
33 | - FlipperKit/FBDefines
34 | - FlipperKit/FKPortForwarding
35 | - FlipperKit/CppBridge (0.75.1):
36 | - Flipper (~> 0.75.1)
37 | - FlipperKit/FBCxxFollyDynamicConvert (0.75.1):
38 | - Flipper-Folly (~> 2.5)
39 | - FlipperKit/FBDefines (0.75.1)
40 | - FlipperKit/FKPortForwarding (0.75.1):
41 | - CocoaAsyncSocket (~> 7.6)
42 | - Flipper-PeerTalk (~> 0.0.4)
43 | - FlipperKit/FlipperKitHighlightOverlay (0.75.1)
44 | - FlipperKit/FlipperKitLayoutPlugin (0.75.1):
45 | - FlipperKit/Core
46 | - FlipperKit/FlipperKitHighlightOverlay
47 | - FlipperKit/FlipperKitLayoutTextSearchable
48 | - YogaKit (~> 1.18)
49 | - FlipperKit/FlipperKitLayoutTextSearchable (0.75.1)
50 | - FlipperKit/FlipperKitNetworkPlugin (0.75.1):
51 | - FlipperKit/Core
52 | - FlipperKit/FlipperKitReactPlugin (0.75.1):
53 | - FlipperKit/Core
54 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.75.1):
55 | - FlipperKit/Core
56 | - FlipperKit/SKIOSNetworkPlugin (0.75.1):
57 | - FlipperKit/Core
58 | - FlipperKit/FlipperKitNetworkPlugin
59 | - glog (0.3.5)
60 | - libevent (2.1.12)
61 | - OpenSSL-Universal (1.1.180)
62 | - Permission-Camera (3.0.5):
63 | - RNPermissions
64 | - Permission-PhotoLibrary (3.0.5):
65 | - RNPermissions
66 | - RCT-Folly (2020.01.13.00):
67 | - boost-for-react-native
68 | - DoubleConversion
69 | - glog
70 | - RCT-Folly/Default (= 2020.01.13.00)
71 | - RCT-Folly/Default (2020.01.13.00):
72 | - boost-for-react-native
73 | - DoubleConversion
74 | - glog
75 | - RCTRequired (0.64.2)
76 | - RCTTypeSafety (0.64.2):
77 | - FBLazyVector (= 0.64.2)
78 | - RCT-Folly (= 2020.01.13.00)
79 | - RCTRequired (= 0.64.2)
80 | - React-Core (= 0.64.2)
81 | - React (0.64.2):
82 | - React-Core (= 0.64.2)
83 | - React-Core/DevSupport (= 0.64.2)
84 | - React-Core/RCTWebSocket (= 0.64.2)
85 | - React-RCTActionSheet (= 0.64.2)
86 | - React-RCTAnimation (= 0.64.2)
87 | - React-RCTBlob (= 0.64.2)
88 | - React-RCTImage (= 0.64.2)
89 | - React-RCTLinking (= 0.64.2)
90 | - React-RCTNetwork (= 0.64.2)
91 | - React-RCTSettings (= 0.64.2)
92 | - React-RCTText (= 0.64.2)
93 | - React-RCTVibration (= 0.64.2)
94 | - React-callinvoker (0.64.2)
95 | - React-Core (0.64.2):
96 | - glog
97 | - RCT-Folly (= 2020.01.13.00)
98 | - React-Core/Default (= 0.64.2)
99 | - React-cxxreact (= 0.64.2)
100 | - React-jsi (= 0.64.2)
101 | - React-jsiexecutor (= 0.64.2)
102 | - React-perflogger (= 0.64.2)
103 | - Yoga
104 | - React-Core/CoreModulesHeaders (0.64.2):
105 | - glog
106 | - RCT-Folly (= 2020.01.13.00)
107 | - React-Core/Default
108 | - React-cxxreact (= 0.64.2)
109 | - React-jsi (= 0.64.2)
110 | - React-jsiexecutor (= 0.64.2)
111 | - React-perflogger (= 0.64.2)
112 | - Yoga
113 | - React-Core/Default (0.64.2):
114 | - glog
115 | - RCT-Folly (= 2020.01.13.00)
116 | - React-cxxreact (= 0.64.2)
117 | - React-jsi (= 0.64.2)
118 | - React-jsiexecutor (= 0.64.2)
119 | - React-perflogger (= 0.64.2)
120 | - Yoga
121 | - React-Core/DevSupport (0.64.2):
122 | - glog
123 | - RCT-Folly (= 2020.01.13.00)
124 | - React-Core/Default (= 0.64.2)
125 | - React-Core/RCTWebSocket (= 0.64.2)
126 | - React-cxxreact (= 0.64.2)
127 | - React-jsi (= 0.64.2)
128 | - React-jsiexecutor (= 0.64.2)
129 | - React-jsinspector (= 0.64.2)
130 | - React-perflogger (= 0.64.2)
131 | - Yoga
132 | - React-Core/RCTActionSheetHeaders (0.64.2):
133 | - glog
134 | - RCT-Folly (= 2020.01.13.00)
135 | - React-Core/Default
136 | - React-cxxreact (= 0.64.2)
137 | - React-jsi (= 0.64.2)
138 | - React-jsiexecutor (= 0.64.2)
139 | - React-perflogger (= 0.64.2)
140 | - Yoga
141 | - React-Core/RCTAnimationHeaders (0.64.2):
142 | - glog
143 | - RCT-Folly (= 2020.01.13.00)
144 | - React-Core/Default
145 | - React-cxxreact (= 0.64.2)
146 | - React-jsi (= 0.64.2)
147 | - React-jsiexecutor (= 0.64.2)
148 | - React-perflogger (= 0.64.2)
149 | - Yoga
150 | - React-Core/RCTBlobHeaders (0.64.2):
151 | - glog
152 | - RCT-Folly (= 2020.01.13.00)
153 | - React-Core/Default
154 | - React-cxxreact (= 0.64.2)
155 | - React-jsi (= 0.64.2)
156 | - React-jsiexecutor (= 0.64.2)
157 | - React-perflogger (= 0.64.2)
158 | - Yoga
159 | - React-Core/RCTImageHeaders (0.64.2):
160 | - glog
161 | - RCT-Folly (= 2020.01.13.00)
162 | - React-Core/Default
163 | - React-cxxreact (= 0.64.2)
164 | - React-jsi (= 0.64.2)
165 | - React-jsiexecutor (= 0.64.2)
166 | - React-perflogger (= 0.64.2)
167 | - Yoga
168 | - React-Core/RCTLinkingHeaders (0.64.2):
169 | - glog
170 | - RCT-Folly (= 2020.01.13.00)
171 | - React-Core/Default
172 | - React-cxxreact (= 0.64.2)
173 | - React-jsi (= 0.64.2)
174 | - React-jsiexecutor (= 0.64.2)
175 | - React-perflogger (= 0.64.2)
176 | - Yoga
177 | - React-Core/RCTNetworkHeaders (0.64.2):
178 | - glog
179 | - RCT-Folly (= 2020.01.13.00)
180 | - React-Core/Default
181 | - React-cxxreact (= 0.64.2)
182 | - React-jsi (= 0.64.2)
183 | - React-jsiexecutor (= 0.64.2)
184 | - React-perflogger (= 0.64.2)
185 | - Yoga
186 | - React-Core/RCTSettingsHeaders (0.64.2):
187 | - glog
188 | - RCT-Folly (= 2020.01.13.00)
189 | - React-Core/Default
190 | - React-cxxreact (= 0.64.2)
191 | - React-jsi (= 0.64.2)
192 | - React-jsiexecutor (= 0.64.2)
193 | - React-perflogger (= 0.64.2)
194 | - Yoga
195 | - React-Core/RCTTextHeaders (0.64.2):
196 | - glog
197 | - RCT-Folly (= 2020.01.13.00)
198 | - React-Core/Default
199 | - React-cxxreact (= 0.64.2)
200 | - React-jsi (= 0.64.2)
201 | - React-jsiexecutor (= 0.64.2)
202 | - React-perflogger (= 0.64.2)
203 | - Yoga
204 | - React-Core/RCTVibrationHeaders (0.64.2):
205 | - glog
206 | - RCT-Folly (= 2020.01.13.00)
207 | - React-Core/Default
208 | - React-cxxreact (= 0.64.2)
209 | - React-jsi (= 0.64.2)
210 | - React-jsiexecutor (= 0.64.2)
211 | - React-perflogger (= 0.64.2)
212 | - Yoga
213 | - React-Core/RCTWebSocket (0.64.2):
214 | - glog
215 | - RCT-Folly (= 2020.01.13.00)
216 | - React-Core/Default (= 0.64.2)
217 | - React-cxxreact (= 0.64.2)
218 | - React-jsi (= 0.64.2)
219 | - React-jsiexecutor (= 0.64.2)
220 | - React-perflogger (= 0.64.2)
221 | - Yoga
222 | - React-CoreModules (0.64.2):
223 | - FBReactNativeSpec (= 0.64.2)
224 | - RCT-Folly (= 2020.01.13.00)
225 | - RCTTypeSafety (= 0.64.2)
226 | - React-Core/CoreModulesHeaders (= 0.64.2)
227 | - React-jsi (= 0.64.2)
228 | - React-RCTImage (= 0.64.2)
229 | - ReactCommon/turbomodule/core (= 0.64.2)
230 | - React-cxxreact (0.64.2):
231 | - boost-for-react-native (= 1.63.0)
232 | - DoubleConversion
233 | - glog
234 | - RCT-Folly (= 2020.01.13.00)
235 | - React-callinvoker (= 0.64.2)
236 | - React-jsi (= 0.64.2)
237 | - React-jsinspector (= 0.64.2)
238 | - React-perflogger (= 0.64.2)
239 | - React-runtimeexecutor (= 0.64.2)
240 | - React-jsi (0.64.2):
241 | - boost-for-react-native (= 1.63.0)
242 | - DoubleConversion
243 | - glog
244 | - RCT-Folly (= 2020.01.13.00)
245 | - React-jsi/Default (= 0.64.2)
246 | - React-jsi/Default (0.64.2):
247 | - boost-for-react-native (= 1.63.0)
248 | - DoubleConversion
249 | - glog
250 | - RCT-Folly (= 2020.01.13.00)
251 | - React-jsiexecutor (0.64.2):
252 | - DoubleConversion
253 | - glog
254 | - RCT-Folly (= 2020.01.13.00)
255 | - React-cxxreact (= 0.64.2)
256 | - React-jsi (= 0.64.2)
257 | - React-perflogger (= 0.64.2)
258 | - React-jsinspector (0.64.2)
259 | - react-native-config (1.4.4):
260 | - react-native-config/App (= 1.4.4)
261 | - react-native-config/App (1.4.4):
262 | - React-Core
263 | - react-native-image-picker (4.0.4):
264 | - React-Core
265 | - React-perflogger (0.64.2)
266 | - React-RCTActionSheet (0.64.2):
267 | - React-Core/RCTActionSheetHeaders (= 0.64.2)
268 | - React-RCTAnimation (0.64.2):
269 | - FBReactNativeSpec (= 0.64.2)
270 | - RCT-Folly (= 2020.01.13.00)
271 | - RCTTypeSafety (= 0.64.2)
272 | - React-Core/RCTAnimationHeaders (= 0.64.2)
273 | - React-jsi (= 0.64.2)
274 | - ReactCommon/turbomodule/core (= 0.64.2)
275 | - React-RCTBlob (0.64.2):
276 | - FBReactNativeSpec (= 0.64.2)
277 | - RCT-Folly (= 2020.01.13.00)
278 | - React-Core/RCTBlobHeaders (= 0.64.2)
279 | - React-Core/RCTWebSocket (= 0.64.2)
280 | - React-jsi (= 0.64.2)
281 | - React-RCTNetwork (= 0.64.2)
282 | - ReactCommon/turbomodule/core (= 0.64.2)
283 | - React-RCTImage (0.64.2):
284 | - FBReactNativeSpec (= 0.64.2)
285 | - RCT-Folly (= 2020.01.13.00)
286 | - RCTTypeSafety (= 0.64.2)
287 | - React-Core/RCTImageHeaders (= 0.64.2)
288 | - React-jsi (= 0.64.2)
289 | - React-RCTNetwork (= 0.64.2)
290 | - ReactCommon/turbomodule/core (= 0.64.2)
291 | - React-RCTLinking (0.64.2):
292 | - FBReactNativeSpec (= 0.64.2)
293 | - React-Core/RCTLinkingHeaders (= 0.64.2)
294 | - React-jsi (= 0.64.2)
295 | - ReactCommon/turbomodule/core (= 0.64.2)
296 | - React-RCTNetwork (0.64.2):
297 | - FBReactNativeSpec (= 0.64.2)
298 | - RCT-Folly (= 2020.01.13.00)
299 | - RCTTypeSafety (= 0.64.2)
300 | - React-Core/RCTNetworkHeaders (= 0.64.2)
301 | - React-jsi (= 0.64.2)
302 | - ReactCommon/turbomodule/core (= 0.64.2)
303 | - React-RCTSettings (0.64.2):
304 | - FBReactNativeSpec (= 0.64.2)
305 | - RCT-Folly (= 2020.01.13.00)
306 | - RCTTypeSafety (= 0.64.2)
307 | - React-Core/RCTSettingsHeaders (= 0.64.2)
308 | - React-jsi (= 0.64.2)
309 | - ReactCommon/turbomodule/core (= 0.64.2)
310 | - React-RCTText (0.64.2):
311 | - React-Core/RCTTextHeaders (= 0.64.2)
312 | - React-RCTVibration (0.64.2):
313 | - FBReactNativeSpec (= 0.64.2)
314 | - RCT-Folly (= 2020.01.13.00)
315 | - React-Core/RCTVibrationHeaders (= 0.64.2)
316 | - React-jsi (= 0.64.2)
317 | - ReactCommon/turbomodule/core (= 0.64.2)
318 | - React-runtimeexecutor (0.64.2):
319 | - React-jsi (= 0.64.2)
320 | - ReactCommon/turbomodule/core (0.64.2):
321 | - DoubleConversion
322 | - glog
323 | - RCT-Folly (= 2020.01.13.00)
324 | - React-callinvoker (= 0.64.2)
325 | - React-Core (= 0.64.2)
326 | - React-cxxreact (= 0.64.2)
327 | - React-jsi (= 0.64.2)
328 | - React-perflogger (= 0.64.2)
329 | - RNPermissions (3.0.5):
330 | - React-Core
331 | - TensorFlowLite (1.12.0)
332 | - Yoga (1.14.0)
333 | - YogaKit (1.18.1):
334 | - Yoga (~> 1.14)
335 |
336 | DEPENDENCIES:
337 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
338 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
339 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
340 | - Flipper (~> 0.75.1)
341 | - Flipper-DoubleConversion (= 1.1.7)
342 | - Flipper-Folly (~> 2.5.3)
343 | - Flipper-Glog (= 0.3.6)
344 | - Flipper-PeerTalk (~> 0.0.4)
345 | - Flipper-RSocket (~> 1.3)
346 | - FlipperKit (~> 0.75.1)
347 | - FlipperKit/Core (~> 0.75.1)
348 | - FlipperKit/CppBridge (~> 0.75.1)
349 | - FlipperKit/FBCxxFollyDynamicConvert (~> 0.75.1)
350 | - FlipperKit/FBDefines (~> 0.75.1)
351 | - FlipperKit/FKPortForwarding (~> 0.75.1)
352 | - FlipperKit/FlipperKitHighlightOverlay (~> 0.75.1)
353 | - FlipperKit/FlipperKitLayoutPlugin (~> 0.75.1)
354 | - FlipperKit/FlipperKitLayoutTextSearchable (~> 0.75.1)
355 | - FlipperKit/FlipperKitNetworkPlugin (~> 0.75.1)
356 | - FlipperKit/FlipperKitReactPlugin (~> 0.75.1)
357 | - FlipperKit/FlipperKitUserDefaultsPlugin (~> 0.75.1)
358 | - FlipperKit/SKIOSNetworkPlugin (~> 0.75.1)
359 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
360 | - Permission-Camera (from `../node_modules/react-native-permissions/ios/Camera`)
361 | - Permission-PhotoLibrary (from `../node_modules/react-native-permissions/ios/PhotoLibrary`)
362 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
363 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
364 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
365 | - React (from `../node_modules/react-native/`)
366 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`)
367 | - React-Core (from `../node_modules/react-native/`)
368 | - React-Core/DevSupport (from `../node_modules/react-native/`)
369 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`)
370 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
371 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
372 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
373 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
374 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
375 | - react-native-config (from `../node_modules/react-native-config`)
376 | - react-native-image-picker (from `../node_modules/react-native-image-picker`)
377 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
378 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
379 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
380 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
381 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
382 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
383 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
384 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
385 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
386 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
387 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
388 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
389 | - RNPermissions (from `../node_modules/react-native-permissions`)
390 | - TensorFlowLite (= 1.12.0)
391 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
392 |
393 | SPEC REPOS:
394 | trunk:
395 | - boost-for-react-native
396 | - CocoaAsyncSocket
397 | - Flipper
398 | - Flipper-DoubleConversion
399 | - Flipper-Folly
400 | - Flipper-Glog
401 | - Flipper-PeerTalk
402 | - Flipper-RSocket
403 | - FlipperKit
404 | - libevent
405 | - OpenSSL-Universal
406 | - TensorFlowLite
407 | - YogaKit
408 |
409 | EXTERNAL SOURCES:
410 | DoubleConversion:
411 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
412 | FBLazyVector:
413 | :path: "../node_modules/react-native/Libraries/FBLazyVector"
414 | FBReactNativeSpec:
415 | :path: "../node_modules/react-native/React/FBReactNativeSpec"
416 | glog:
417 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
418 | Permission-Camera:
419 | :path: "../node_modules/react-native-permissions/ios/Camera"
420 | Permission-PhotoLibrary:
421 | :path: "../node_modules/react-native-permissions/ios/PhotoLibrary"
422 | RCT-Folly:
423 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
424 | RCTRequired:
425 | :path: "../node_modules/react-native/Libraries/RCTRequired"
426 | RCTTypeSafety:
427 | :path: "../node_modules/react-native/Libraries/TypeSafety"
428 | React:
429 | :path: "../node_modules/react-native/"
430 | React-callinvoker:
431 | :path: "../node_modules/react-native/ReactCommon/callinvoker"
432 | React-Core:
433 | :path: "../node_modules/react-native/"
434 | React-CoreModules:
435 | :path: "../node_modules/react-native/React/CoreModules"
436 | React-cxxreact:
437 | :path: "../node_modules/react-native/ReactCommon/cxxreact"
438 | React-jsi:
439 | :path: "../node_modules/react-native/ReactCommon/jsi"
440 | React-jsiexecutor:
441 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor"
442 | React-jsinspector:
443 | :path: "../node_modules/react-native/ReactCommon/jsinspector"
444 | react-native-config:
445 | :path: "../node_modules/react-native-config"
446 | react-native-image-picker:
447 | :path: "../node_modules/react-native-image-picker"
448 | React-perflogger:
449 | :path: "../node_modules/react-native/ReactCommon/reactperflogger"
450 | React-RCTActionSheet:
451 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
452 | React-RCTAnimation:
453 | :path: "../node_modules/react-native/Libraries/NativeAnimation"
454 | React-RCTBlob:
455 | :path: "../node_modules/react-native/Libraries/Blob"
456 | React-RCTImage:
457 | :path: "../node_modules/react-native/Libraries/Image"
458 | React-RCTLinking:
459 | :path: "../node_modules/react-native/Libraries/LinkingIOS"
460 | React-RCTNetwork:
461 | :path: "../node_modules/react-native/Libraries/Network"
462 | React-RCTSettings:
463 | :path: "../node_modules/react-native/Libraries/Settings"
464 | React-RCTText:
465 | :path: "../node_modules/react-native/Libraries/Text"
466 | React-RCTVibration:
467 | :path: "../node_modules/react-native/Libraries/Vibration"
468 | React-runtimeexecutor:
469 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
470 | ReactCommon:
471 | :path: "../node_modules/react-native/ReactCommon"
472 | RNPermissions:
473 | :path: "../node_modules/react-native-permissions"
474 | Yoga:
475 | :path: "../node_modules/react-native/ReactCommon/yoga"
476 |
477 | SPEC CHECKSUMS:
478 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
479 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
480 | DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de
481 | FBLazyVector: e686045572151edef46010a6f819ade377dfeb4b
482 | FBReactNativeSpec: 45781490bf3049e927c022606637371887d2ce86
483 | Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021
484 | Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41
485 | Flipper-Folly: 755929a4f851b2fb2c347d533a23f191b008554c
486 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6
487 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9
488 | Flipper-RSocket: 127954abe8b162fcaf68d2134d34dc2bd7076154
489 | FlipperKit: 8a20b5c5fcf9436cac58551dc049867247f64b00
490 | glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62
491 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
492 | OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b
493 | Permission-Camera: ac603073e4128e51e6ca3c39129778f05b4082fa
494 | Permission-PhotoLibrary: 0748c1a490fad126dfe36dbea8234dedfe59cc27
495 | RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c
496 | RCTRequired: 6d3e854f0e7260a648badd0d44fc364bc9da9728
497 | RCTTypeSafety: c1f31d19349c6b53085766359caac425926fafaa
498 | React: bda6b6d7ae912de97d7a61aa5c160db24aa2ad69
499 | React-callinvoker: 9840ea7e8e88ed73d438edb725574820b29b5baa
500 | React-Core: b5e385da7ce5f16a220fc60fd0749eae2c6120f0
501 | React-CoreModules: 17071a4e2c5239b01585f4aa8070141168ab298f
502 | React-cxxreact: 9be7b6340ed9f7c53e53deca7779f07cd66525ba
503 | React-jsi: 67747b9722f6dab2ffe15b011bcf6b3f2c3f1427
504 | React-jsiexecutor: 80c46bd381fd06e418e0d4f53672dc1d1945c4c3
505 | React-jsinspector: cc614ec18a9ca96fd275100c16d74d62ee11f0ae
506 | react-native-config: 72d948053a442779b3178fddd571e37f118ef606
507 | react-native-image-picker: c07b072faa83f3480b473a15ea3c19cc39b3d6fa
508 | React-perflogger: 25373e382fed75ce768a443822f07098a15ab737
509 | React-RCTActionSheet: af7796ba49ffe4ca92e7277a5d992d37203f7da5
510 | React-RCTAnimation: 6a2e76ab50c6f25b428d81b76a5a45351c4d77aa
511 | React-RCTBlob: 02a2887023e0eed99391b6445b2e23a2a6f9226d
512 | React-RCTImage: ce5bf8e7438f2286d9b646a05d6ab11f38b0323d
513 | React-RCTLinking: ccd20742de14e020cb5f99d5c7e0bf0383aefbd9
514 | React-RCTNetwork: dfb9d089ab0753e5e5f55fc4b1210858f7245647
515 | React-RCTSettings: b14aef2d83699e48b410fb7c3ba5b66cd3291ae2
516 | React-RCTText: 41a2e952dd9adc5caf6fb68ed46b275194d5da5f
517 | React-RCTVibration: 24600e3b1aaa77126989bc58b6747509a1ba14f3
518 | React-runtimeexecutor: a9904c6d0218fb9f8b19d6dd88607225927668f9
519 | ReactCommon: 149906e01aa51142707a10665185db879898e966
520 | RNPermissions: 7043bacbf928eae25808275cfe73799b8f618911
521 | TensorFlowLite: e81aef029750aa46b42ad16553fa4cddd81498cc
522 | Yoga: 575c581c63e0d35c9a83f4b46d01d63abc1100ac
523 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
524 |
525 | PODFILE CHECKSUM: 2d2fe6349cd6f376e57e8bd44d01cbc700de6709
526 |
527 | COCOAPODS: 1.10.1
528 |
--------------------------------------------------------------------------------
/mobile-app/ios/Roboto-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/ios/Roboto-Bold.ttf
--------------------------------------------------------------------------------
/mobile-app/ios/fonts/Roboto-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/ios/fonts/Roboto-Bold.ttf
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 54;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00E356F31AD99517003FC87E /* mlDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* mlDemoTests.m */; };
11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
14 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
15 | 9F7B9301A5DFB348FFAB24DC /* libPods-mlDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E94EBE875DB76EE856B6C805 /* libPods-mlDemo.a */; };
16 | D3EF232EEA94FE24033EB393 /* libPods-mlDemo-mlDemoTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BDF001DB6BFD8456E62A96D /* libPods-mlDemo-mlDemoTests.a */; };
17 | EA37F07B26DE011900EBF8A0 /* Roboto-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EA37F07A26DE011900EBF8A0 /* Roboto-Bold.ttf */; };
18 | EA37F07C26DE011900EBF8A0 /* Roboto-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EA37F07A26DE011900EBF8A0 /* Roboto-Bold.ttf */; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXContainerItemProxy section */
22 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
23 | isa = PBXContainerItemProxy;
24 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
25 | proxyType = 1;
26 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
27 | remoteInfo = mlDemo;
28 | };
29 | /* End PBXContainerItemProxy section */
30 |
31 | /* Begin PBXFileReference section */
32 | 00E356EE1AD99517003FC87E /* mlDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = mlDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
33 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
34 | 00E356F21AD99517003FC87E /* mlDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = mlDemoTests.m; sourceTree = ""; };
35 | 13B07F961A680F5B00A75B9A /* mlDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = mlDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
36 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = mlDemo/AppDelegate.h; sourceTree = ""; };
37 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = mlDemo/AppDelegate.m; sourceTree = ""; };
38 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = mlDemo/Images.xcassets; sourceTree = ""; };
39 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = mlDemo/Info.plist; sourceTree = ""; };
40 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = mlDemo/main.m; sourceTree = ""; };
41 | 29B222C807664185304FF26A /* Pods-mlDemo-mlDemoTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-mlDemo-mlDemoTests.debug.xcconfig"; path = "Target Support Files/Pods-mlDemo-mlDemoTests/Pods-mlDemo-mlDemoTests.debug.xcconfig"; sourceTree = ""; };
42 | 34A6D890A85A38B4BDC6DAF9 /* Pods-mlDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-mlDemo.release.xcconfig"; path = "Target Support Files/Pods-mlDemo/Pods-mlDemo.release.xcconfig"; sourceTree = ""; };
43 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = mlDemo/LaunchScreen.storyboard; sourceTree = ""; };
44 | 8BDF001DB6BFD8456E62A96D /* libPods-mlDemo-mlDemoTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-mlDemo-mlDemoTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
45 | C10665E2AC2AA14827D5BB0F /* Pods-mlDemo-mlDemoTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-mlDemo-mlDemoTests.release.xcconfig"; path = "Target Support Files/Pods-mlDemo-mlDemoTests/Pods-mlDemo-mlDemoTests.release.xcconfig"; sourceTree = ""; };
46 | E94EBE875DB76EE856B6C805 /* libPods-mlDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-mlDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
47 | EA37F07A26DE011900EBF8A0 /* Roboto-Bold.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Roboto-Bold.ttf"; sourceTree = ""; };
48 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
49 | F43633AD87BADC17BA17A840 /* Pods-mlDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-mlDemo.debug.xcconfig"; path = "Target Support Files/Pods-mlDemo/Pods-mlDemo.debug.xcconfig"; sourceTree = ""; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | D3EF232EEA94FE24033EB393 /* libPods-mlDemo-mlDemoTests.a in Frameworks */,
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
62 | isa = PBXFrameworksBuildPhase;
63 | buildActionMask = 2147483647;
64 | files = (
65 | 9F7B9301A5DFB348FFAB24DC /* libPods-mlDemo.a in Frameworks */,
66 | );
67 | runOnlyForDeploymentPostprocessing = 0;
68 | };
69 | /* End PBXFrameworksBuildPhase section */
70 |
71 | /* Begin PBXGroup section */
72 | 00E356EF1AD99517003FC87E /* mlDemoTests */ = {
73 | isa = PBXGroup;
74 | children = (
75 | 00E356F21AD99517003FC87E /* mlDemoTests.m */,
76 | 00E356F01AD99517003FC87E /* Supporting Files */,
77 | );
78 | path = mlDemoTests;
79 | sourceTree = "";
80 | };
81 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
82 | isa = PBXGroup;
83 | children = (
84 | 00E356F11AD99517003FC87E /* Info.plist */,
85 | );
86 | name = "Supporting Files";
87 | sourceTree = "";
88 | };
89 | 11FFAA9532D0EE7B2747C2F4 /* Pods */ = {
90 | isa = PBXGroup;
91 | children = (
92 | F43633AD87BADC17BA17A840 /* Pods-mlDemo.debug.xcconfig */,
93 | 34A6D890A85A38B4BDC6DAF9 /* Pods-mlDemo.release.xcconfig */,
94 | 29B222C807664185304FF26A /* Pods-mlDemo-mlDemoTests.debug.xcconfig */,
95 | C10665E2AC2AA14827D5BB0F /* Pods-mlDemo-mlDemoTests.release.xcconfig */,
96 | );
97 | path = Pods;
98 | sourceTree = "";
99 | };
100 | 13B07FAE1A68108700A75B9A /* mlDemo */ = {
101 | isa = PBXGroup;
102 | children = (
103 | EA93763926DDE9EC0091F05C /* fonts */,
104 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
105 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
106 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
107 | 13B07FB61A68108700A75B9A /* Info.plist */,
108 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
109 | 13B07FB71A68108700A75B9A /* main.m */,
110 | );
111 | name = mlDemo;
112 | sourceTree = "";
113 | };
114 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
115 | isa = PBXGroup;
116 | children = (
117 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
118 | E94EBE875DB76EE856B6C805 /* libPods-mlDemo.a */,
119 | 8BDF001DB6BFD8456E62A96D /* libPods-mlDemo-mlDemoTests.a */,
120 | );
121 | name = Frameworks;
122 | sourceTree = "";
123 | };
124 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
125 | isa = PBXGroup;
126 | children = (
127 | );
128 | name = Libraries;
129 | sourceTree = "";
130 | };
131 | 83CBB9F61A601CBA00E9B192 = {
132 | isa = PBXGroup;
133 | children = (
134 | 13B07FAE1A68108700A75B9A /* mlDemo */,
135 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
136 | 00E356EF1AD99517003FC87E /* mlDemoTests */,
137 | 83CBBA001A601CBA00E9B192 /* Products */,
138 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
139 | 11FFAA9532D0EE7B2747C2F4 /* Pods */,
140 | );
141 | indentWidth = 2;
142 | sourceTree = "";
143 | tabWidth = 2;
144 | usesTabs = 0;
145 | };
146 | 83CBBA001A601CBA00E9B192 /* Products */ = {
147 | isa = PBXGroup;
148 | children = (
149 | 13B07F961A680F5B00A75B9A /* mlDemo.app */,
150 | 00E356EE1AD99517003FC87E /* mlDemoTests.xctest */,
151 | );
152 | name = Products;
153 | sourceTree = "";
154 | };
155 | EA93763926DDE9EC0091F05C /* fonts */ = {
156 | isa = PBXGroup;
157 | children = (
158 | EA37F07A26DE011900EBF8A0 /* Roboto-Bold.ttf */,
159 | );
160 | name = fonts;
161 | sourceTree = "";
162 | };
163 | /* End PBXGroup section */
164 |
165 | /* Begin PBXNativeTarget section */
166 | 00E356ED1AD99517003FC87E /* mlDemoTests */ = {
167 | isa = PBXNativeTarget;
168 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "mlDemoTests" */;
169 | buildPhases = (
170 | C39C6EB1C498BC774D9514CB /* [CP] Check Pods Manifest.lock */,
171 | 00E356EA1AD99517003FC87E /* Sources */,
172 | 00E356EB1AD99517003FC87E /* Frameworks */,
173 | 00E356EC1AD99517003FC87E /* Resources */,
174 | 8301608201D351F4D53E0A6A /* [CP] Embed Pods Frameworks */,
175 | 4D03DDDA1738BE0024528F9A /* [CP] Copy Pods Resources */,
176 | );
177 | buildRules = (
178 | );
179 | dependencies = (
180 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
181 | );
182 | name = mlDemoTests;
183 | productName = mlDemoTests;
184 | productReference = 00E356EE1AD99517003FC87E /* mlDemoTests.xctest */;
185 | productType = "com.apple.product-type.bundle.unit-test";
186 | };
187 | 13B07F861A680F5B00A75B9A /* mlDemo */ = {
188 | isa = PBXNativeTarget;
189 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "mlDemo" */;
190 | buildPhases = (
191 | E567B42C5E805FE8CF4223B2 /* [CP] Check Pods Manifest.lock */,
192 | FD10A7F022414F080027D42C /* Start Packager */,
193 | 13B07F871A680F5B00A75B9A /* Sources */,
194 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
195 | 13B07F8E1A680F5B00A75B9A /* Resources */,
196 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
197 | 8A3994A5F13D85DC36B0E5C2 /* [CP] Embed Pods Frameworks */,
198 | 950283698F8301E4640B44DE /* [CP] Copy Pods Resources */,
199 | );
200 | buildRules = (
201 | );
202 | dependencies = (
203 | );
204 | name = mlDemo;
205 | productName = mlDemo;
206 | productReference = 13B07F961A680F5B00A75B9A /* mlDemo.app */;
207 | productType = "com.apple.product-type.application";
208 | };
209 | /* End PBXNativeTarget section */
210 |
211 | /* Begin PBXProject section */
212 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
213 | isa = PBXProject;
214 | attributes = {
215 | LastUpgradeCheck = 1210;
216 | TargetAttributes = {
217 | 00E356ED1AD99517003FC87E = {
218 | CreatedOnToolsVersion = 6.2;
219 | TestTargetID = 13B07F861A680F5B00A75B9A;
220 | };
221 | 13B07F861A680F5B00A75B9A = {
222 | LastSwiftMigration = 1120;
223 | };
224 | };
225 | };
226 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "mlDemo" */;
227 | compatibilityVersion = "Xcode 12.0";
228 | developmentRegion = en;
229 | hasScannedForEncodings = 0;
230 | knownRegions = (
231 | en,
232 | Base,
233 | );
234 | mainGroup = 83CBB9F61A601CBA00E9B192;
235 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
236 | projectDirPath = "";
237 | projectRoot = "";
238 | targets = (
239 | 13B07F861A680F5B00A75B9A /* mlDemo */,
240 | 00E356ED1AD99517003FC87E /* mlDemoTests */,
241 | );
242 | };
243 | /* End PBXProject section */
244 |
245 | /* Begin PBXResourcesBuildPhase section */
246 | 00E356EC1AD99517003FC87E /* Resources */ = {
247 | isa = PBXResourcesBuildPhase;
248 | buildActionMask = 2147483647;
249 | files = (
250 | EA37F07C26DE011900EBF8A0 /* Roboto-Bold.ttf in Resources */,
251 | );
252 | runOnlyForDeploymentPostprocessing = 0;
253 | };
254 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
255 | isa = PBXResourcesBuildPhase;
256 | buildActionMask = 2147483647;
257 | files = (
258 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
259 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
260 | EA37F07B26DE011900EBF8A0 /* Roboto-Bold.ttf in Resources */,
261 | );
262 | runOnlyForDeploymentPostprocessing = 0;
263 | };
264 | /* End PBXResourcesBuildPhase section */
265 |
266 | /* Begin PBXShellScriptBuildPhase section */
267 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
268 | isa = PBXShellScriptBuildPhase;
269 | buildActionMask = 2147483647;
270 | files = (
271 | );
272 | inputPaths = (
273 | );
274 | name = "Bundle React Native code and images";
275 | outputPaths = (
276 | );
277 | runOnlyForDeploymentPostprocessing = 0;
278 | shellPath = /bin/sh;
279 | shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n";
280 | };
281 | 4D03DDDA1738BE0024528F9A /* [CP] Copy Pods Resources */ = {
282 | isa = PBXShellScriptBuildPhase;
283 | buildActionMask = 2147483647;
284 | files = (
285 | );
286 | inputFileListPaths = (
287 | "${PODS_ROOT}/Target Support Files/Pods-mlDemo-mlDemoTests/Pods-mlDemo-mlDemoTests-resources-${CONFIGURATION}-input-files.xcfilelist",
288 | );
289 | name = "[CP] Copy Pods Resources";
290 | outputFileListPaths = (
291 | "${PODS_ROOT}/Target Support Files/Pods-mlDemo-mlDemoTests/Pods-mlDemo-mlDemoTests-resources-${CONFIGURATION}-output-files.xcfilelist",
292 | );
293 | runOnlyForDeploymentPostprocessing = 0;
294 | shellPath = /bin/sh;
295 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-mlDemo-mlDemoTests/Pods-mlDemo-mlDemoTests-resources.sh\"\n";
296 | showEnvVarsInLog = 0;
297 | };
298 | 8301608201D351F4D53E0A6A /* [CP] Embed Pods Frameworks */ = {
299 | isa = PBXShellScriptBuildPhase;
300 | buildActionMask = 2147483647;
301 | files = (
302 | );
303 | inputFileListPaths = (
304 | "${PODS_ROOT}/Target Support Files/Pods-mlDemo-mlDemoTests/Pods-mlDemo-mlDemoTests-frameworks-${CONFIGURATION}-input-files.xcfilelist",
305 | );
306 | name = "[CP] Embed Pods Frameworks";
307 | outputFileListPaths = (
308 | "${PODS_ROOT}/Target Support Files/Pods-mlDemo-mlDemoTests/Pods-mlDemo-mlDemoTests-frameworks-${CONFIGURATION}-output-files.xcfilelist",
309 | );
310 | runOnlyForDeploymentPostprocessing = 0;
311 | shellPath = /bin/sh;
312 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-mlDemo-mlDemoTests/Pods-mlDemo-mlDemoTests-frameworks.sh\"\n";
313 | showEnvVarsInLog = 0;
314 | };
315 | 8A3994A5F13D85DC36B0E5C2 /* [CP] Embed Pods Frameworks */ = {
316 | isa = PBXShellScriptBuildPhase;
317 | buildActionMask = 2147483647;
318 | files = (
319 | );
320 | inputFileListPaths = (
321 | "${PODS_ROOT}/Target Support Files/Pods-mlDemo/Pods-mlDemo-frameworks-${CONFIGURATION}-input-files.xcfilelist",
322 | );
323 | name = "[CP] Embed Pods Frameworks";
324 | outputFileListPaths = (
325 | "${PODS_ROOT}/Target Support Files/Pods-mlDemo/Pods-mlDemo-frameworks-${CONFIGURATION}-output-files.xcfilelist",
326 | );
327 | runOnlyForDeploymentPostprocessing = 0;
328 | shellPath = /bin/sh;
329 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-mlDemo/Pods-mlDemo-frameworks.sh\"\n";
330 | showEnvVarsInLog = 0;
331 | };
332 | 950283698F8301E4640B44DE /* [CP] Copy Pods Resources */ = {
333 | isa = PBXShellScriptBuildPhase;
334 | buildActionMask = 2147483647;
335 | files = (
336 | );
337 | inputFileListPaths = (
338 | "${PODS_ROOT}/Target Support Files/Pods-mlDemo/Pods-mlDemo-resources-${CONFIGURATION}-input-files.xcfilelist",
339 | );
340 | name = "[CP] Copy Pods Resources";
341 | outputFileListPaths = (
342 | "${PODS_ROOT}/Target Support Files/Pods-mlDemo/Pods-mlDemo-resources-${CONFIGURATION}-output-files.xcfilelist",
343 | );
344 | runOnlyForDeploymentPostprocessing = 0;
345 | shellPath = /bin/sh;
346 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-mlDemo/Pods-mlDemo-resources.sh\"\n";
347 | showEnvVarsInLog = 0;
348 | };
349 | C39C6EB1C498BC774D9514CB /* [CP] Check Pods Manifest.lock */ = {
350 | isa = PBXShellScriptBuildPhase;
351 | buildActionMask = 2147483647;
352 | files = (
353 | );
354 | inputFileListPaths = (
355 | );
356 | inputPaths = (
357 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
358 | "${PODS_ROOT}/Manifest.lock",
359 | );
360 | name = "[CP] Check Pods Manifest.lock";
361 | outputFileListPaths = (
362 | );
363 | outputPaths = (
364 | "$(DERIVED_FILE_DIR)/Pods-mlDemo-mlDemoTests-checkManifestLockResult.txt",
365 | );
366 | runOnlyForDeploymentPostprocessing = 0;
367 | shellPath = /bin/sh;
368 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
369 | showEnvVarsInLog = 0;
370 | };
371 | E567B42C5E805FE8CF4223B2 /* [CP] Check Pods Manifest.lock */ = {
372 | isa = PBXShellScriptBuildPhase;
373 | buildActionMask = 2147483647;
374 | files = (
375 | );
376 | inputFileListPaths = (
377 | );
378 | inputPaths = (
379 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
380 | "${PODS_ROOT}/Manifest.lock",
381 | );
382 | name = "[CP] Check Pods Manifest.lock";
383 | outputFileListPaths = (
384 | );
385 | outputPaths = (
386 | "$(DERIVED_FILE_DIR)/Pods-mlDemo-checkManifestLockResult.txt",
387 | );
388 | runOnlyForDeploymentPostprocessing = 0;
389 | shellPath = /bin/sh;
390 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
391 | showEnvVarsInLog = 0;
392 | };
393 | FD10A7F022414F080027D42C /* Start Packager */ = {
394 | isa = PBXShellScriptBuildPhase;
395 | buildActionMask = 2147483647;
396 | files = (
397 | );
398 | inputFileListPaths = (
399 | );
400 | inputPaths = (
401 | );
402 | name = "Start Packager";
403 | outputFileListPaths = (
404 | );
405 | outputPaths = (
406 | );
407 | runOnlyForDeploymentPostprocessing = 0;
408 | shellPath = /bin/sh;
409 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
410 | showEnvVarsInLog = 0;
411 | };
412 | /* End PBXShellScriptBuildPhase section */
413 |
414 | /* Begin PBXSourcesBuildPhase section */
415 | 00E356EA1AD99517003FC87E /* Sources */ = {
416 | isa = PBXSourcesBuildPhase;
417 | buildActionMask = 2147483647;
418 | files = (
419 | 00E356F31AD99517003FC87E /* mlDemoTests.m in Sources */,
420 | );
421 | runOnlyForDeploymentPostprocessing = 0;
422 | };
423 | 13B07F871A680F5B00A75B9A /* Sources */ = {
424 | isa = PBXSourcesBuildPhase;
425 | buildActionMask = 2147483647;
426 | files = (
427 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
428 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
429 | );
430 | runOnlyForDeploymentPostprocessing = 0;
431 | };
432 | /* End PBXSourcesBuildPhase section */
433 |
434 | /* Begin PBXTargetDependency section */
435 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
436 | isa = PBXTargetDependency;
437 | target = 13B07F861A680F5B00A75B9A /* mlDemo */;
438 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
439 | };
440 | /* End PBXTargetDependency section */
441 |
442 | /* Begin XCBuildConfiguration section */
443 | 00E356F61AD99517003FC87E /* Debug */ = {
444 | isa = XCBuildConfiguration;
445 | baseConfigurationReference = 29B222C807664185304FF26A /* Pods-mlDemo-mlDemoTests.debug.xcconfig */;
446 | buildSettings = {
447 | BUNDLE_LOADER = "$(TEST_HOST)";
448 | GCC_PREPROCESSOR_DEFINITIONS = (
449 | "DEBUG=1",
450 | "$(inherited)",
451 | );
452 | INFOPLIST_FILE = mlDemoTests/Info.plist;
453 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
454 | LD_RUNPATH_SEARCH_PATHS = (
455 | "$(inherited)",
456 | "@executable_path/Frameworks",
457 | "@loader_path/Frameworks",
458 | );
459 | OTHER_LDFLAGS = (
460 | "-ObjC",
461 | "-lc++",
462 | "$(inherited)",
463 | );
464 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
465 | PRODUCT_NAME = "$(TARGET_NAME)";
466 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/mlDemo.app/mlDemo";
467 | };
468 | name = Debug;
469 | };
470 | 00E356F71AD99517003FC87E /* Release */ = {
471 | isa = XCBuildConfiguration;
472 | baseConfigurationReference = C10665E2AC2AA14827D5BB0F /* Pods-mlDemo-mlDemoTests.release.xcconfig */;
473 | buildSettings = {
474 | BUNDLE_LOADER = "$(TEST_HOST)";
475 | COPY_PHASE_STRIP = NO;
476 | INFOPLIST_FILE = mlDemoTests/Info.plist;
477 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
478 | LD_RUNPATH_SEARCH_PATHS = (
479 | "$(inherited)",
480 | "@executable_path/Frameworks",
481 | "@loader_path/Frameworks",
482 | );
483 | OTHER_LDFLAGS = (
484 | "-ObjC",
485 | "-lc++",
486 | "$(inherited)",
487 | );
488 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
489 | PRODUCT_NAME = "$(TARGET_NAME)";
490 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/mlDemo.app/mlDemo";
491 | };
492 | name = Release;
493 | };
494 | 13B07F941A680F5B00A75B9A /* Debug */ = {
495 | isa = XCBuildConfiguration;
496 | baseConfigurationReference = F43633AD87BADC17BA17A840 /* Pods-mlDemo.debug.xcconfig */;
497 | buildSettings = {
498 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
499 | CLANG_ENABLE_MODULES = YES;
500 | CURRENT_PROJECT_VERSION = 1;
501 | ENABLE_BITCODE = NO;
502 | INFOPLIST_FILE = mlDemo/Info.plist;
503 | LD_RUNPATH_SEARCH_PATHS = (
504 | "$(inherited)",
505 | "@executable_path/Frameworks",
506 | );
507 | OTHER_LDFLAGS = (
508 | "$(inherited)",
509 | "-ObjC",
510 | "-lc++",
511 | );
512 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
513 | PRODUCT_NAME = mlDemo;
514 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
515 | SWIFT_VERSION = 5.0;
516 | VERSIONING_SYSTEM = "apple-generic";
517 | };
518 | name = Debug;
519 | };
520 | 13B07F951A680F5B00A75B9A /* Release */ = {
521 | isa = XCBuildConfiguration;
522 | baseConfigurationReference = 34A6D890A85A38B4BDC6DAF9 /* Pods-mlDemo.release.xcconfig */;
523 | buildSettings = {
524 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
525 | CLANG_ENABLE_MODULES = YES;
526 | CURRENT_PROJECT_VERSION = 1;
527 | INFOPLIST_FILE = mlDemo/Info.plist;
528 | LD_RUNPATH_SEARCH_PATHS = (
529 | "$(inherited)",
530 | "@executable_path/Frameworks",
531 | );
532 | OTHER_LDFLAGS = (
533 | "$(inherited)",
534 | "-ObjC",
535 | "-lc++",
536 | );
537 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
538 | PRODUCT_NAME = mlDemo;
539 | SWIFT_VERSION = 5.0;
540 | VERSIONING_SYSTEM = "apple-generic";
541 | };
542 | name = Release;
543 | };
544 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
545 | isa = XCBuildConfiguration;
546 | buildSettings = {
547 | ALWAYS_SEARCH_USER_PATHS = NO;
548 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
549 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
550 | CLANG_CXX_LIBRARY = "libc++";
551 | CLANG_ENABLE_MODULES = YES;
552 | CLANG_ENABLE_OBJC_ARC = YES;
553 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
554 | CLANG_WARN_BOOL_CONVERSION = YES;
555 | CLANG_WARN_COMMA = YES;
556 | CLANG_WARN_CONSTANT_CONVERSION = YES;
557 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
558 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
559 | CLANG_WARN_EMPTY_BODY = YES;
560 | CLANG_WARN_ENUM_CONVERSION = YES;
561 | CLANG_WARN_INFINITE_RECURSION = YES;
562 | CLANG_WARN_INT_CONVERSION = YES;
563 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
564 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
565 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
566 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
567 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
568 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
569 | CLANG_WARN_STRICT_PROTOTYPES = YES;
570 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
571 | CLANG_WARN_UNREACHABLE_CODE = YES;
572 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
573 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
574 | COPY_PHASE_STRIP = NO;
575 | ENABLE_STRICT_OBJC_MSGSEND = YES;
576 | ENABLE_TESTABILITY = YES;
577 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 ";
578 | GCC_C_LANGUAGE_STANDARD = gnu99;
579 | GCC_DYNAMIC_NO_PIC = NO;
580 | GCC_NO_COMMON_BLOCKS = YES;
581 | GCC_OPTIMIZATION_LEVEL = 0;
582 | GCC_PREPROCESSOR_DEFINITIONS = (
583 | "DEBUG=1",
584 | "$(inherited)",
585 | );
586 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
587 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
588 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
589 | GCC_WARN_UNDECLARED_SELECTOR = YES;
590 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
591 | GCC_WARN_UNUSED_FUNCTION = YES;
592 | GCC_WARN_UNUSED_VARIABLE = YES;
593 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
594 | LD_RUNPATH_SEARCH_PATHS = (
595 | /usr/lib/swift,
596 | "$(inherited)",
597 | );
598 | LIBRARY_SEARCH_PATHS = (
599 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
600 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
601 | "\"$(inherited)\"",
602 | );
603 | MTL_ENABLE_DEBUG_INFO = YES;
604 | ONLY_ACTIVE_ARCH = YES;
605 | SDKROOT = iphoneos;
606 | };
607 | name = Debug;
608 | };
609 | 83CBBA211A601CBA00E9B192 /* Release */ = {
610 | isa = XCBuildConfiguration;
611 | buildSettings = {
612 | ALWAYS_SEARCH_USER_PATHS = NO;
613 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
614 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
615 | CLANG_CXX_LIBRARY = "libc++";
616 | CLANG_ENABLE_MODULES = YES;
617 | CLANG_ENABLE_OBJC_ARC = YES;
618 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
619 | CLANG_WARN_BOOL_CONVERSION = YES;
620 | CLANG_WARN_COMMA = YES;
621 | CLANG_WARN_CONSTANT_CONVERSION = YES;
622 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
623 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
624 | CLANG_WARN_EMPTY_BODY = YES;
625 | CLANG_WARN_ENUM_CONVERSION = YES;
626 | CLANG_WARN_INFINITE_RECURSION = YES;
627 | CLANG_WARN_INT_CONVERSION = YES;
628 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
629 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
630 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
631 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
632 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
633 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
634 | CLANG_WARN_STRICT_PROTOTYPES = YES;
635 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
636 | CLANG_WARN_UNREACHABLE_CODE = YES;
637 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
638 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
639 | COPY_PHASE_STRIP = YES;
640 | ENABLE_NS_ASSERTIONS = NO;
641 | ENABLE_STRICT_OBJC_MSGSEND = YES;
642 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 ";
643 | GCC_C_LANGUAGE_STANDARD = gnu99;
644 | GCC_NO_COMMON_BLOCKS = YES;
645 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
646 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
647 | GCC_WARN_UNDECLARED_SELECTOR = YES;
648 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
649 | GCC_WARN_UNUSED_FUNCTION = YES;
650 | GCC_WARN_UNUSED_VARIABLE = YES;
651 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
652 | LD_RUNPATH_SEARCH_PATHS = (
653 | /usr/lib/swift,
654 | "$(inherited)",
655 | );
656 | LIBRARY_SEARCH_PATHS = (
657 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
658 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
659 | "\"$(inherited)\"",
660 | );
661 | MTL_ENABLE_DEBUG_INFO = NO;
662 | SDKROOT = iphoneos;
663 | VALIDATE_PRODUCT = YES;
664 | };
665 | name = Release;
666 | };
667 | /* End XCBuildConfiguration section */
668 |
669 | /* Begin XCConfigurationList section */
670 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "mlDemoTests" */ = {
671 | isa = XCConfigurationList;
672 | buildConfigurations = (
673 | 00E356F61AD99517003FC87E /* Debug */,
674 | 00E356F71AD99517003FC87E /* Release */,
675 | );
676 | defaultConfigurationIsVisible = 0;
677 | defaultConfigurationName = Release;
678 | };
679 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "mlDemo" */ = {
680 | isa = XCConfigurationList;
681 | buildConfigurations = (
682 | 13B07F941A680F5B00A75B9A /* Debug */,
683 | 13B07F951A680F5B00A75B9A /* Release */,
684 | );
685 | defaultConfigurationIsVisible = 0;
686 | defaultConfigurationName = Release;
687 | };
688 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "mlDemo" */ = {
689 | isa = XCConfigurationList;
690 | buildConfigurations = (
691 | 83CBBA201A601CBA00E9B192 /* Debug */,
692 | 83CBBA211A601CBA00E9B192 /* Release */,
693 | );
694 | defaultConfigurationIsVisible = 0;
695 | defaultConfigurationName = Release;
696 | };
697 | /* End XCConfigurationList section */
698 | };
699 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
700 | }
701 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo.xcodeproj/xcshareddata/xcschemes/mlDemo.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
53 |
55 |
61 |
62 |
63 |
64 |
70 |
72 |
78 |
79 |
80 |
81 |
83 |
84 |
87 |
88 |
89 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/AppDelegate.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface AppDelegate : UIResponder
5 |
6 | @property (nonatomic, strong) UIWindow *window;
7 |
8 | @end
9 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/AppDelegate.m:
--------------------------------------------------------------------------------
1 | #import "AppDelegate.h"
2 |
3 | #import
4 | #import
5 | #import
6 |
7 | #ifdef FB_SONARKIT_ENABLED
8 | #import
9 | #import
10 | #import
11 | #import
12 | #import
13 | #import
14 |
15 | static void InitializeFlipper(UIApplication *application) {
16 | FlipperClient *client = [FlipperClient sharedClient];
17 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
18 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
19 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
20 | [client addPlugin:[FlipperKitReactPlugin new]];
21 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
22 | [client start];
23 | }
24 | #endif
25 |
26 | @implementation AppDelegate
27 |
28 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
29 | {
30 | #ifdef FB_SONARKIT_ENABLED
31 | InitializeFlipper(application);
32 | #endif
33 |
34 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
35 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
36 | moduleName:@"mlDemo"
37 | initialProperties:nil];
38 |
39 | if (@available(iOS 13.0, *)) {
40 | rootView.backgroundColor = [UIColor systemBackgroundColor];
41 | } else {
42 | rootView.backgroundColor = [UIColor whiteColor];
43 | }
44 |
45 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
46 | UIViewController *rootViewController = [UIViewController new];
47 | rootViewController.view = rootView;
48 | self.window.rootViewController = rootViewController;
49 | [self.window makeKeyAndVisible];
50 | return YES;
51 | }
52 |
53 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
54 | {
55 | #if DEBUG
56 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
57 | #else
58 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
59 | #endif
60 | }
61 |
62 | @end
63 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "scale" : "2x",
6 | "size" : "20x20"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "scale" : "3x",
11 | "size" : "20x20"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "scale" : "2x",
16 | "size" : "29x29"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "scale" : "3x",
21 | "size" : "29x29"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "scale" : "2x",
26 | "size" : "40x40"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "scale" : "3x",
31 | "size" : "40x40"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "scale" : "2x",
36 | "size" : "60x60"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "scale" : "3x",
41 | "size" : "60x60"
42 | },
43 | {
44 | "idiom" : "ios-marketing",
45 | "scale" : "1x",
46 | "size" : "1024x1024"
47 | }
48 | ],
49 | "info" : {
50 | "author" : "xcode",
51 | "version" : 1
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/Images.xcassets/background.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "background.jpeg",
5 | "idiom" : "universal",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "author" : "xcode",
19 | "version" : 1
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/Images.xcassets/background.imageset/background.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/ios/mlDemo/Images.xcassets/background.imageset/background.jpeg
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/Images.xcassets/camera.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "camera.png",
5 | "idiom" : "universal",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "author" : "xcode",
19 | "version" : 1
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/Images.xcassets/camera.imageset/camera.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/ios/mlDemo/Images.xcassets/camera.imageset/camera.png
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/Images.xcassets/clean.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "clean.png",
5 | "idiom" : "universal",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "author" : "xcode",
19 | "version" : 1
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/Images.xcassets/clean.imageset/clean.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/ios/mlDemo/Images.xcassets/clean.imageset/clean.png
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/Images.xcassets/gallery.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "gallery.png",
5 | "idiom" : "universal",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "author" : "xcode",
19 | "version" : 1
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/Images.xcassets/gallery.imageset/gallery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/mobile-app/ios/mlDemo/Images.xcassets/gallery.imageset/gallery.png
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | LSApplicationCategoryType
6 |
7 | CFBundleDevelopmentRegion
8 | en
9 | CFBundleDisplayName
10 | mlDemo
11 | CFBundleExecutable
12 | $(EXECUTABLE_NAME)
13 | CFBundleIdentifier
14 | $(PRODUCT_BUNDLE_IDENTIFIER)
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | $(PRODUCT_NAME)
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 1.0
23 | CFBundleSignature
24 | ????
25 | CFBundleVersion
26 | 1
27 | LSRequiresIPhoneOS
28 |
29 | NSAppTransportSecurity
30 |
31 | NSExceptionDomains
32 |
33 | localhost
34 |
35 | NSExceptionAllowsInsecureHTTPLoads
36 |
37 |
38 |
39 |
40 | NSLocationWhenInUseUsageDescription
41 |
42 | NSCameraUsageDescription
43 | ${APP_NAME} Need camera access to take pictures for task attachments and comments.
44 | NSPhotoLibraryUsageDescription
45 | ${APP_NAME} Need photo library access to save captured pictures to library for attachment and comments.
46 | UIAppFonts
47 |
48 | Roboto-Bold.ttf
49 |
50 | UILaunchStoryboardName
51 | LaunchScreen
52 | UIRequiredDeviceCapabilities
53 |
54 | armv7
55 |
56 | UISupportedInterfaceOrientations
57 |
58 | UIInterfaceOrientationPortrait
59 | UIInterfaceOrientationLandscapeLeft
60 | UIInterfaceOrientationLandscapeRight
61 |
62 | UIViewControllerBasedStatusBarAppearance
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
24 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemo/main.m:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | #import "AppDelegate.h"
4 |
5 | int main(int argc, char * argv[]) {
6 | @autoreleasepool {
7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemoTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/mobile-app/ios/mlDemoTests/mlDemoTests.m:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | #import
5 | #import
6 |
7 | #define TIMEOUT_SECONDS 600
8 | #define TEXT_TO_LOOK_FOR @"Welcome to React"
9 |
10 | @interface mlDemoTests : XCTestCase
11 |
12 | @end
13 |
14 | @implementation mlDemoTests
15 |
16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
17 | {
18 | if (test(view)) {
19 | return YES;
20 | }
21 | for (UIView *subview in [view subviews]) {
22 | if ([self findSubviewInView:subview matching:test]) {
23 | return YES;
24 | }
25 | }
26 | return NO;
27 | }
28 |
29 | - (void)testRendersWelcomeScreen
30 | {
31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
33 | BOOL foundElement = NO;
34 |
35 | __block NSString *redboxError = nil;
36 | #ifdef DEBUG
37 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
38 | if (level >= RCTLogLevelError) {
39 | redboxError = message;
40 | }
41 | });
42 | #endif
43 |
44 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
45 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
46 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
47 |
48 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
49 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
50 | return YES;
51 | }
52 | return NO;
53 | }];
54 | }
55 |
56 | #ifdef DEBUG
57 | RCTSetLogFunction(RCTDefaultLogFunction);
58 | #endif
59 |
60 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
61 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
62 | }
63 |
64 |
65 | @end
66 |
--------------------------------------------------------------------------------
/mobile-app/metro.config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Metro configuration for React Native
3 | * https://github.com/facebook/react-native
4 | *
5 | * @format
6 | */
7 |
8 | module.exports = {
9 | transformer: {
10 | getTransformOptions: async () => ({
11 | transform: {
12 | experimentalImportSupport: false,
13 | inlineRequires: true,
14 | },
15 | }),
16 | },
17 | };
18 |
--------------------------------------------------------------------------------
/mobile-app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "mlDemo",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "android": "react-native run-android",
7 | "ios": "react-native run-ios",
8 | "start": "react-native start",
9 | "bundle-ios": "npx react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle",
10 | "test": "jest",
11 | "lint": "eslint ."
12 | },
13 | "dependencies": {
14 | "axios": "^0.21.1",
15 | "react": "17.0.1",
16 | "react-native": "0.64.2",
17 | "react-native-config": "^1.4.4",
18 | "react-native-image-picker": "^4.0.4",
19 | "react-native-permissions": "^3.0.5"
20 | },
21 | "devDependencies": {
22 | "@babel/core": "^7.14.6",
23 | "@babel/runtime": "^7.14.6",
24 | "@react-native-community/eslint-config": "^3.0.0",
25 | "babel-jest": "^27.0.6",
26 | "eslint": "^7.30.0",
27 | "jest": "^27.0.6",
28 | "metro": "^0.66.1",
29 | "metro-core": "^0.66.1",
30 | "metro-react-native-babel-preset": "^0.66.0",
31 | "react-test-renderer": "17.0.1"
32 | },
33 | "jest": {
34 | "preset": "react-native"
35 | }
36 | }
--------------------------------------------------------------------------------
/models.config.example:
--------------------------------------------------------------------------------
1 | model_config_list {
2 | config {
3 | name: 'potatoes_model'
4 | base_path: '/workspace/local-files/projects/codebasics/plants-detection/potatoes_model'
5 | model_platform: 'tensorflow'
6 | model_version_policy: {all: {}}
7 | }
8 | }
9 |
10 |
--------------------------------------------------------------------------------
/potatoes.h5:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/potatoes.h5
--------------------------------------------------------------------------------
/saved_models/1/keras_metadata.pb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/saved_models/1/keras_metadata.pb
--------------------------------------------------------------------------------
/saved_models/1/saved_model.pb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/saved_models/1/saved_model.pb
--------------------------------------------------------------------------------
/saved_models/1/variables/variables.data-00000-of-00001:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/saved_models/1/variables/variables.data-00000-of-00001
--------------------------------------------------------------------------------
/saved_models/1/variables/variables.index:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/saved_models/1/variables/variables.index
--------------------------------------------------------------------------------
/saved_models/2/keras_metadata.pb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/saved_models/2/keras_metadata.pb
--------------------------------------------------------------------------------
/saved_models/2/saved_model.pb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/saved_models/2/saved_model.pb
--------------------------------------------------------------------------------
/saved_models/2/variables/variables.data-00000-of-00001:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/saved_models/2/variables/variables.data-00000-of-00001
--------------------------------------------------------------------------------
/saved_models/2/variables/variables.index:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/saved_models/2/variables/variables.index
--------------------------------------------------------------------------------
/saved_models/3/keras_metadata.pb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/saved_models/3/keras_metadata.pb
--------------------------------------------------------------------------------
/saved_models/3/saved_model.pb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/saved_models/3/saved_model.pb
--------------------------------------------------------------------------------
/saved_models/3/variables/variables.data-00000-of-00001:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/saved_models/3/variables/variables.data-00000-of-00001
--------------------------------------------------------------------------------
/saved_models/3/variables/variables.index:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/saved_models/3/variables/variables.index
--------------------------------------------------------------------------------
/test_images_from_internet/early_blight_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/test_images_from_internet/early_blight_1.jpg
--------------------------------------------------------------------------------
/test_images_from_internet/late_blight_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/test_images_from_internet/late_blight_1.jpg
--------------------------------------------------------------------------------
/tf-lite-models/1.tflite:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/tf-lite-models/1.tflite
--------------------------------------------------------------------------------
/tf-lite-models/2.tflite:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codebasics/potato-disease-classification/c1960a19cb6973f3b0778ae484f2b099b5d89df6/tf-lite-models/2.tflite
--------------------------------------------------------------------------------
/training/requirements.txt:
--------------------------------------------------------------------------------
1 | matplotlib
2 | numpy
3 | notebook
4 | tensorflow-addons
5 | tensorflow-model-optimization
6 | tensorflow==2.5
7 |
--------------------------------------------------------------------------------