├── .watchmanconfig
├── .gitattributes
├── app.json
├── babel.config.js
├── ios
├── assets
│ ├── app.json
│ └── src
│ │ └── locales
│ │ ├── pt.json
│ │ └── en.json
├── BmiCalculatorRNew
│ ├── Images.xcassets
│ │ ├── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── Icon-83.5@2x.png
│ │ │ ├── Icon-40x40@2x.png
│ │ │ ├── Icon-60x60@2x.png
│ │ │ ├── Icon-60x60@3x.png
│ │ │ ├── Icon-83.5@2x-1.png
│ │ │ ├── Icon-83.5@2x-2.png
│ │ │ ├── Icon-83.5@2x-3.png
│ │ │ ├── Icon-83.5@2x-4.png
│ │ │ ├── Icon-marketing-1024x1024.png
│ │ │ └── Contents.json
│ ├── AppDelegate.h
│ ├── main.m
│ ├── AppDelegate.m
│ ├── Info.plist
│ └── Base.lproj
│ │ └── LaunchScreen.xib
├── BmiCalculatorRNew.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ ├── BmiCalculatorRNew.xcscheme
│ │ │ └── BmiCalculatorRNew-tvOS.xcscheme
│ └── project.pbxproj
├── BmiCalculatorRNew.xcworkspace
│ └── contents.xcworkspacedata
├── BmiCalculatorRNewTests
│ ├── Info.plist
│ └── BmiCalculatorRNewTests.m
├── BmiCalculatorRNew-tvOSTests
│ └── Info.plist
├── BmiCalculatorRNew-tvOS
│ └── Info.plist
├── Podfile
└── Podfile.lock
├── android
├── app
│ ├── debug.keystore
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── drawable
│ │ │ │ │ ├── icon.png
│ │ │ │ │ ├── screen.png
│ │ │ │ │ └── background_splash.xml
│ │ │ │ ├── drawable-hdpi
│ │ │ │ │ ├── icon.png
│ │ │ │ │ └── screen.png
│ │ │ │ ├── drawable-ldpi
│ │ │ │ │ ├── icon.png
│ │ │ │ │ └── screen.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ │ ├── icon.png
│ │ │ │ │ └── screen.png
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ │ ├── icon.png
│ │ │ │ │ └── screen.png
│ │ │ │ ├── drawable-land
│ │ │ │ │ └── screen.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ │ ├── icon.png
│ │ │ │ │ └── screen.png
│ │ │ │ ├── drawable-xxxhdpi
│ │ │ │ │ ├── icon.png
│ │ │ │ │ └── screen.png
│ │ │ │ ├── values
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── drawable-land-hdpi
│ │ │ │ │ └── screen.png
│ │ │ │ ├── drawable-land-ldpi
│ │ │ │ │ └── screen.png
│ │ │ │ ├── drawable-land-mdpi
│ │ │ │ │ └── screen.png
│ │ │ │ ├── drawable-land-xhdpi
│ │ │ │ │ └── screen.png
│ │ │ │ ├── drawable-land-xxhdpi
│ │ │ │ │ └── screen.png
│ │ │ │ └── drawable-land-xxxhdpi
│ │ │ │ │ └── screen.png
│ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── bmicalculatorrnew
│ │ │ │ │ ├── MainActivity.java
│ │ │ │ │ └── MainApplication.java
│ │ │ └── AndroidManifest.xml
│ │ └── debug
│ │ │ └── AndroidManifest.xml
│ ├── proguard-rules.pro
│ ├── build_defs.bzl
│ ├── _BUCK
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── settings.gradle
├── gradle.properties
├── build.gradle
├── gradlew.bat
└── gradlew
├── .prettierrc
├── .buckconfig
├── .editorconfig
├── index.js
├── react-native.config.js
├── src
├── config
│ └── ReactotronConfig.js
├── core
│ ├── operation.js
│ ├── EnumBMI.js
│ └── CalculeBMI.js
├── routes.js
├── components
│ └── styles.js
├── index.js
├── i18n.js
├── customHooks
│ └── useInterval.js
├── locales
│ ├── pt.json
│ └── en.json
└── pages
│ ├── Result
│ ├── index.js
│ └── styles.js
│ └── Main
│ ├── styles.js
│ └── index.js
├── __tests__
└── App-test.js
├── metro.config.js
├── .eslintrc.js
├── .gitignore
├── README.md
├── package.json
└── .flowconfig
/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "BmiCalculatorRNew",
3 | "displayName": "BmiCalculatorRNew"
4 | }
5 |
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ['module:metro-react-native-babel-preset'],
3 | };
4 |
--------------------------------------------------------------------------------
/ios/assets/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "BmiCalculatorRNew",
3 | "displayName": "BmiCalculatorRNew"
4 | }
5 |
--------------------------------------------------------------------------------
/android/app/debug.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/debug.keystore
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "bracketSpacing": false,
3 | "jsxBracketSameLine": true,
4 | "singleQuote": true,
5 | "trailingComma": "all"
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable/icon.png
--------------------------------------------------------------------------------
/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable/screen.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-hdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-hdpi/screen.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-land/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-land/screen.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-ldpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-ldpi/screen.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-mdpi/screen.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xhdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-xhdpi/screen.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxhdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-xxhdpi/screen.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxxhdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-xxxhdpi/screen.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | #0F142F
5 |
6 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 2
6 | charset = utf-8
7 | trim_trailing_whitespace = true
8 | insert_final_newline = true
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-land-hdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-land-hdpi/screen.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-land-ldpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-land-ldpi/screen.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-land-mdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-land-mdpi/screen.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-land-xhdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-land-xhdpi/screen.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-land-xxhdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-land-xxhdpi/screen.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-land-xxxhdpi/screen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/android/app/src/main/res/drawable-land-xxxhdpi/screen.png
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | import {AppRegistry} from 'react-native';
2 | import App from './src';
3 | import {name as appName} from './app.json';
4 |
5 | AppRegistry.registerComponent(appName, () => App);
6 |
--------------------------------------------------------------------------------
/react-native.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | dependencies: {
3 | 'react-native-code-push': {
4 | platforms: {
5 | android: null,
6 | },
7 | },
8 | },
9 | };
10 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x.png
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-40x40@2x.png
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-60x60@2x.png
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-60x60@3x.png
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x-1.png
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x-2.png
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x-3.png
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x-4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-83.5@2x-4.png
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-marketing-1024x1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tgmarinho/BmiCalculatorRN/HEAD/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Icon-marketing-1024x1024.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | deployment-key-here
3 | Calc IMC
4 |
5 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/src/config/ReactotronConfig.js:
--------------------------------------------------------------------------------
1 | import Reactotron from 'reactotron-react-native';
2 |
3 | if (__DEV__) {
4 | const tron = Reactotron.configure()
5 | .useReactNative()
6 | .connect();
7 |
8 | console.tron = tron;
9 |
10 | tron.clear();
11 | }
12 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/core/operation.js:
--------------------------------------------------------------------------------
1 | function op(operation, attrState, attrFunc, execute = 'calc') {
2 | if (execute === 'set') {
3 | attrFunc(operation);
4 | } else if (operation === 'minus') {
5 | attrFunc(attrState - 1);
6 | } else if (operation === 'plus') {
7 | attrFunc(attrState + 1);
8 | }
9 | }
10 |
11 | export default op;
12 |
--------------------------------------------------------------------------------
/__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 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/background_splash.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/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: false,
14 | },
15 | }),
16 | },
17 | };
18 |
--------------------------------------------------------------------------------
/src/routes.js:
--------------------------------------------------------------------------------
1 | import { createAppContainer, createSwitchNavigator } from 'react-navigation';
2 |
3 | import Main from './pages/Main';
4 | import Result from './pages/Result';
5 |
6 | const Routes = createAppContainer(
7 | createSwitchNavigator(
8 | {
9 | Main,
10 | Result,
11 | },
12 | {
13 | initialRouteName: 'Main',
14 | }
15 | )
16 | );
17 |
18 | export default Routes;
19 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/src/components/styles.js:
--------------------------------------------------------------------------------
1 | import styled from 'styled-components/native';
2 |
3 | export const Button = styled.TouchableOpacity.attrs({
4 | activeOpacity: 0.9,
5 | })`
6 | background: #ea1555;
7 | width: 100%;
8 | height: 80px;
9 | justify-content: center;
10 | align-items: center;
11 | `;
12 |
13 | export const ButtonLabel = styled.Text`
14 | color: #fff;
15 | font-size: 18px;
16 | font-weight: bold;
17 | `;
18 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (nonatomic, strong) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 |
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import './config/ReactotronConfig';
2 | import React from 'react';
3 | import {StatusBar} from 'react-native';
4 | import CodePush from 'react-native-code-push';
5 | import Routes from './routes';
6 |
7 | const App = () => {
8 | return (
9 | <>
10 |
11 |
12 | >
13 | );
14 | };
15 |
16 | export default CodePush({
17 | checkFrequency: CodePush.CheckFrequency.ON_APP_RESUME,
18 | })(App);
19 |
--------------------------------------------------------------------------------
/src/i18n.js:
--------------------------------------------------------------------------------
1 | import i18n from 'i18n-js';
2 |
3 | import * as RNLocalize from 'react-native-localize';
4 |
5 | import en from './locales/en.json';
6 | import pt from './locales/pt.json';
7 |
8 | try {
9 | const language = RNLocalize.getLocales()[0].languageCode;
10 | i18n.locale = language || 'en';
11 | } catch (error) {
12 | console.log('ops! An error happening!');
13 | i18n.locale = 'en';
14 | } finally {
15 | i18n.defaultLocale = 'en';
16 | i18n.fallbacks = true;
17 | i18n.translations = {en, pt};
18 | }
19 |
20 | export default i18n;
21 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'BmiCalculatorRNew'
2 | include ':react-native-localize'
3 | project(':react-native-localize').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-localize/android')
4 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
5 |
6 | include ':react-native-code-push'
7 | project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')
8 |
9 | include ':app'
10 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | es6: true,
4 | },
5 | extends: ['airbnb', 'prettier', 'prettier/react'],
6 | globals: {
7 | Atomics: 'readonly',
8 | SharedArrayBuffer: 'readonly',
9 | __DEV__: 'readonly',
10 | },
11 | parser: 'babel-eslint',
12 | parserOptions: {
13 | ecmaFeatures: {
14 | jsx: true,
15 | },
16 | ecmaVersion: 2018,
17 | sourceType: 'module',
18 | },
19 | plugins: ['react', 'prettier'],
20 | rules: {
21 | 'prettier/prettier': 'error',
22 | 'react/jsx-filename-extension': [
23 | 'warn',
24 | {
25 | extensions: ['.jsx', '.js'],
26 | },
27 | ],
28 | 'import/prefer-default-export:': 'off',
29 | },
30 | };
31 |
--------------------------------------------------------------------------------
/src/customHooks/useInterval.js:
--------------------------------------------------------------------------------
1 | // Thanks for Share Dan: https://overreacted.io/making-setinterval-declarative-with-react-hooks/
2 |
3 | import { useRef, useEffect } from 'react';
4 |
5 | function useInterval(callback, delay) {
6 | const savedCallback = useRef();
7 |
8 | // Remember the latest function.
9 | useEffect(() => {
10 | savedCallback.current = callback;
11 | }, [callback]);
12 |
13 | // Set up the interval.
14 | // eslint-disable-next-line consistent-return
15 | useEffect(() => {
16 | function tick() {
17 | savedCallback.current();
18 | }
19 | if (delay !== null) {
20 | const id = setInterval(tick, delay);
21 | return () => clearInterval(id);
22 | }
23 | }, [delay]);
24 | }
25 |
26 | export default useInterval;
27 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNewTests/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 |
--------------------------------------------------------------------------------
/src/core/EnumBMI.js:
--------------------------------------------------------------------------------
1 | import {Enum} from 'enumify';
2 |
3 | import i18n from '../i18n';
4 |
5 | class Interpretation extends Enum {}
6 |
7 | Interpretation.initEnum({
8 | OVERWEIGHT: {
9 | getDiagnostic() {
10 | return i18n.t('enumbmi.overweight.diagnostic');
11 | },
12 | getDescription() {
13 | return i18n.t('enumbmi.overweight.description');
14 | },
15 | },
16 | NORMAL: {
17 | getDiagnostic() {
18 | return i18n.t('enumbmi.normal.diagnostic');
19 | },
20 | getDescription() {
21 | return i18n.t('enumbmi.normal.description');
22 | },
23 | },
24 | UNDERWEIGHT: {
25 | getDiagnostic() {
26 | return i18n.t('enumbmi.underweight.diagnostic');
27 | },
28 | getDescription() {
29 | return i18n.t('enumbmi.underweight.description');
30 | },
31 | },
32 | });
33 |
34 | export default Interpretation;
35 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew-tvOSTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
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 |
--------------------------------------------------------------------------------
/src/locales/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "main": {
3 | "title": "CALCULADORA DE IMC :)",
4 | "male": "MASCULINO",
5 | "female": "FEMININO",
6 | "height": "ALTURA",
7 | "weight": "PESO",
8 | "age": "IDADE",
9 | "calculate": "CALCULAR"
10 | },
11 |
12 | "result": {
13 | "title": "Seu resultado",
14 | "bmi": "IMC Normal",
15 | "diagnostic": "ops",
16 | "description": "ops",
17 | "button": "RECALCULAR"
18 | },
19 |
20 | "enumbmi": {
21 | "overweight": {
22 | "diagnostic": "OBESIDADE!",
23 | "description": " Você está acima do seu peso normal. Exercite-se mais."
24 | },
25 | "normal": {
26 | "diagnostic": "NORMAL!",
27 | "description": "Você está no seu peso normal. Bom trabalho!"
28 | },
29 | "underweight": {
30 | "diagnostic": "ABAIXO DO PESO!",
31 | "description": "Você está abaixo do seu peso normal. Você deve comer mais."
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/ios/assets/src/locales/pt.json:
--------------------------------------------------------------------------------
1 | {
2 | "main": {
3 | "title": "CALCULADORA IMC",
4 | "male": "MASCULINO",
5 | "female": "FEMININO",
6 | "height": "ALTURA",
7 | "weight": "PESO",
8 | "age": "IDADE",
9 | "calculate": "CALCULAR"
10 | },
11 |
12 | "result": {
13 | "title": "Seu resultado",
14 | "bmi": "IMC Normal",
15 | "diagnostic": "ops",
16 | "description": "ops",
17 | "button": "RECALCULAR"
18 | },
19 |
20 | "enumbmi": {
21 | "overweight": {
22 | "diagnostic": "OBESIDADE!",
23 | "description": " Você está acima do seu peso normal. Exercite-se mais."
24 | },
25 | "normal": {
26 | "diagnostic": "NORMAL!",
27 | "description": "Você está no seu peso normal. Bom trabalho!"
28 | },
29 | "underweight": {
30 | "diagnostic": "ABAIXO DO PESO!",
31 | "description": "Você está abaixo do seu peso normal. Você deve comer mais."
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/core/CalculeBMI.js:
--------------------------------------------------------------------------------
1 | import Interpretation from './EnumBMI';
2 |
3 | class CalculeBMI {
4 | constructor(height, weight) {
5 | this.height = height;
6 | this.weight = weight;
7 | this.calc = 0;
8 | }
9 |
10 | calcule() {
11 | this.calc = (this.weight / (this.height / 100) ** 2).toFixed(2);
12 | return { calc: this.calc };
13 | }
14 |
15 | analyze() {
16 | let interpretion = null;
17 | if (this.calc >= 25) {
18 | interpretion = Interpretation.OVERWEIGHT;
19 | } else if (this.calc >= 18) {
20 | interpretion = Interpretation.NORMAL;
21 | } else {
22 | interpretion = Interpretation.UNDERWEIGHT;
23 | }
24 |
25 | return {
26 | description: interpretion.getDescription(),
27 | diagnostic: interpretion.getDiagnostic(),
28 | };
29 | }
30 |
31 | showResult() {
32 | return { ...this.calcule(), ...this.analyze() };
33 | }
34 | }
35 |
36 | export default CalculeBMI;
37 |
--------------------------------------------------------------------------------
/src/locales/en.json:
--------------------------------------------------------------------------------
1 | {
2 | "main": {
3 | "title": "BMI CALCULATOR :)",
4 | "male": "MALE",
5 | "female": "FEMALE",
6 | "height": "HEIGHT",
7 | "weight": "WEIGHT",
8 | "age": "AGE",
9 | "calculate": "CALCULATE"
10 | },
11 |
12 | "result": {
13 | "title": "Your Result",
14 | "bmi": "Normal BMI range",
15 | "diagnostic": "ops",
16 | "description": "ops",
17 | "button": "RE-CALCULATE"
18 | },
19 |
20 | "enumbmi": {
21 | "overweight": {
22 | "diagnostic": "OVERWEIGHT!",
23 | "description": "You have a higher than normal body weight. Try to exercise more."
24 | },
25 | "normal": {
26 | "diagnostic": "NORMAL!",
27 | "description": "You have a normal body weight. Good job!"
28 | },
29 | "underweight": {
30 | "diagnostic": "UNDERWEIGHT!",
31 | "description": "You have a lower than normal body weight. You can eat a bit more!"
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/ios/assets/src/locales/en.json:
--------------------------------------------------------------------------------
1 | {
2 | "main": {
3 | "title": "BMI CALCULATOR",
4 | "male": "MALE",
5 | "female": "FEMALE",
6 | "height": "HEIGHT",
7 | "weight": "WEIGHT",
8 | "age": "AGE",
9 | "calculate": "CALCULATE"
10 | },
11 |
12 | "result": {
13 | "title": "Your Result",
14 | "bmi": "Normal BMI range",
15 | "diagnostic": "ops",
16 | "description": "ops",
17 | "button": "RE-CALCULATE"
18 | },
19 |
20 | "enumbmi": {
21 | "overweight": {
22 | "diagnostic": "OVERWEIGHT!",
23 | "description": "You have a higher than normal body weight. Try to exercise more."
24 | },
25 | "normal": {
26 | "diagnostic": "NORMAL!",
27 | "description": "You have a normal body weight. Good job!"
28 | },
29 | "underweight": {
30 | "diagnostic": "UNDERWEIGHT!",
31 | "description": "You have a lower than normal body weight. You can eat a bit more!"
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/bmicalculatorrnew/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.bmicalculatorrnew;
2 |
3 | import com.facebook.react.ReactActivity;
4 | import com.facebook.react.ReactActivityDelegate;
5 | import com.facebook.react.ReactRootView;
6 | import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
7 |
8 | public class MainActivity extends ReactActivity {
9 |
10 | /**
11 | * Returns the name of the main component registered from JavaScript. This is used to schedule
12 | * rendering of the component.
13 | */
14 | @Override
15 | protected String getMainComponentName() {
16 | return "BmiCalculatorRNew";
17 | }
18 |
19 | @Override
20 | protected ReactActivityDelegate createReactActivityDelegate() {
21 | return new ReactActivityDelegate(this, getMainComponentName()) {
22 | @Override
23 | protected ReactRootView createRootView() {
24 | return new RNGestureHandlerEnabledRootView(MainActivity.this);
25 | }
26 | };
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/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 | android.useAndroidX=true
21 | android.enableJetifier=true
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
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 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
13 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/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 = "28.0.3"
6 | minSdkVersion = 16
7 | compileSdkVersion = 28
8 | targetSdkVersion = 28
9 | }
10 | repositories {
11 | google()
12 | jcenter()
13 | }
14 | dependencies {
15 | classpath("com.android.tools.build:gradle:3.4.2")
16 |
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://jitpack.io' }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/pages/Result/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import PropTypes from 'prop-types';
3 | import {
4 | Container,
5 | LabelResult,
6 | CardResult,
7 | TextNomal,
8 | TextNumber,
9 | TextBMI,
10 | DescriptionResult,
11 | } from './styles';
12 | import i18n from '../../i18n';
13 |
14 | import {Button, ButtonLabel} from '../../components/styles';
15 |
16 | export default function Result({navigation}) {
17 | const result = navigation.getParam('result');
18 | const data = navigation.getParam('data');
19 | return (
20 | <>
21 |
22 | {i18n.t('result.title')}
23 |
24 |
25 | {result.diagnostic}
26 | {result.calc}
27 | {/* {i18n.t('result.bmi')} */}
28 | {result.description}
29 |
30 |
31 |
34 | >
35 | );
36 | }
37 |
38 | Result.propTypes = {
39 | navigation: PropTypes.shape({
40 | getParam: PropTypes.func,
41 | navigate: PropTypes.func,
42 | }).isRequired,
43 | };
44 |
--------------------------------------------------------------------------------
/src/pages/Result/styles.js:
--------------------------------------------------------------------------------
1 | import styled from 'styled-components/native';
2 | import { getBottomSpace } from 'react-native-iphone-x-helper';
3 |
4 | export const Container = styled.View`
5 | flex: 1;
6 | background: #090b22;
7 | height: ${74 + getBottomSpace()}px;
8 | padding: 20px;
9 | align-items: center;
10 | justify-content: space-around;
11 | `;
12 |
13 | export const LabelResult = styled.Text`
14 | font-weight: bold;
15 | color: #fff;
16 | font-size: 42px;
17 | align-self: flex-start;
18 | `;
19 |
20 | export const CardResult = styled.View`
21 | background: #101427;
22 | border-radius: 10px;
23 | width: 100%;
24 | height: 75%;
25 | padding: 20px;
26 | justify-content: space-evenly;
27 | align-items: center;
28 | align-content: space-between;
29 | `;
30 |
31 | export const TextNomal = styled.Text`
32 | font-size: 20px;
33 | color: #3bc683;
34 | font-weight: bold;
35 | `;
36 | export const TextNumber = styled.Text`
37 | font-size: 102px;
38 | color: #fff;
39 | font-weight: bold;
40 | `;
41 | export const TextBMI = styled.Text`
42 | font-size: 22px;
43 | color: #807f8f;
44 | font-weight: bold;
45 | `;
46 | export const DescriptionResult = styled.Text`
47 | font-size: 20px;
48 | color: #fff;
49 | font-weight: bold;
50 | text-align: center;
51 | `;
52 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-40x40@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-60x60@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-60x60@2x.png",
19 | "scale" : "2x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-83.5@2x.png",
25 | "scale" : "3x"
26 | },
27 | {
28 | "size" : "40x40",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-83.5@2x-1.png",
31 | "scale" : "2x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-83.5@2x-2.png",
37 | "scale" : "3x"
38 | },
39 | {
40 | "size" : "60x60",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-83.5@2x-3.png",
43 | "scale" : "2x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-83.5@2x-4.png",
49 | "scale" : "3x"
50 | },
51 | {
52 | "size" : "1024x1024",
53 | "idiom" : "ios-marketing",
54 | "filename" : "Icon-marketing-1024x1024.png",
55 | "scale" : "1x"
56 | }
57 | ],
58 | "info" : {
59 | "version" : 1,
60 | "author" : "xcode"
61 | }
62 | }
--------------------------------------------------------------------------------
/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.bmicalculatorrnew",
39 | )
40 |
41 | android_resource(
42 | name = "res",
43 | package = "com.bmicalculatorrnew",
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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 |
4 | # BMI Calculator 💪
5 |
6 | ## Our Goal
7 |
8 | The objective is create the same app that [Angela Bauer](https://github.com/angelabauer) did with [App BMI Calc with Flutter](https://github.com/delacyr/bmi-calculator-flutter), but instead of using Flutter I am using React Native.
9 |
10 | Ps: This [repository](https://github.com/delacyr/bmi-calculator-flutter) is from my friend, he is taking Angela's course.
11 |
12 | ## Check it out
13 |
14 | We’re going to make a Body Mass Index Calculator inspired by the beautiful designs made by [Ruben Vaalt](https://dribbble.com/shots/4585382-Simple-BMI-Calculator). It will be a multi screen app with simple functionality but full-on custom styling.
15 |
16 | 
17 |
18 | ### Images
19 |
20 | 
21 |
22 | 
23 |
24 |
25 | ## What I am using
26 |
27 | - React Native 0.60.5
28 | - Styled Components
29 | - React Navigation
30 | - ESlint + Prettier
31 | - Vector Icons
32 | - React Hooks
33 | - Enum
34 | - Internacionalization with: i18n-js and react-native-localize (pt-br / en)
35 |
36 |
37 | ## Authors
38 |
39 | | |
40 | |:---------------------:|
41 | | [Thiago Marinho](https://github.com/tgmarinho/) |
42 |
43 |
44 | Thanks!
45 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import "AppDelegate.h"
9 | #import
10 |
11 | #import
12 | #import
13 | #import
14 |
15 | @implementation AppDelegate
16 |
17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
18 | {
19 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
20 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
21 | moduleName:@"BmiCalculatorRNew"
22 | initialProperties:nil];
23 |
24 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
25 |
26 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
27 | UIViewController *rootViewController = [UIViewController new];
28 | rootViewController.view = rootView;
29 | self.window.rootViewController = rootViewController;
30 | [self.window makeKeyAndVisible];
31 | return YES;
32 | }
33 |
34 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
35 | {
36 | #if DEBUG
37 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
38 | #else
39 | return [CodePush bundleURL];
40 | #endif
41 | }
42 |
43 | @end
44 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "BmiCalculatorRNew",
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 | "test": "jest",
10 | "lint": "eslint ."
11 | },
12 | "dependencies": {
13 | "@react-native-community/slider": "^2.0.7",
14 | "enumify": "^1.0.4",
15 | "i18n-js": "^3.5.0",
16 | "prop-types": "^15.7.2",
17 | "react": "16.9.0",
18 | "react-native": "0.61.5",
19 | "react-native-code-push": "^5.7.0",
20 | "react-native-gesture-handler": "^1.5.2",
21 | "react-native-iphone-x-helper": "^1.2.1",
22 | "react-native-localize": "^1.3.1",
23 | "react-native-reanimated": "^1.4.0",
24 | "react-native-vector-icons": "^6.6.0",
25 | "react-navigation": "^4.0.10",
26 | "reactotron-react-native": "^4.0.2",
27 | "styled-components": "^4.4.1"
28 | },
29 | "devDependencies": {
30 | "@babel/core": "^7.6.2",
31 | "@babel/runtime": "^7.6.2",
32 | "@react-native-community/eslint-config": "^0.0.5",
33 | "babel-jest": "^24.9.0",
34 | "eslint": "^6.5.1",
35 | "eslint-config-airbnb": "^18.0.1",
36 | "eslint-config-prettier": "^6.2.0",
37 | "eslint-plugin-import": "^2.18.2",
38 | "eslint-plugin-jsx-a11y": "^6.2.3",
39 | "eslint-plugin-prettier": "^3.1.0",
40 | "eslint-plugin-react": "^7.14.3",
41 | "eslint-plugin-react-hooks": "^1.7.0",
42 | "jest": "^24.9.0",
43 | "metro-react-native-babel-preset": "^0.56.0",
44 | "prettier": "^1.18.2",
45 | "react-test-renderer": "16.9.0"
46 | },
47 | "jest": {
48 | "preset": "react-native"
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew-tvOS/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 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | NSAppTransportSecurity
26 |
27 | NSExceptionDomains
28 |
29 | localhost
30 |
31 | NSExceptionAllowsInsecureHTTPLoads
32 |
33 |
34 |
35 |
36 | NSLocationWhenInUseUsageDescription
37 |
38 | UILaunchStoryboardName
39 | LaunchScreen
40 | UIRequiredDeviceCapabilities
41 |
42 | armv7
43 |
44 | UISupportedInterfaceOrientations
45 |
46 | UIInterfaceOrientationPortrait
47 | UIInterfaceOrientationLandscapeLeft
48 | UIInterfaceOrientationLandscapeRight
49 |
50 | UIViewControllerBasedStatusBarAppearance
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | $(PRODUCT_NAME)
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | NSAppTransportSecurity
28 |
29 | NSAllowsArbitraryLoads
30 |
31 | NSExceptionDomains
32 |
33 | localhost
34 |
35 | NSExceptionAllowsInsecureHTTPLoads
36 |
37 |
38 |
39 |
40 | NSLocationWhenInUseUsageDescription
41 |
42 | UILaunchStoryboardName
43 | LaunchScreen
44 | UIRequiredDeviceCapabilities
45 |
46 | armv7
47 |
48 | UISupportedInterfaceOrientations
49 |
50 | UIInterfaceOrientationPortrait
51 |
52 | UIViewControllerBasedStatusBarAppearance
53 |
54 | CodePushDeploymentKey
55 | deployment-key-here
56 |
57 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNewTests/BmiCalculatorRNewTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | #import
9 | #import
10 |
11 | #import
12 | #import
13 |
14 | #define TIMEOUT_SECONDS 600
15 | #define TEXT_TO_LOOK_FOR @"Welcome to React"
16 |
17 | @interface BmiCalculatorRNewTests : XCTestCase
18 |
19 | @end
20 |
21 | @implementation BmiCalculatorRNewTests
22 |
23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
24 | {
25 | if (test(view)) {
26 | return YES;
27 | }
28 | for (UIView *subview in [view subviews]) {
29 | if ([self findSubviewInView:subview matching:test]) {
30 | return YES;
31 | }
32 | }
33 | return NO;
34 | }
35 |
36 | - (void)testRendersWelcomeScreen
37 | {
38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
40 | BOOL foundElement = NO;
41 |
42 | __block NSString *redboxError = nil;
43 | #ifdef DEBUG
44 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
45 | if (level >= RCTLogLevelError) {
46 | redboxError = message;
47 | }
48 | });
49 | #endif
50 |
51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
54 |
55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
57 | return YES;
58 | }
59 | return NO;
60 | }];
61 | }
62 |
63 | #ifdef DEBUG
64 | RCTSetLogFunction(RCTDefaultLogFunction);
65 | #endif
66 |
67 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
68 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
69 | }
70 |
71 |
72 | @end
73 |
--------------------------------------------------------------------------------
/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore polyfills
9 | node_modules/react-native/Libraries/polyfills/.*
10 |
11 | ; These should not be required directly
12 | ; require from fbjs/lib instead: require('fbjs/lib/warning')
13 | node_modules/warning/.*
14 |
15 | ; Flow doesn't support platforms
16 | .*/Libraries/Utilities/LoadingView.js
17 |
18 | [untyped]
19 | .*/node_modules/@react-native-community/cli/.*/.*
20 |
21 | [include]
22 |
23 | [libs]
24 | node_modules/react-native/Libraries/react-native/react-native-interface.js
25 | node_modules/react-native/flow/
26 |
27 | [options]
28 | emoji=true
29 |
30 | esproposal.optional_chaining=enable
31 | esproposal.nullish_coalescing=enable
32 |
33 | module.file_ext=.js
34 | module.file_ext=.json
35 | module.file_ext=.ios.js
36 |
37 | munge_underscores=true
38 |
39 | module.name_mapper='^react-native$' -> '/node_modules/react-native/Libraries/react-native/react-native-implementation'
40 | module.name_mapper='^react-native/\(.*\)$' -> '/node_modules/react-native/\1'
41 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '/node_modules/react-native/Libraries/Image/RelativeImageStub'
42 |
43 | suppress_type=$FlowIssue
44 | suppress_type=$FlowFixMe
45 | suppress_type=$FlowFixMeProps
46 | suppress_type=$FlowFixMeState
47 |
48 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
49 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
50 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
51 |
52 | [lints]
53 | sketchy-null-number=warn
54 | sketchy-null-mixed=warn
55 | sketchy-number=warn
56 | untyped-type-import=warn
57 | nonstrict-import=warn
58 | deprecated-type=warn
59 | unsafe-getters-setters=warn
60 | inexact-spread=warn
61 | unnecessary-invariant=warn
62 | signature-verification-failure=warn
63 | deprecated-utility=error
64 |
65 | [strict]
66 | deprecated-type
67 | nonstrict-import
68 | sketchy-null
69 | unclear-type
70 | unsafe-getters-setters
71 | untyped-import
72 | untyped-type-import
73 |
74 | [version]
75 | ^0.105.0
76 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/bmicalculatorrnew/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.bmicalculatorrnew;
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.ReactNativeHost;
8 | import com.facebook.react.ReactPackage;
9 | import com.facebook.soloader.SoLoader;
10 | import java.lang.reflect.InvocationTargetException;
11 | import java.util.List;
12 | import com.microsoft.codepush.react.CodePush;
13 | import java.util.Arrays;
14 | import com.facebook.react.shell.MainReactPackage;
15 |
16 |
17 |
18 | public class MainApplication extends Application implements ReactApplication {
19 |
20 | private final ReactNativeHost mReactNativeHost =
21 | new ReactNativeHost(this) {
22 | @Override
23 | protected String getJSBundleFile(){
24 | return CodePush.getJSBundleFile();
25 | }
26 |
27 | @Override
28 | public boolean getUseDeveloperSupport() {
29 | return BuildConfig.DEBUG;
30 | }
31 |
32 |
33 | @Override
34 | protected List getPackages() {
35 |
36 | @SuppressWarnings("UnnecessaryLocalVariable")
37 | List packages = new PackageList(this).getPackages();
38 |
39 | packages.add(new CodePush(BuildConfig.CODEPUSH_KEY, MainApplication.this, BuildConfig.DEBUG));
40 |
41 | return packages;
42 | }
43 |
44 |
45 |
46 | @Override
47 | protected String getJSMainModuleName() {
48 | return "index";
49 | }
50 | };
51 |
52 | @Override
53 | public ReactNativeHost getReactNativeHost() {
54 | return mReactNativeHost;
55 | }
56 |
57 | @Override
58 | public void onCreate() {
59 | super.onCreate();
60 | SoLoader.init(this, /* native exopackage */ false);
61 | initializeFlipper(this); // Remove this line if you don't want Flipper enabled
62 | }
63 |
64 | /**
65 | * Loads Flipper in React Native templates.
66 | *
67 | * @param context
68 | */
69 | private static void initializeFlipper(Context context) {
70 | if (BuildConfig.DEBUG) {
71 | try {
72 | /*
73 | We use reflection here to pick up the class that initializes Flipper,
74 | since Flipper library is not available in release mode
75 | */
76 | Class> aClass = Class.forName("com.facebook.flipper.ReactNativeFlipper");
77 | aClass.getMethod("initializeFlipper", Context.class).invoke(null, context);
78 | } catch (ClassNotFoundException e) {
79 | e.printStackTrace();
80 | } catch (NoSuchMethodException e) {
81 | e.printStackTrace();
82 | } catch (IllegalAccessException e) {
83 | e.printStackTrace();
84 | } catch (InvocationTargetException e) {
85 | e.printStackTrace();
86 | }
87 | }
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | platform :ios, '9.0'
2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3 |
4 | target 'BmiCalculatorRNew' do
5 | # Pods for BmiCalculatorRNew
6 | pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
7 | pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
8 | pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
9 | pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
10 | pod 'React', :path => '../node_modules/react-native/'
11 | pod 'React-Core', :path => '../node_modules/react-native/'
12 | pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
13 | pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
14 | pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
15 | pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
16 | pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
17 | pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
18 | pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
19 | pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
20 | pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
21 | pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
22 | pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
23 | pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
24 |
25 | pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
26 | pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
27 | pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
28 | pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
29 | pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
30 | pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
31 | pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
32 |
33 | pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
34 | pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
35 | pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
36 |
37 |
38 | pod 'CodePush', :path => '../node_modules/react-native-code-push'
39 |
40 | pod 'RNLocalize', :path => '../node_modules/react-native-localize'
41 |
42 | target 'BmiCalculatorRNewTests' do
43 | inherit! :search_paths
44 | # Pods for testing
45 | end
46 |
47 | use_native_modules!
48 | end
49 |
50 | target 'BmiCalculatorRNew-tvOS' do
51 | # Pods for BmiCalculatorRNew-tvOS
52 |
53 | target 'BmiCalculatorRNew-tvOSTests' do
54 | inherit! :search_paths
55 | # Pods for testing
56 | end
57 |
58 | end
59 |
--------------------------------------------------------------------------------
/src/pages/Main/styles.js:
--------------------------------------------------------------------------------
1 | import styled from 'styled-components/native';
2 | import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
3 | import IconEntypo from 'react-native-vector-icons/Entypo';
4 | import {getBottomSpace} from 'react-native-iphone-x-helper';
5 |
6 | Icon.loadFont();
7 | IconEntypo.loadFont();
8 |
9 | export const Container = styled.View`
10 | flex: 1;
11 | background: #090b22;
12 | height: ${74 + getBottomSpace()}px;
13 | padding: 20px;
14 | align-items: center;
15 | justify-content: space-between;
16 | `;
17 |
18 | export const TitleApp = styled.Text`
19 | margin-top: 50px;
20 | font-weight: bold;
21 | color: #fff;
22 | font-size: 18px;
23 | `;
24 |
25 | export const Row = styled.View`
26 | flex-direction: row;
27 | justify-content: space-between;
28 | margin: 10px;
29 | width: 100%;
30 | `;
31 |
32 | export const WrapperButton = styled.TouchableOpacity.attrs({
33 | activeOpacity: 0.6,
34 | hitSlop: {
35 | top: 5,
36 | left: 5,
37 | right: 5,
38 | bottom: 5,
39 | },
40 | })`
41 | background: ${({active}) => (active ? '#101430' : '#101427')};
42 | /* background: #101427; */
43 | border-radius: 10px;
44 | width: 48%;
45 | height: 150px;
46 | justify-content: center;
47 | align-items: center;
48 | `;
49 |
50 | export const GenderIcon = styled(Icon).attrs({
51 | color: '#FFF',
52 | size: 68,
53 | })``;
54 |
55 | export const GenderTitle = styled.Text`
56 | margin-top: 10px;
57 | color: #fff;
58 | font-size: 18px;
59 | font-weight: bold;
60 | `;
61 |
62 | export const ContainerHeight = styled.View`
63 | background: #101427;
64 | border-radius: 10px;
65 | width: 100%;
66 | height: 30%;
67 | justify-content: center;
68 | align-items: center;
69 | align-content: space-between;
70 | `;
71 |
72 | export const HeightContainer = styled.View`
73 | flex-direction: row;
74 | align-items: baseline;
75 | `;
76 |
77 | export const HeightSize = styled.Text`
78 | color: #fff;
79 | font-size: 16px;
80 | `;
81 |
82 | export const ContainerWightAge = styled.View`
83 | flex-direction: row;
84 | justify-content: space-between;
85 | margin: 10px;
86 | width: 100%;
87 | `;
88 |
89 | export const Label = styled.Text`
90 | color: #999;
91 | font-size: 16px;
92 | font-weight: bold;
93 | `;
94 |
95 | export const Number = styled.Text`
96 | color: #fff;
97 | font-size: 38px;
98 | font-weight: bold;
99 | `;
100 |
101 | export const CircleButton = styled.TouchableOpacity.attrs({
102 | activeOpacity: 0.4,
103 | })`
104 | background: #1c2033;
105 | border-radius: 25px;
106 | width: 50px;
107 | height: 50px;
108 | justify-content: center;
109 | align-items: center;
110 | margin: 8px;
111 | `;
112 |
113 | export const RowIcons = styled.View`
114 | flex-direction: row;
115 | align-content: space-around;
116 | justify-content: center;
117 | width: 100%;
118 | `;
119 |
120 | export const CircleIcon = styled(IconEntypo).attrs({
121 | color: '#FFF',
122 | size: 24,
123 | })``;
124 |
125 | export const WrapperCard = styled.View`
126 | background: #101427;
127 | border-radius: 10px;
128 | width: 48%;
129 | height: 170px;
130 | justify-content: center;
131 | align-items: center;
132 | `;
133 |
--------------------------------------------------------------------------------
/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 http://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 Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
33 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
34 |
35 | @rem Find java.exe
36 | if defined JAVA_HOME goto findJavaFromJavaHome
37 |
38 | set JAVA_EXE=java.exe
39 | %JAVA_EXE% -version >NUL 2>&1
40 | if "%ERRORLEVEL%" == "0" goto init
41 |
42 | echo.
43 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
44 | echo.
45 | echo Please set the JAVA_HOME variable in your environment to match the
46 | echo location of your Java installation.
47 |
48 | goto fail
49 |
50 | :findJavaFromJavaHome
51 | set JAVA_HOME=%JAVA_HOME:"=%
52 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
53 |
54 | if exist "%JAVA_EXE%" goto init
55 |
56 | echo.
57 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
58 | echo.
59 | echo Please set the JAVA_HOME variable in your environment to match the
60 | echo location of your Java installation.
61 |
62 | goto fail
63 |
64 | :init
65 | @rem Get command-line arguments, handling Windows variants
66 |
67 | if not "%OS%" == "Windows_NT" goto win9xME_args
68 |
69 | :win9xME_args
70 | @rem Slurp the command line arguments.
71 | set CMD_LINE_ARGS=
72 | set _SKIP=2
73 |
74 | :win9xME_args_slurp
75 | if "x%~1" == "x" goto execute
76 |
77 | set CMD_LINE_ARGS=%*
78 |
79 | :execute
80 | @rem Setup the command line
81 |
82 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
83 |
84 | @rem Execute Gradle
85 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
86 |
87 | :end
88 | @rem End local scope for the variables with windows NT shell
89 | if "%ERRORLEVEL%"=="0" goto mainEnd
90 |
91 | :fail
92 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
93 | rem the _cmd.exe /c_ return code!
94 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
95 | exit /b 1
96 |
97 | :mainEnd
98 | if "%OS%"=="Windows_NT" endlocal
99 |
100 | :omega
101 |
--------------------------------------------------------------------------------
/src/pages/Main/index.js:
--------------------------------------------------------------------------------
1 | import React, {useState} from 'react';
2 | import PropTypes from 'prop-types';
3 | import Slider from '@react-native-community/slider';
4 | import {Button, ButtonLabel} from '../../components/styles';
5 | import CalculeBMI from '../../core/CalculeBMI';
6 | import useInterval from '../../customHooks/useInterval';
7 | import op from '../../core/operation';
8 | import {
9 | Container,
10 | TitleApp,
11 | WrapperCard,
12 | WrapperButton,
13 | Row,
14 | Label,
15 | GenderIcon,
16 | ContainerHeight,
17 | Number,
18 | HeightContainer,
19 | HeightSize,
20 | CircleButton,
21 | CircleIcon,
22 | RowIcons,
23 | } from './styles';
24 | import i18n from '../../i18n';
25 |
26 | export default function Main({navigation}) {
27 | const data = navigation.getParam('data') || {};
28 |
29 | const [gender, setGender] = useState(data.gender || '');
30 | const [height, setHeight] = useState(data.height || 164);
31 | const [weight, setWeight] = useState(data.weight || 60);
32 | const [operation, setOperation] = useState('');
33 | const [age, setAge] = useState(data.age || 25);
34 | const [delayAge, setDelayAge] = useState(null);
35 | const [delayWeight, setDelayWeight] = useState(null);
36 |
37 | useInterval(() => {
38 | op(operation, weight, setWeight);
39 | }, delayWeight);
40 |
41 | useInterval(() => {
42 | op(operation, age, setAge);
43 | }, delayAge);
44 |
45 | function stopCount() {
46 | setDelayAge(null);
47 | setDelayWeight(null);
48 | }
49 |
50 | const handleWeight = typeOperation => {
51 | op(typeOperation, operation, setOperation, 'set');
52 | setDelayWeight(100);
53 | };
54 |
55 | const handleAge = typeOperation => {
56 | op(typeOperation, operation, setOperation, 'set');
57 | setDelayAge(100);
58 | };
59 |
60 | const handleCalculate = () => {
61 | const result = new CalculeBMI(height, weight).showResult();
62 | navigation.navigate('Result', {
63 | result,
64 | data: {age, gender, height, weight},
65 | });
66 | };
67 |
68 | return (
69 | <>
70 |
71 | {i18n.t('main.title')}
72 |
73 | setGender('male')}>
76 |
77 |
78 |
79 | setGender('female')}>
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 | {height}
91 | cm
92 |
93 | setHeight(value)}
97 | step={1}
98 | minimumValue={0}
99 | maximumValue={230}
100 | minimumTrackTintColor="#B1546F"
101 | maximumTrackTintColor="#999"
102 | thumbTintColor="#B1546F"
103 | />
104 |
105 |
106 |
107 |
108 | {weight}
109 |
110 | setWeight(weight - 1)}
113 | onPressIn={() => handleWeight('minus')}
114 | onPressOut={stopCount}>
115 |
116 |
117 | setWeight(weight + 1)}
119 | onPressIn={() => handleWeight('plus')}
120 | onPressOut={stopCount}>
121 |
122 |
123 |
124 |
125 |
126 |
127 | {age}
128 |
129 | setAge(age - 1)}
132 | onPressIn={() => handleAge('minus')}
133 | onPressOut={stopCount}>
134 |
135 |
136 | setAge(age + 1)}
138 | onPressIn={() => handleAge('plus')}
139 | onPressOut={stopCount}>
140 |
141 |
142 |
143 |
144 |
145 |
146 |
149 | >
150 | );
151 | }
152 |
153 | Main.propTypes = {
154 | navigation: PropTypes.shape({
155 | navigate: PropTypes.func,
156 | getParam: PropTypes.func,
157 | }).isRequired,
158 | };
159 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew.xcodeproj/xcshareddata/xcschemes/BmiCalculatorRNew.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
65 |
66 |
67 |
68 |
70 |
76 |
77 |
78 |
79 |
80 |
90 |
92 |
98 |
99 |
100 |
101 |
107 |
109 |
115 |
116 |
117 |
118 |
120 |
121 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew.xcodeproj/xcshareddata/xcschemes/BmiCalculatorRNew-tvOS.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
43 |
49 |
50 |
51 |
52 |
53 |
58 |
59 |
65 |
66 |
67 |
68 |
70 |
76 |
77 |
78 |
79 |
80 |
90 |
92 |
98 |
99 |
100 |
101 |
107 |
109 |
115 |
116 |
117 |
118 |
120 |
121 |
124 |
125 |
126 |
--------------------------------------------------------------------------------
/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 | # http://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 | # Determine the Java command to use to start the JVM.
86 | if [ -n "$JAVA_HOME" ] ; then
87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
88 | # IBM's JDK on AIX uses strange locations for the executables
89 | JAVACMD="$JAVA_HOME/jre/sh/java"
90 | else
91 | JAVACMD="$JAVA_HOME/bin/java"
92 | fi
93 | if [ ! -x "$JAVACMD" ] ; then
94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
95 |
96 | Please set the JAVA_HOME variable in your environment to match the
97 | location of your Java installation."
98 | fi
99 | else
100 | JAVACMD="java"
101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
102 |
103 | Please set the JAVA_HOME variable in your environment to match the
104 | location of your Java installation."
105 | fi
106 |
107 | # Increase the maximum file descriptors if we can.
108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
109 | MAX_FD_LIMIT=`ulimit -H -n`
110 | if [ $? -eq 0 ] ; then
111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
112 | MAX_FD="$MAX_FD_LIMIT"
113 | fi
114 | ulimit -n $MAX_FD
115 | if [ $? -ne 0 ] ; then
116 | warn "Could not set maximum file descriptor limit: $MAX_FD"
117 | fi
118 | else
119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
120 | fi
121 | fi
122 |
123 | # For Darwin, add options to specify how the application appears in the dock
124 | if $darwin; then
125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
126 | fi
127 |
128 | # For Cygwin, switch paths to Windows format before running java
129 | if $cygwin ; then
130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
132 | JAVACMD=`cygpath --unix "$JAVACMD"`
133 |
134 | # We build the pattern for arguments to be converted via cygpath
135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
136 | SEP=""
137 | for dir in $ROOTDIRSRAW ; do
138 | ROOTDIRS="$ROOTDIRS$SEP$dir"
139 | SEP="|"
140 | done
141 | OURCYGPATTERN="(^($ROOTDIRS))"
142 | # Add a user-defined pattern to the cygpath arguments
143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
145 | fi
146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
147 | i=0
148 | for arg in "$@" ; do
149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
151 |
152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
154 | else
155 | eval `echo args$i`="\"$arg\""
156 | fi
157 | i=$((i+1))
158 | done
159 | case $i in
160 | (0) set -- ;;
161 | (1) set -- "$args0" ;;
162 | (2) set -- "$args0" "$args1" ;;
163 | (3) set -- "$args0" "$args1" "$args2" ;;
164 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
165 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
166 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
167 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
168 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
169 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
170 | esac
171 | fi
172 |
173 | # Escape application args
174 | save () {
175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
176 | echo " "
177 | }
178 | APP_ARGS=$(save "$@")
179 |
180 | # Collect all arguments for the java command, following the shell quoting and substitution rules
181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
182 |
183 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
184 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
185 | cd "$(dirname "$0")"
186 | fi
187 |
188 | exec "$JAVACMD" "$@"
189 |
--------------------------------------------------------------------------------
/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
19 | * entryFile: "index.android.js",
20 | *
21 | * // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format
22 | * bundleCommand: "ram-bundle",
23 | *
24 | * // whether to bundle JS and assets in debug mode
25 | * bundleInDebug: false,
26 | *
27 | * // whether to bundle JS and assets in release mode
28 | * bundleInRelease: true,
29 | *
30 | * // whether to bundle JS and assets in another build variant (if configured).
31 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
32 | * // The configuration property can be in the following formats
33 | * // 'bundleIn${productFlavor}${buildType}'
34 | * // 'bundleIn${buildType}'
35 | * // bundleInFreeDebug: true,
36 | * // bundleInPaidRelease: true,
37 | * // bundleInBeta: true,
38 | *
39 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
40 | * // for example: to disable dev mode in the staging build type (if configured)
41 | * devDisabledInStaging: true,
42 | * // The configuration property can be in the following formats
43 | * // 'devDisabledIn${productFlavor}${buildType}'
44 | * // 'devDisabledIn${buildType}'
45 | *
46 | * // the root of your project, i.e. where "package.json" lives
47 | * root: "../../",
48 | *
49 | * // where to put the JS bundle asset in debug mode
50 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
51 | *
52 | * // where to put the JS bundle asset in release mode
53 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
54 | *
55 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
56 | * // require('./image.png')), in debug mode
57 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
58 | *
59 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
60 | * // require('./image.png')), in release mode
61 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
62 | *
63 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
64 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
65 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
66 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
67 | * // for example, you might want to remove it from here.
68 | * inputExcludes: ["android/**", "ios/**"],
69 | *
70 | * // override which node gets called and with what additional arguments
71 | * nodeExecutableAndArgs: ["node"],
72 | *
73 | * // supply additional arguments to the packager
74 | * extraPackagerArgs: []
75 | * ]
76 | */
77 |
78 | project.ext.react = [
79 | entryFile: "index.js",
80 | enableHermes: false, // clean and rebuild if changing
81 | ]
82 |
83 | apply from: "../../node_modules/react-native/react.gradle"
84 | apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"
85 |
86 | /**
87 | * Set this to true to create two separate APKs instead of one:
88 | * - An APK that only works on ARM devices
89 | * - An APK that only works on x86 devices
90 | * The advantage is the size of the APK is reduced by about 4MB.
91 | * Upload all the APKs to the Play Store and people will download
92 | * the correct one based on the CPU architecture of their device.
93 | */
94 | def enableSeparateBuildPerCPUArchitecture = false
95 |
96 | /**
97 | * Run Proguard to shrink the Java bytecode in release builds.
98 | */
99 | def enableProguardInReleaseBuilds = false
100 |
101 | /**
102 | * The preferred build flavor of JavaScriptCore.
103 | *
104 | * For example, to use the international variant, you can use:
105 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
106 | *
107 | * The international variant includes ICU i18n library and necessary data
108 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
109 | * give correct results when using with locales other than en-US. Note that
110 | * this variant is about 6MiB larger per architecture than default.
111 | */
112 | def jscFlavor = 'org.webkit:android-jsc:+'
113 |
114 | /**
115 | * Whether to enable the Hermes VM.
116 | *
117 | * This should be set on project.ext.react and mirrored here. If it is not set
118 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
119 | * and the benefits of using Hermes will therefore be sharply reduced.
120 | */
121 | def enableHermes = project.ext.react.get("enableHermes", false);
122 |
123 | android {
124 | compileSdkVersion rootProject.ext.compileSdkVersion
125 |
126 | compileOptions {
127 | sourceCompatibility JavaVersion.VERSION_1_8
128 | targetCompatibility JavaVersion.VERSION_1_8
129 | }
130 |
131 | defaultConfig {
132 | applicationId "com.tgmarinho.imc"
133 | minSdkVersion rootProject.ext.minSdkVersion
134 | targetSdkVersion rootProject.ext.targetSdkVersion
135 | versionCode 1
136 | versionName "1.0"
137 | }
138 | splits {
139 | abi {
140 | reset()
141 | enable enableSeparateBuildPerCPUArchitecture
142 | universalApk false // If true, also generate a universal APK
143 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
144 | }
145 | }
146 | signingConfigs {
147 | debug {
148 | storeFile file('debug.keystore')
149 | storePassword 'android'
150 | keyAlias 'androiddebugkey'
151 | keyPassword 'android'
152 | }
153 | }
154 | buildTypes {
155 |
156 | debug {
157 | signingConfig signingConfigs.debug
158 | buildConfigField "String", "CODEPUSH_KEY", '""'
159 | }
160 |
161 | releaseStaging {
162 | buildConfigField "String", "CODEPUSH_KEY", '"bt1jilmAW_dAkCxbp-5sXfUNw6bHF27_VB7ak"'
163 | matchingFallbacks = ['debug', 'release']
164 | }
165 |
166 | release {
167 | // Caution! In production, you need to generate your own keystore file.
168 | // see https://facebook.github.io/react-native/docs/signed-apk-android.
169 | // signingConfig signingConfigs.debug
170 | minifyEnabled enableProguardInReleaseBuilds
171 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
172 |
173 | buildConfigField "String", "CODEPUSH_KEY", '"y7Yu3LrVV1Y8dlCABjL2OdAlCsnowvNnzFx1x"'
174 | }
175 | }
176 | // applicationVariants are e.g. debug, release
177 | applicationVariants.all { variant ->
178 | variant.outputs.each { output ->
179 | // For each separate APK per architecture, set a unique version code as described here:
180 | // https://developer.android.com/studio/build/configure-apk-splits.html
181 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
182 | def abi = output.getFilter(OutputFile.ABI)
183 | if (abi != null) { // null for the universal-debug, universal-release variants
184 | output.versionCodeOverride =
185 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
186 | }
187 |
188 | }
189 | }
190 | }
191 |
192 | dependencies {
193 | implementation project(':react-native-localize')
194 | implementation fileTree(dir: "libs", include: ["*.jar"])
195 | implementation "com.facebook.react:react-native:+" // From node_modules
196 | compile project(':react-native-code-push')
197 | if (enableHermes) {
198 | def hermesPath = "../../node_modules/hermes-engine/android/";
199 | debugImplementation files(hermesPath + "hermes-debug.aar")
200 | releaseImplementation files(hermesPath + "hermes-release.aar")
201 | } else {
202 | implementation jscFlavor
203 | }
204 |
205 | }
206 |
207 | // Run this once to be able to run the application with BUCK
208 | // puts all compile dependencies into folder libs for BUCK to use
209 | task copyDownloadableDepsToLibs(type: Copy) {
210 | from configurations.compile
211 | into 'libs'
212 | }
213 |
214 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
215 |
216 | apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
217 |
218 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Base64 (1.1.2)
3 | - boost-for-react-native (1.63.0)
4 | - CodePush (5.7.0):
5 | - Base64 (~> 1.1)
6 | - JWT (~> 3.0.0-beta.7)
7 | - React
8 | - SSZipArchive (~> 2.1)
9 | - DoubleConversion (1.1.6)
10 | - FBLazyVector (0.61.5)
11 | - FBReactNativeSpec (0.61.5):
12 | - Folly (= 2018.10.22.00)
13 | - RCTRequired (= 0.61.5)
14 | - RCTTypeSafety (= 0.61.5)
15 | - React-Core (= 0.61.5)
16 | - React-jsi (= 0.61.5)
17 | - ReactCommon/turbomodule/core (= 0.61.5)
18 | - Folly (2018.10.22.00):
19 | - boost-for-react-native
20 | - DoubleConversion
21 | - Folly/Default (= 2018.10.22.00)
22 | - glog
23 | - Folly/Default (2018.10.22.00):
24 | - boost-for-react-native
25 | - DoubleConversion
26 | - glog
27 | - glog (0.3.5)
28 | - JWT (3.0.0-beta.12):
29 | - Base64 (~> 1.1.2)
30 | - RCTRequired (0.61.5)
31 | - RCTTypeSafety (0.61.5):
32 | - FBLazyVector (= 0.61.5)
33 | - Folly (= 2018.10.22.00)
34 | - RCTRequired (= 0.61.5)
35 | - React-Core (= 0.61.5)
36 | - React (0.61.5):
37 | - React-Core (= 0.61.5)
38 | - React-Core/DevSupport (= 0.61.5)
39 | - React-Core/RCTWebSocket (= 0.61.5)
40 | - React-RCTActionSheet (= 0.61.5)
41 | - React-RCTAnimation (= 0.61.5)
42 | - React-RCTBlob (= 0.61.5)
43 | - React-RCTImage (= 0.61.5)
44 | - React-RCTLinking (= 0.61.5)
45 | - React-RCTNetwork (= 0.61.5)
46 | - React-RCTSettings (= 0.61.5)
47 | - React-RCTText (= 0.61.5)
48 | - React-RCTVibration (= 0.61.5)
49 | - React-Core (0.61.5):
50 | - Folly (= 2018.10.22.00)
51 | - glog
52 | - React-Core/Default (= 0.61.5)
53 | - React-cxxreact (= 0.61.5)
54 | - React-jsi (= 0.61.5)
55 | - React-jsiexecutor (= 0.61.5)
56 | - Yoga
57 | - React-Core/CoreModulesHeaders (0.61.5):
58 | - Folly (= 2018.10.22.00)
59 | - glog
60 | - React-Core/Default
61 | - React-cxxreact (= 0.61.5)
62 | - React-jsi (= 0.61.5)
63 | - React-jsiexecutor (= 0.61.5)
64 | - Yoga
65 | - React-Core/Default (0.61.5):
66 | - Folly (= 2018.10.22.00)
67 | - glog
68 | - React-cxxreact (= 0.61.5)
69 | - React-jsi (= 0.61.5)
70 | - React-jsiexecutor (= 0.61.5)
71 | - Yoga
72 | - React-Core/DevSupport (0.61.5):
73 | - Folly (= 2018.10.22.00)
74 | - glog
75 | - React-Core/Default (= 0.61.5)
76 | - React-Core/RCTWebSocket (= 0.61.5)
77 | - React-cxxreact (= 0.61.5)
78 | - React-jsi (= 0.61.5)
79 | - React-jsiexecutor (= 0.61.5)
80 | - React-jsinspector (= 0.61.5)
81 | - Yoga
82 | - React-Core/RCTActionSheetHeaders (0.61.5):
83 | - Folly (= 2018.10.22.00)
84 | - glog
85 | - React-Core/Default
86 | - React-cxxreact (= 0.61.5)
87 | - React-jsi (= 0.61.5)
88 | - React-jsiexecutor (= 0.61.5)
89 | - Yoga
90 | - React-Core/RCTAnimationHeaders (0.61.5):
91 | - Folly (= 2018.10.22.00)
92 | - glog
93 | - React-Core/Default
94 | - React-cxxreact (= 0.61.5)
95 | - React-jsi (= 0.61.5)
96 | - React-jsiexecutor (= 0.61.5)
97 | - Yoga
98 | - React-Core/RCTBlobHeaders (0.61.5):
99 | - Folly (= 2018.10.22.00)
100 | - glog
101 | - React-Core/Default
102 | - React-cxxreact (= 0.61.5)
103 | - React-jsi (= 0.61.5)
104 | - React-jsiexecutor (= 0.61.5)
105 | - Yoga
106 | - React-Core/RCTImageHeaders (0.61.5):
107 | - Folly (= 2018.10.22.00)
108 | - glog
109 | - React-Core/Default
110 | - React-cxxreact (= 0.61.5)
111 | - React-jsi (= 0.61.5)
112 | - React-jsiexecutor (= 0.61.5)
113 | - Yoga
114 | - React-Core/RCTLinkingHeaders (0.61.5):
115 | - Folly (= 2018.10.22.00)
116 | - glog
117 | - React-Core/Default
118 | - React-cxxreact (= 0.61.5)
119 | - React-jsi (= 0.61.5)
120 | - React-jsiexecutor (= 0.61.5)
121 | - Yoga
122 | - React-Core/RCTNetworkHeaders (0.61.5):
123 | - Folly (= 2018.10.22.00)
124 | - glog
125 | - React-Core/Default
126 | - React-cxxreact (= 0.61.5)
127 | - React-jsi (= 0.61.5)
128 | - React-jsiexecutor (= 0.61.5)
129 | - Yoga
130 | - React-Core/RCTSettingsHeaders (0.61.5):
131 | - Folly (= 2018.10.22.00)
132 | - glog
133 | - React-Core/Default
134 | - React-cxxreact (= 0.61.5)
135 | - React-jsi (= 0.61.5)
136 | - React-jsiexecutor (= 0.61.5)
137 | - Yoga
138 | - React-Core/RCTTextHeaders (0.61.5):
139 | - Folly (= 2018.10.22.00)
140 | - glog
141 | - React-Core/Default
142 | - React-cxxreact (= 0.61.5)
143 | - React-jsi (= 0.61.5)
144 | - React-jsiexecutor (= 0.61.5)
145 | - Yoga
146 | - React-Core/RCTVibrationHeaders (0.61.5):
147 | - Folly (= 2018.10.22.00)
148 | - glog
149 | - React-Core/Default
150 | - React-cxxreact (= 0.61.5)
151 | - React-jsi (= 0.61.5)
152 | - React-jsiexecutor (= 0.61.5)
153 | - Yoga
154 | - React-Core/RCTWebSocket (0.61.5):
155 | - Folly (= 2018.10.22.00)
156 | - glog
157 | - React-Core/Default (= 0.61.5)
158 | - React-cxxreact (= 0.61.5)
159 | - React-jsi (= 0.61.5)
160 | - React-jsiexecutor (= 0.61.5)
161 | - Yoga
162 | - React-CoreModules (0.61.5):
163 | - FBReactNativeSpec (= 0.61.5)
164 | - Folly (= 2018.10.22.00)
165 | - RCTTypeSafety (= 0.61.5)
166 | - React-Core/CoreModulesHeaders (= 0.61.5)
167 | - React-RCTImage (= 0.61.5)
168 | - ReactCommon/turbomodule/core (= 0.61.5)
169 | - React-cxxreact (0.61.5):
170 | - boost-for-react-native (= 1.63.0)
171 | - DoubleConversion
172 | - Folly (= 2018.10.22.00)
173 | - glog
174 | - React-jsinspector (= 0.61.5)
175 | - React-jsi (0.61.5):
176 | - boost-for-react-native (= 1.63.0)
177 | - DoubleConversion
178 | - Folly (= 2018.10.22.00)
179 | - glog
180 | - React-jsi/Default (= 0.61.5)
181 | - React-jsi/Default (0.61.5):
182 | - boost-for-react-native (= 1.63.0)
183 | - DoubleConversion
184 | - Folly (= 2018.10.22.00)
185 | - glog
186 | - React-jsiexecutor (0.61.5):
187 | - DoubleConversion
188 | - Folly (= 2018.10.22.00)
189 | - glog
190 | - React-cxxreact (= 0.61.5)
191 | - React-jsi (= 0.61.5)
192 | - React-jsinspector (0.61.5)
193 | - react-native-slider (2.0.7):
194 | - React
195 | - React-RCTActionSheet (0.61.5):
196 | - React-Core/RCTActionSheetHeaders (= 0.61.5)
197 | - React-RCTAnimation (0.61.5):
198 | - React-Core/RCTAnimationHeaders (= 0.61.5)
199 | - React-RCTBlob (0.61.5):
200 | - React-Core/RCTBlobHeaders (= 0.61.5)
201 | - React-Core/RCTWebSocket (= 0.61.5)
202 | - React-jsi (= 0.61.5)
203 | - React-RCTNetwork (= 0.61.5)
204 | - React-RCTImage (0.61.5):
205 | - React-Core/RCTImageHeaders (= 0.61.5)
206 | - React-RCTNetwork (= 0.61.5)
207 | - React-RCTLinking (0.61.5):
208 | - React-Core/RCTLinkingHeaders (= 0.61.5)
209 | - React-RCTNetwork (0.61.5):
210 | - React-Core/RCTNetworkHeaders (= 0.61.5)
211 | - React-RCTSettings (0.61.5):
212 | - React-Core/RCTSettingsHeaders (= 0.61.5)
213 | - React-RCTText (0.61.5):
214 | - React-Core/RCTTextHeaders (= 0.61.5)
215 | - React-RCTVibration (0.61.5):
216 | - React-Core/RCTVibrationHeaders (= 0.61.5)
217 | - ReactCommon/jscallinvoker (0.61.5):
218 | - DoubleConversion
219 | - Folly (= 2018.10.22.00)
220 | - glog
221 | - React-cxxreact (= 0.61.5)
222 | - ReactCommon/turbomodule/core (0.61.5):
223 | - DoubleConversion
224 | - Folly (= 2018.10.22.00)
225 | - glog
226 | - React-Core (= 0.61.5)
227 | - React-cxxreact (= 0.61.5)
228 | - React-jsi (= 0.61.5)
229 | - ReactCommon/jscallinvoker (= 0.61.5)
230 | - RNGestureHandler (1.5.2):
231 | - React
232 | - RNLocalize (1.3.1):
233 | - React
234 | - RNReanimated (1.4.0):
235 | - React
236 | - RNVectorIcons (6.6.0):
237 | - React
238 | - SSZipArchive (2.2.2)
239 | - Yoga (1.14.0)
240 |
241 | DEPENDENCIES:
242 | - CodePush (from `../node_modules/react-native-code-push`)
243 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
244 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
245 | - FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`)
246 | - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`)
247 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
248 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
249 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
250 | - React (from `../node_modules/react-native/`)
251 | - React-Core (from `../node_modules/react-native/`)
252 | - React-Core/DevSupport (from `../node_modules/react-native/`)
253 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`)
254 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
255 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
256 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
257 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
258 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
259 | - "react-native-slider (from `../node_modules/@react-native-community/slider`)"
260 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
261 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
262 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
263 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
264 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
265 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
266 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
267 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
268 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
269 | - ReactCommon/jscallinvoker (from `../node_modules/react-native/ReactCommon`)
270 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
271 | - RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
272 | - RNLocalize (from `../node_modules/react-native-localize`)
273 | - RNReanimated (from `../node_modules/react-native-reanimated`)
274 | - RNVectorIcons (from `../node_modules/react-native-vector-icons`)
275 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
276 |
277 | SPEC REPOS:
278 | trunk:
279 | - Base64
280 | - boost-for-react-native
281 | - JWT
282 | - SSZipArchive
283 |
284 | EXTERNAL SOURCES:
285 | CodePush:
286 | :path: "../node_modules/react-native-code-push"
287 | DoubleConversion:
288 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
289 | FBLazyVector:
290 | :path: "../node_modules/react-native/Libraries/FBLazyVector"
291 | FBReactNativeSpec:
292 | :path: "../node_modules/react-native/Libraries/FBReactNativeSpec"
293 | Folly:
294 | :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec"
295 | glog:
296 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
297 | RCTRequired:
298 | :path: "../node_modules/react-native/Libraries/RCTRequired"
299 | RCTTypeSafety:
300 | :path: "../node_modules/react-native/Libraries/TypeSafety"
301 | React:
302 | :path: "../node_modules/react-native/"
303 | React-Core:
304 | :path: "../node_modules/react-native/"
305 | React-CoreModules:
306 | :path: "../node_modules/react-native/React/CoreModules"
307 | React-cxxreact:
308 | :path: "../node_modules/react-native/ReactCommon/cxxreact"
309 | React-jsi:
310 | :path: "../node_modules/react-native/ReactCommon/jsi"
311 | React-jsiexecutor:
312 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor"
313 | React-jsinspector:
314 | :path: "../node_modules/react-native/ReactCommon/jsinspector"
315 | react-native-slider:
316 | :path: "../node_modules/@react-native-community/slider"
317 | React-RCTActionSheet:
318 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
319 | React-RCTAnimation:
320 | :path: "../node_modules/react-native/Libraries/NativeAnimation"
321 | React-RCTBlob:
322 | :path: "../node_modules/react-native/Libraries/Blob"
323 | React-RCTImage:
324 | :path: "../node_modules/react-native/Libraries/Image"
325 | React-RCTLinking:
326 | :path: "../node_modules/react-native/Libraries/LinkingIOS"
327 | React-RCTNetwork:
328 | :path: "../node_modules/react-native/Libraries/Network"
329 | React-RCTSettings:
330 | :path: "../node_modules/react-native/Libraries/Settings"
331 | React-RCTText:
332 | :path: "../node_modules/react-native/Libraries/Text"
333 | React-RCTVibration:
334 | :path: "../node_modules/react-native/Libraries/Vibration"
335 | ReactCommon:
336 | :path: "../node_modules/react-native/ReactCommon"
337 | RNGestureHandler:
338 | :path: "../node_modules/react-native-gesture-handler"
339 | RNLocalize:
340 | :path: "../node_modules/react-native-localize"
341 | RNReanimated:
342 | :path: "../node_modules/react-native-reanimated"
343 | RNVectorIcons:
344 | :path: "../node_modules/react-native-vector-icons"
345 | Yoga:
346 | :path: "../node_modules/react-native/ReactCommon/yoga"
347 |
348 | SPEC CHECKSUMS:
349 | Base64: cecfb41a004124895a7bcee567a89bae5a89d49b
350 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
351 | CodePush: d2e54ad42df82a8db65b2d23d8191b950ba945e1
352 | DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2
353 | FBLazyVector: aaeaf388755e4f29cd74acbc9e3b8da6d807c37f
354 | FBReactNativeSpec: 118d0d177724c2d67f08a59136eb29ef5943ec75
355 | Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51
356 | glog: 1f3da668190260b06b429bb211bfbee5cd790c28
357 | JWT: 9b5c05abbcc1a0e69c3c91e1655b3387fc7e581d
358 | RCTRequired: b153add4da6e7dbc44aebf93f3cf4fcae392ddf1
359 | RCTTypeSafety: 9aa1b91d7f9310fc6eadc3cf95126ffe818af320
360 | React: b6a59ef847b2b40bb6e0180a97d0ca716969ac78
361 | React-Core: 688b451f7d616cc1134ac95295b593d1b5158a04
362 | React-CoreModules: d04f8494c1a328b69ec11db9d1137d667f916dcb
363 | React-cxxreact: d0f7bcafa196ae410e5300736b424455e7fb7ba7
364 | React-jsi: cb2cd74d7ccf4cffb071a46833613edc79cdf8f7
365 | React-jsiexecutor: d5525f9ed5f782fdbacb64b9b01a43a9323d2386
366 | React-jsinspector: fa0ecc501688c3c4c34f28834a76302233e29dc0
367 | react-native-slider: 718ed45db20672b26a92fcf4217ced078b1ac7ce
368 | React-RCTActionSheet: 600b4d10e3aea0913b5a92256d2719c0cdd26d76
369 | React-RCTAnimation: 791a87558389c80908ed06cc5dfc5e7920dfa360
370 | React-RCTBlob: d89293cc0236d9cb0933d85e430b0bbe81ad1d72
371 | React-RCTImage: 6b8e8df449eb7c814c99a92d6b52de6fe39dea4e
372 | React-RCTLinking: 121bb231c7503cf9094f4d8461b96a130fabf4a5
373 | React-RCTNetwork: fb353640aafcee84ca8b78957297bd395f065c9a
374 | React-RCTSettings: 8db258ea2a5efee381fcf7a6d5044e2f8b68b640
375 | React-RCTText: 9ccc88273e9a3aacff5094d2175a605efa854dbe
376 | React-RCTVibration: a49a1f42bf8f5acf1c3e297097517c6b3af377ad
377 | ReactCommon: 198c7c8d3591f975e5431bec1b0b3b581aa1c5dd
378 | RNGestureHandler: 946a7691e41df61e2c4b1884deab41a4cdc3afff
379 | RNLocalize: 07eb7a91d10021cdf59d80061ebf3adb8a5b5688
380 | RNReanimated: b2ab0b693dddd2339bd2f300e770f6302d2e960c
381 | RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4
382 | SSZipArchive: fa16b8cc4cdeceb698e5e5d9f67e9558532fbf23
383 | Yoga: f2a7cd4280bfe2cca5a7aed98ba0eb3d1310f18b
384 |
385 | PODFILE CHECKSUM: 1f73ced493faccdf5eb1c794e5c6052e95046a6a
386 |
387 | COCOAPODS: 1.8.4
388 |
--------------------------------------------------------------------------------
/ios/BmiCalculatorRNew.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00E356F31AD99517003FC87E /* BmiCalculatorRNewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* BmiCalculatorRNewTests.m */; };
11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
12 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
13 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
14 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
15 | 28C8D1A8F0297F365B7C9690 /* libPods-BmiCalculatorRNew.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 12528FD80C7C23517A188673 /* libPods-BmiCalculatorRNew.a */; };
16 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
17 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
18 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
19 | 2DCD954D1E0B4F2C00145EB5 /* BmiCalculatorRNewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* BmiCalculatorRNewTests.m */; };
20 | 9784030F23969F09008EC973 /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 9784030E23969F09008EC973 /* main.jsbundle */; };
21 | 9B4FC8E1C3DC3F549498B67F /* libPods-BmiCalculatorRNew-tvOSTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A1645529B67302431BE6CF5 /* libPods-BmiCalculatorRNew-tvOSTests.a */; };
22 | C86E451FB504C0D191E8ACC5 /* libPods-BmiCalculatorRNewTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AAB4BEC72F2003DFCB856D9C /* libPods-BmiCalculatorRNewTests.a */; };
23 | D9C0617AACCF64BE14D1C6AA /* libPods-BmiCalculatorRNew-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D043DB603F07A9E59446610A /* libPods-BmiCalculatorRNew-tvOS.a */; };
24 | /* End PBXBuildFile section */
25 |
26 | /* Begin PBXContainerItemProxy section */
27 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
28 | isa = PBXContainerItemProxy;
29 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
30 | proxyType = 1;
31 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
32 | remoteInfo = BmiCalculatorRNew;
33 | };
34 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = {
35 | isa = PBXContainerItemProxy;
36 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
37 | proxyType = 1;
38 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7;
39 | remoteInfo = "BmiCalculatorRNew-tvOS";
40 | };
41 | /* End PBXContainerItemProxy section */
42 |
43 | /* Begin PBXFileReference section */
44 | 00E356EE1AD99517003FC87E /* BmiCalculatorRNewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BmiCalculatorRNewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
46 | 00E356F21AD99517003FC87E /* BmiCalculatorRNewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BmiCalculatorRNewTests.m; sourceTree = ""; };
47 | 12528FD80C7C23517A188673 /* libPods-BmiCalculatorRNew.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-BmiCalculatorRNew.a"; sourceTree = BUILT_PRODUCTS_DIR; };
48 | 13B07F961A680F5B00A75B9A /* IMC.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IMC.app; sourceTree = BUILT_PRODUCTS_DIR; };
49 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = BmiCalculatorRNew/AppDelegate.h; sourceTree = ""; };
50 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = BmiCalculatorRNew/AppDelegate.m; sourceTree = ""; };
51 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
52 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = BmiCalculatorRNew/Images.xcassets; sourceTree = ""; };
53 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = BmiCalculatorRNew/Info.plist; sourceTree = ""; };
54 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = BmiCalculatorRNew/main.m; sourceTree = ""; };
55 | 1716F6DE17F77448DCCE0B00 /* Pods-BmiCalculatorRNew.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BmiCalculatorRNew.release.xcconfig"; path = "Target Support Files/Pods-BmiCalculatorRNew/Pods-BmiCalculatorRNew.release.xcconfig"; sourceTree = ""; };
56 | 1A1645529B67302431BE6CF5 /* libPods-BmiCalculatorRNew-tvOSTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-BmiCalculatorRNew-tvOSTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
57 | 2590B5FCD0CFAF5D67FCC292 /* Pods-BmiCalculatorRNewTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BmiCalculatorRNewTests.debug.xcconfig"; path = "Target Support Files/Pods-BmiCalculatorRNewTests/Pods-BmiCalculatorRNewTests.debug.xcconfig"; sourceTree = ""; };
58 | 2D02E47B1E0B4A5D006451C7 /* BmiCalculatorRNew-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "BmiCalculatorRNew-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
59 | 2D02E4901E0B4A5D006451C7 /* BmiCalculatorRNew-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "BmiCalculatorRNew-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
60 | 3615F30AC583B96802E77898 /* Pods-BmiCalculatorRNewTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BmiCalculatorRNewTests.release.xcconfig"; path = "Target Support Files/Pods-BmiCalculatorRNewTests/Pods-BmiCalculatorRNewTests.release.xcconfig"; sourceTree = ""; };
61 | 403926882B609509CFEAFCE4 /* Pods-BmiCalculatorRNew-tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BmiCalculatorRNew-tvOS.release.xcconfig"; path = "Target Support Files/Pods-BmiCalculatorRNew-tvOS/Pods-BmiCalculatorRNew-tvOS.release.xcconfig"; sourceTree = ""; };
62 | 69D4C267952EDB5901116B21 /* Pods-BmiCalculatorRNew-tvOSTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BmiCalculatorRNew-tvOSTests.debug.xcconfig"; path = "Target Support Files/Pods-BmiCalculatorRNew-tvOSTests/Pods-BmiCalculatorRNew-tvOSTests.debug.xcconfig"; sourceTree = ""; };
63 | 6D3B1ECA8EB9167D2A6534CD /* Pods-BmiCalculatorRNew-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BmiCalculatorRNew-tvOS.debug.xcconfig"; path = "Target Support Files/Pods-BmiCalculatorRNew-tvOS/Pods-BmiCalculatorRNew-tvOS.debug.xcconfig"; sourceTree = ""; };
64 | 855888BE2F9C2DA8F5FAB453 /* Pods-BmiCalculatorRNew-tvOSTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BmiCalculatorRNew-tvOSTests.release.xcconfig"; path = "Target Support Files/Pods-BmiCalculatorRNew-tvOSTests/Pods-BmiCalculatorRNew-tvOSTests.release.xcconfig"; sourceTree = ""; };
65 | 9784030E23969F09008EC973 /* main.jsbundle */ = {isa = PBXFileReference; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
66 | AAB4BEC72F2003DFCB856D9C /* libPods-BmiCalculatorRNewTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-BmiCalculatorRNewTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
67 | D043DB603F07A9E59446610A /* libPods-BmiCalculatorRNew-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-BmiCalculatorRNew-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
68 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
69 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
70 | F567A1A63A0BBB22AA4719D2 /* Pods-BmiCalculatorRNew.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BmiCalculatorRNew.debug.xcconfig"; path = "Target Support Files/Pods-BmiCalculatorRNew/Pods-BmiCalculatorRNew.debug.xcconfig"; sourceTree = ""; };
71 | /* End PBXFileReference section */
72 |
73 | /* Begin PBXFrameworksBuildPhase section */
74 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
75 | isa = PBXFrameworksBuildPhase;
76 | buildActionMask = 2147483647;
77 | files = (
78 | C86E451FB504C0D191E8ACC5 /* libPods-BmiCalculatorRNewTests.a in Frameworks */,
79 | );
80 | runOnlyForDeploymentPostprocessing = 0;
81 | };
82 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
83 | isa = PBXFrameworksBuildPhase;
84 | buildActionMask = 2147483647;
85 | files = (
86 | 28C8D1A8F0297F365B7C9690 /* libPods-BmiCalculatorRNew.a in Frameworks */,
87 | );
88 | runOnlyForDeploymentPostprocessing = 0;
89 | };
90 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = {
91 | isa = PBXFrameworksBuildPhase;
92 | buildActionMask = 2147483647;
93 | files = (
94 | D9C0617AACCF64BE14D1C6AA /* libPods-BmiCalculatorRNew-tvOS.a in Frameworks */,
95 | );
96 | runOnlyForDeploymentPostprocessing = 0;
97 | };
98 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = {
99 | isa = PBXFrameworksBuildPhase;
100 | buildActionMask = 2147483647;
101 | files = (
102 | 9B4FC8E1C3DC3F549498B67F /* libPods-BmiCalculatorRNew-tvOSTests.a in Frameworks */,
103 | );
104 | runOnlyForDeploymentPostprocessing = 0;
105 | };
106 | /* End PBXFrameworksBuildPhase section */
107 |
108 | /* Begin PBXGroup section */
109 | 00E356EF1AD99517003FC87E /* BmiCalculatorRNewTests */ = {
110 | isa = PBXGroup;
111 | children = (
112 | 00E356F21AD99517003FC87E /* BmiCalculatorRNewTests.m */,
113 | 00E356F01AD99517003FC87E /* Supporting Files */,
114 | );
115 | path = BmiCalculatorRNewTests;
116 | sourceTree = "";
117 | };
118 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
119 | isa = PBXGroup;
120 | children = (
121 | 00E356F11AD99517003FC87E /* Info.plist */,
122 | );
123 | name = "Supporting Files";
124 | sourceTree = "";
125 | };
126 | 13B07FAE1A68108700A75B9A /* BmiCalculatorRNew */ = {
127 | isa = PBXGroup;
128 | children = (
129 | 9784030E23969F09008EC973 /* main.jsbundle */,
130 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
131 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
132 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
133 | 13B07FB61A68108700A75B9A /* Info.plist */,
134 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
135 | 13B07FB71A68108700A75B9A /* main.m */,
136 | );
137 | name = BmiCalculatorRNew;
138 | sourceTree = "";
139 | };
140 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
141 | isa = PBXGroup;
142 | children = (
143 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
144 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
145 | 12528FD80C7C23517A188673 /* libPods-BmiCalculatorRNew.a */,
146 | D043DB603F07A9E59446610A /* libPods-BmiCalculatorRNew-tvOS.a */,
147 | 1A1645529B67302431BE6CF5 /* libPods-BmiCalculatorRNew-tvOSTests.a */,
148 | AAB4BEC72F2003DFCB856D9C /* libPods-BmiCalculatorRNewTests.a */,
149 | );
150 | name = Frameworks;
151 | sourceTree = "";
152 | };
153 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
154 | isa = PBXGroup;
155 | children = (
156 | );
157 | name = Libraries;
158 | sourceTree = "";
159 | };
160 | 83CBB9F61A601CBA00E9B192 = {
161 | isa = PBXGroup;
162 | children = (
163 | 13B07FAE1A68108700A75B9A /* BmiCalculatorRNew */,
164 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
165 | 00E356EF1AD99517003FC87E /* BmiCalculatorRNewTests */,
166 | 83CBBA001A601CBA00E9B192 /* Products */,
167 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
168 | B3E5017595C100A06B00A757 /* Pods */,
169 | );
170 | indentWidth = 2;
171 | sourceTree = "";
172 | tabWidth = 2;
173 | usesTabs = 0;
174 | };
175 | 83CBBA001A601CBA00E9B192 /* Products */ = {
176 | isa = PBXGroup;
177 | children = (
178 | 13B07F961A680F5B00A75B9A /* IMC.app */,
179 | 00E356EE1AD99517003FC87E /* BmiCalculatorRNewTests.xctest */,
180 | 2D02E47B1E0B4A5D006451C7 /* BmiCalculatorRNew-tvOS.app */,
181 | 2D02E4901E0B4A5D006451C7 /* BmiCalculatorRNew-tvOSTests.xctest */,
182 | );
183 | name = Products;
184 | sourceTree = "";
185 | };
186 | B3E5017595C100A06B00A757 /* Pods */ = {
187 | isa = PBXGroup;
188 | children = (
189 | F567A1A63A0BBB22AA4719D2 /* Pods-BmiCalculatorRNew.debug.xcconfig */,
190 | 1716F6DE17F77448DCCE0B00 /* Pods-BmiCalculatorRNew.release.xcconfig */,
191 | 6D3B1ECA8EB9167D2A6534CD /* Pods-BmiCalculatorRNew-tvOS.debug.xcconfig */,
192 | 403926882B609509CFEAFCE4 /* Pods-BmiCalculatorRNew-tvOS.release.xcconfig */,
193 | 69D4C267952EDB5901116B21 /* Pods-BmiCalculatorRNew-tvOSTests.debug.xcconfig */,
194 | 855888BE2F9C2DA8F5FAB453 /* Pods-BmiCalculatorRNew-tvOSTests.release.xcconfig */,
195 | 2590B5FCD0CFAF5D67FCC292 /* Pods-BmiCalculatorRNewTests.debug.xcconfig */,
196 | 3615F30AC583B96802E77898 /* Pods-BmiCalculatorRNewTests.release.xcconfig */,
197 | );
198 | path = Pods;
199 | sourceTree = "";
200 | };
201 | /* End PBXGroup section */
202 |
203 | /* Begin PBXNativeTarget section */
204 | 00E356ED1AD99517003FC87E /* BmiCalculatorRNewTests */ = {
205 | isa = PBXNativeTarget;
206 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "BmiCalculatorRNewTests" */;
207 | buildPhases = (
208 | 6F336D5B038E7FF26FB17614 /* [CP] Check Pods Manifest.lock */,
209 | 00E356EA1AD99517003FC87E /* Sources */,
210 | 00E356EB1AD99517003FC87E /* Frameworks */,
211 | 00E356EC1AD99517003FC87E /* Resources */,
212 | );
213 | buildRules = (
214 | );
215 | dependencies = (
216 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
217 | );
218 | name = BmiCalculatorRNewTests;
219 | productName = BmiCalculatorRNewTests;
220 | productReference = 00E356EE1AD99517003FC87E /* BmiCalculatorRNewTests.xctest */;
221 | productType = "com.apple.product-type.bundle.unit-test";
222 | };
223 | 13B07F861A680F5B00A75B9A /* BmiCalculatorRNew */ = {
224 | isa = PBXNativeTarget;
225 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "BmiCalculatorRNew" */;
226 | buildPhases = (
227 | 2E441BB9654B4A25F9E6A170 /* [CP] Check Pods Manifest.lock */,
228 | FD10A7F022414F080027D42C /* Start Packager */,
229 | 13B07F871A680F5B00A75B9A /* Sources */,
230 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
231 | 13B07F8E1A680F5B00A75B9A /* Resources */,
232 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
233 | 3A1E9C45CBAA03EACE7C91EE /* [CP] Copy Pods Resources */,
234 | );
235 | buildRules = (
236 | );
237 | dependencies = (
238 | );
239 | name = BmiCalculatorRNew;
240 | productName = BmiCalculatorRNew;
241 | productReference = 13B07F961A680F5B00A75B9A /* IMC.app */;
242 | productType = "com.apple.product-type.application";
243 | };
244 | 2D02E47A1E0B4A5D006451C7 /* BmiCalculatorRNew-tvOS */ = {
245 | isa = PBXNativeTarget;
246 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "BmiCalculatorRNew-tvOS" */;
247 | buildPhases = (
248 | D4841F713923CB9BA545529C /* [CP] Check Pods Manifest.lock */,
249 | FD10A7F122414F3F0027D42C /* Start Packager */,
250 | 2D02E4771E0B4A5D006451C7 /* Sources */,
251 | 2D02E4781E0B4A5D006451C7 /* Frameworks */,
252 | 2D02E4791E0B4A5D006451C7 /* Resources */,
253 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */,
254 | );
255 | buildRules = (
256 | );
257 | dependencies = (
258 | );
259 | name = "BmiCalculatorRNew-tvOS";
260 | productName = "BmiCalculatorRNew-tvOS";
261 | productReference = 2D02E47B1E0B4A5D006451C7 /* BmiCalculatorRNew-tvOS.app */;
262 | productType = "com.apple.product-type.application";
263 | };
264 | 2D02E48F1E0B4A5D006451C7 /* BmiCalculatorRNew-tvOSTests */ = {
265 | isa = PBXNativeTarget;
266 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "BmiCalculatorRNew-tvOSTests" */;
267 | buildPhases = (
268 | 41190789AAE2E03A518FA903 /* [CP] Check Pods Manifest.lock */,
269 | 2D02E48C1E0B4A5D006451C7 /* Sources */,
270 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */,
271 | 2D02E48E1E0B4A5D006451C7 /* Resources */,
272 | );
273 | buildRules = (
274 | );
275 | dependencies = (
276 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */,
277 | );
278 | name = "BmiCalculatorRNew-tvOSTests";
279 | productName = "BmiCalculatorRNew-tvOSTests";
280 | productReference = 2D02E4901E0B4A5D006451C7 /* BmiCalculatorRNew-tvOSTests.xctest */;
281 | productType = "com.apple.product-type.bundle.unit-test";
282 | };
283 | /* End PBXNativeTarget section */
284 |
285 | /* Begin PBXProject section */
286 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
287 | isa = PBXProject;
288 | attributes = {
289 | LastUpgradeCheck = 1120;
290 | ORGANIZATIONNAME = Facebook;
291 | TargetAttributes = {
292 | 00E356ED1AD99517003FC87E = {
293 | CreatedOnToolsVersion = 6.2;
294 | TestTargetID = 13B07F861A680F5B00A75B9A;
295 | };
296 | 13B07F861A680F5B00A75B9A = {
297 | ProvisioningStyle = Manual;
298 | };
299 | 2D02E47A1E0B4A5D006451C7 = {
300 | CreatedOnToolsVersion = 8.2.1;
301 | ProvisioningStyle = Automatic;
302 | };
303 | 2D02E48F1E0B4A5D006451C7 = {
304 | CreatedOnToolsVersion = 8.2.1;
305 | ProvisioningStyle = Automatic;
306 | TestTargetID = 2D02E47A1E0B4A5D006451C7;
307 | };
308 | };
309 | };
310 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "BmiCalculatorRNew" */;
311 | compatibilityVersion = "Xcode 3.2";
312 | developmentRegion = en;
313 | hasScannedForEncodings = 0;
314 | knownRegions = (
315 | en,
316 | Base,
317 | );
318 | mainGroup = 83CBB9F61A601CBA00E9B192;
319 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
320 | projectDirPath = "";
321 | projectRoot = "";
322 | targets = (
323 | 13B07F861A680F5B00A75B9A /* BmiCalculatorRNew */,
324 | 00E356ED1AD99517003FC87E /* BmiCalculatorRNewTests */,
325 | 2D02E47A1E0B4A5D006451C7 /* BmiCalculatorRNew-tvOS */,
326 | 2D02E48F1E0B4A5D006451C7 /* BmiCalculatorRNew-tvOSTests */,
327 | );
328 | };
329 | /* End PBXProject section */
330 |
331 | /* Begin PBXResourcesBuildPhase section */
332 | 00E356EC1AD99517003FC87E /* Resources */ = {
333 | isa = PBXResourcesBuildPhase;
334 | buildActionMask = 2147483647;
335 | files = (
336 | );
337 | runOnlyForDeploymentPostprocessing = 0;
338 | };
339 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
340 | isa = PBXResourcesBuildPhase;
341 | buildActionMask = 2147483647;
342 | files = (
343 | 9784030F23969F09008EC973 /* main.jsbundle in Resources */,
344 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
345 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
346 | );
347 | runOnlyForDeploymentPostprocessing = 0;
348 | };
349 | 2D02E4791E0B4A5D006451C7 /* Resources */ = {
350 | isa = PBXResourcesBuildPhase;
351 | buildActionMask = 2147483647;
352 | files = (
353 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */,
354 | );
355 | runOnlyForDeploymentPostprocessing = 0;
356 | };
357 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = {
358 | isa = PBXResourcesBuildPhase;
359 | buildActionMask = 2147483647;
360 | files = (
361 | );
362 | runOnlyForDeploymentPostprocessing = 0;
363 | };
364 | /* End PBXResourcesBuildPhase section */
365 |
366 | /* Begin PBXShellScriptBuildPhase section */
367 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
368 | isa = PBXShellScriptBuildPhase;
369 | buildActionMask = 2147483647;
370 | files = (
371 | );
372 | inputPaths = (
373 | );
374 | name = "Bundle React Native code and images";
375 | outputPaths = (
376 | );
377 | runOnlyForDeploymentPostprocessing = 0;
378 | shellPath = /bin/sh;
379 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
380 | };
381 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = {
382 | isa = PBXShellScriptBuildPhase;
383 | buildActionMask = 2147483647;
384 | files = (
385 | );
386 | inputPaths = (
387 | );
388 | name = "Bundle React Native Code And Images";
389 | outputPaths = (
390 | );
391 | runOnlyForDeploymentPostprocessing = 0;
392 | shellPath = /bin/sh;
393 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
394 | };
395 | 2E441BB9654B4A25F9E6A170 /* [CP] Check Pods Manifest.lock */ = {
396 | isa = PBXShellScriptBuildPhase;
397 | buildActionMask = 2147483647;
398 | files = (
399 | );
400 | inputFileListPaths = (
401 | );
402 | inputPaths = (
403 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
404 | "${PODS_ROOT}/Manifest.lock",
405 | );
406 | name = "[CP] Check Pods Manifest.lock";
407 | outputFileListPaths = (
408 | );
409 | outputPaths = (
410 | "$(DERIVED_FILE_DIR)/Pods-BmiCalculatorRNew-checkManifestLockResult.txt",
411 | );
412 | runOnlyForDeploymentPostprocessing = 0;
413 | shellPath = /bin/sh;
414 | 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";
415 | showEnvVarsInLog = 0;
416 | };
417 | 3A1E9C45CBAA03EACE7C91EE /* [CP] Copy Pods Resources */ = {
418 | isa = PBXShellScriptBuildPhase;
419 | buildActionMask = 2147483647;
420 | files = (
421 | );
422 | inputPaths = (
423 | "${PODS_ROOT}/Target Support Files/Pods-BmiCalculatorRNew/Pods-BmiCalculatorRNew-resources.sh",
424 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf",
425 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Entypo.ttf",
426 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf",
427 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Feather.ttf",
428 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf",
429 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf",
430 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf",
431 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf",
432 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf",
433 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Foundation.ttf",
434 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf",
435 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf",
436 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf",
437 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Octicons.ttf",
438 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf",
439 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf",
440 | );
441 | name = "[CP] Copy Pods Resources";
442 | outputPaths = (
443 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AntDesign.ttf",
444 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Entypo.ttf",
445 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EvilIcons.ttf",
446 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Feather.ttf",
447 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome.ttf",
448 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Brands.ttf",
449 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Regular.ttf",
450 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Solid.ttf",
451 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Fontisto.ttf",
452 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Foundation.ttf",
453 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Ionicons.ttf",
454 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MaterialCommunityIcons.ttf",
455 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MaterialIcons.ttf",
456 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Octicons.ttf",
457 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SimpleLineIcons.ttf",
458 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Zocial.ttf",
459 | );
460 | runOnlyForDeploymentPostprocessing = 0;
461 | shellPath = /bin/sh;
462 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-BmiCalculatorRNew/Pods-BmiCalculatorRNew-resources.sh\"\n";
463 | showEnvVarsInLog = 0;
464 | };
465 | 41190789AAE2E03A518FA903 /* [CP] Check Pods Manifest.lock */ = {
466 | isa = PBXShellScriptBuildPhase;
467 | buildActionMask = 2147483647;
468 | files = (
469 | );
470 | inputFileListPaths = (
471 | );
472 | inputPaths = (
473 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
474 | "${PODS_ROOT}/Manifest.lock",
475 | );
476 | name = "[CP] Check Pods Manifest.lock";
477 | outputFileListPaths = (
478 | );
479 | outputPaths = (
480 | "$(DERIVED_FILE_DIR)/Pods-BmiCalculatorRNew-tvOSTests-checkManifestLockResult.txt",
481 | );
482 | runOnlyForDeploymentPostprocessing = 0;
483 | shellPath = /bin/sh;
484 | 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";
485 | showEnvVarsInLog = 0;
486 | };
487 | 6F336D5B038E7FF26FB17614 /* [CP] Check Pods Manifest.lock */ = {
488 | isa = PBXShellScriptBuildPhase;
489 | buildActionMask = 2147483647;
490 | files = (
491 | );
492 | inputFileListPaths = (
493 | );
494 | inputPaths = (
495 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
496 | "${PODS_ROOT}/Manifest.lock",
497 | );
498 | name = "[CP] Check Pods Manifest.lock";
499 | outputFileListPaths = (
500 | );
501 | outputPaths = (
502 | "$(DERIVED_FILE_DIR)/Pods-BmiCalculatorRNewTests-checkManifestLockResult.txt",
503 | );
504 | runOnlyForDeploymentPostprocessing = 0;
505 | shellPath = /bin/sh;
506 | 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";
507 | showEnvVarsInLog = 0;
508 | };
509 | D4841F713923CB9BA545529C /* [CP] Check Pods Manifest.lock */ = {
510 | isa = PBXShellScriptBuildPhase;
511 | buildActionMask = 2147483647;
512 | files = (
513 | );
514 | inputFileListPaths = (
515 | );
516 | inputPaths = (
517 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
518 | "${PODS_ROOT}/Manifest.lock",
519 | );
520 | name = "[CP] Check Pods Manifest.lock";
521 | outputFileListPaths = (
522 | );
523 | outputPaths = (
524 | "$(DERIVED_FILE_DIR)/Pods-BmiCalculatorRNew-tvOS-checkManifestLockResult.txt",
525 | );
526 | runOnlyForDeploymentPostprocessing = 0;
527 | shellPath = /bin/sh;
528 | 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";
529 | showEnvVarsInLog = 0;
530 | };
531 | FD10A7F022414F080027D42C /* Start Packager */ = {
532 | isa = PBXShellScriptBuildPhase;
533 | buildActionMask = 2147483647;
534 | files = (
535 | );
536 | inputFileListPaths = (
537 | );
538 | inputPaths = (
539 | );
540 | name = "Start Packager";
541 | outputFileListPaths = (
542 | );
543 | outputPaths = (
544 | );
545 | runOnlyForDeploymentPostprocessing = 0;
546 | shellPath = /bin/sh;
547 | 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";
548 | showEnvVarsInLog = 0;
549 | };
550 | FD10A7F122414F3F0027D42C /* Start Packager */ = {
551 | isa = PBXShellScriptBuildPhase;
552 | buildActionMask = 2147483647;
553 | files = (
554 | );
555 | inputFileListPaths = (
556 | );
557 | inputPaths = (
558 | );
559 | name = "Start Packager";
560 | outputFileListPaths = (
561 | );
562 | outputPaths = (
563 | );
564 | runOnlyForDeploymentPostprocessing = 0;
565 | shellPath = /bin/sh;
566 | 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";
567 | showEnvVarsInLog = 0;
568 | };
569 | /* End PBXShellScriptBuildPhase section */
570 |
571 | /* Begin PBXSourcesBuildPhase section */
572 | 00E356EA1AD99517003FC87E /* Sources */ = {
573 | isa = PBXSourcesBuildPhase;
574 | buildActionMask = 2147483647;
575 | files = (
576 | 00E356F31AD99517003FC87E /* BmiCalculatorRNewTests.m in Sources */,
577 | );
578 | runOnlyForDeploymentPostprocessing = 0;
579 | };
580 | 13B07F871A680F5B00A75B9A /* Sources */ = {
581 | isa = PBXSourcesBuildPhase;
582 | buildActionMask = 2147483647;
583 | files = (
584 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
585 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
586 | );
587 | runOnlyForDeploymentPostprocessing = 0;
588 | };
589 | 2D02E4771E0B4A5D006451C7 /* Sources */ = {
590 | isa = PBXSourcesBuildPhase;
591 | buildActionMask = 2147483647;
592 | files = (
593 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */,
594 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */,
595 | );
596 | runOnlyForDeploymentPostprocessing = 0;
597 | };
598 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = {
599 | isa = PBXSourcesBuildPhase;
600 | buildActionMask = 2147483647;
601 | files = (
602 | 2DCD954D1E0B4F2C00145EB5 /* BmiCalculatorRNewTests.m in Sources */,
603 | );
604 | runOnlyForDeploymentPostprocessing = 0;
605 | };
606 | /* End PBXSourcesBuildPhase section */
607 |
608 | /* Begin PBXTargetDependency section */
609 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
610 | isa = PBXTargetDependency;
611 | target = 13B07F861A680F5B00A75B9A /* BmiCalculatorRNew */;
612 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
613 | };
614 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = {
615 | isa = PBXTargetDependency;
616 | target = 2D02E47A1E0B4A5D006451C7 /* BmiCalculatorRNew-tvOS */;
617 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */;
618 | };
619 | /* End PBXTargetDependency section */
620 |
621 | /* Begin PBXVariantGroup section */
622 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
623 | isa = PBXVariantGroup;
624 | children = (
625 | 13B07FB21A68108700A75B9A /* Base */,
626 | );
627 | name = LaunchScreen.xib;
628 | path = BmiCalculatorRNew;
629 | sourceTree = "";
630 | };
631 | /* End PBXVariantGroup section */
632 |
633 | /* Begin XCBuildConfiguration section */
634 | 00E356F61AD99517003FC87E /* Debug */ = {
635 | isa = XCBuildConfiguration;
636 | baseConfigurationReference = 2590B5FCD0CFAF5D67FCC292 /* Pods-BmiCalculatorRNewTests.debug.xcconfig */;
637 | buildSettings = {
638 | BUNDLE_LOADER = "$(TEST_HOST)";
639 | GCC_PREPROCESSOR_DEFINITIONS = (
640 | "DEBUG=1",
641 | "$(inherited)",
642 | );
643 | INFOPLIST_FILE = BmiCalculatorRNewTests/Info.plist;
644 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
645 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
646 | OTHER_LDFLAGS = (
647 | "-ObjC",
648 | "-lc++",
649 | "$(inherited)",
650 | );
651 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
652 | PRODUCT_NAME = "$(TARGET_NAME)";
653 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BmiCalculatorRNew.app/BmiCalculatorRNew";
654 | };
655 | name = Debug;
656 | };
657 | 00E356F71AD99517003FC87E /* Release */ = {
658 | isa = XCBuildConfiguration;
659 | baseConfigurationReference = 3615F30AC583B96802E77898 /* Pods-BmiCalculatorRNewTests.release.xcconfig */;
660 | buildSettings = {
661 | BUNDLE_LOADER = "$(TEST_HOST)";
662 | COPY_PHASE_STRIP = NO;
663 | INFOPLIST_FILE = BmiCalculatorRNewTests/Info.plist;
664 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
665 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
666 | OTHER_LDFLAGS = (
667 | "-ObjC",
668 | "-lc++",
669 | "$(inherited)",
670 | );
671 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
672 | PRODUCT_NAME = "$(TARGET_NAME)";
673 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BmiCalculatorRNew.app/BmiCalculatorRNew";
674 | };
675 | name = Release;
676 | };
677 | 13B07F941A680F5B00A75B9A /* Debug */ = {
678 | isa = XCBuildConfiguration;
679 | baseConfigurationReference = F567A1A63A0BBB22AA4719D2 /* Pods-BmiCalculatorRNew.debug.xcconfig */;
680 | buildSettings = {
681 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
682 | CODE_SIGN_IDENTITY = "Apple Development";
683 | CODE_SIGN_STYLE = Manual;
684 | CURRENT_PROJECT_VERSION = 1;
685 | DEAD_CODE_STRIPPING = NO;
686 | DEVELOPMENT_TEAM = "";
687 | INFOPLIST_FILE = BmiCalculatorRNew/Info.plist;
688 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
689 | OTHER_LDFLAGS = (
690 | "$(inherited)",
691 | "-ObjC",
692 | "-lc++",
693 | );
694 | PRODUCT_BUNDLE_IDENTIFIER = com.tgmarinho.imc;
695 | PRODUCT_NAME = IMC;
696 | PROVISIONING_PROFILE_SPECIFIER = "";
697 | VERSIONING_SYSTEM = "apple-generic";
698 | };
699 | name = Debug;
700 | };
701 | 13B07F951A680F5B00A75B9A /* Release */ = {
702 | isa = XCBuildConfiguration;
703 | baseConfigurationReference = 1716F6DE17F77448DCCE0B00 /* Pods-BmiCalculatorRNew.release.xcconfig */;
704 | buildSettings = {
705 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
706 | CODE_SIGN_IDENTITY = "Apple Development";
707 | CODE_SIGN_STYLE = Manual;
708 | CURRENT_PROJECT_VERSION = 1;
709 | DEVELOPMENT_TEAM = "";
710 | INFOPLIST_FILE = BmiCalculatorRNew/Info.plist;
711 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
712 | OTHER_LDFLAGS = (
713 | "$(inherited)",
714 | "-ObjC",
715 | "-lc++",
716 | );
717 | PRODUCT_BUNDLE_IDENTIFIER = com.tgmarinho.imc;
718 | PRODUCT_NAME = IMC;
719 | PROVISIONING_PROFILE_SPECIFIER = "";
720 | VERSIONING_SYSTEM = "apple-generic";
721 | };
722 | name = Release;
723 | };
724 | 2D02E4971E0B4A5E006451C7 /* Debug */ = {
725 | isa = XCBuildConfiguration;
726 | baseConfigurationReference = 6D3B1ECA8EB9167D2A6534CD /* Pods-BmiCalculatorRNew-tvOS.debug.xcconfig */;
727 | buildSettings = {
728 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
729 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
730 | CLANG_ANALYZER_NONNULL = YES;
731 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
732 | CLANG_WARN_INFINITE_RECURSION = YES;
733 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
734 | DEBUG_INFORMATION_FORMAT = dwarf;
735 | ENABLE_TESTABILITY = YES;
736 | GCC_NO_COMMON_BLOCKS = YES;
737 | INFOPLIST_FILE = "BmiCalculatorRNew-tvOS/Info.plist";
738 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
739 | OTHER_LDFLAGS = (
740 | "$(inherited)",
741 | "-ObjC",
742 | "-lc++",
743 | );
744 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.BmiCalculatorRNew-tvOS";
745 | PRODUCT_NAME = "$(TARGET_NAME)";
746 | SDKROOT = appletvos;
747 | TARGETED_DEVICE_FAMILY = 3;
748 | TVOS_DEPLOYMENT_TARGET = 9.2;
749 | };
750 | name = Debug;
751 | };
752 | 2D02E4981E0B4A5E006451C7 /* Release */ = {
753 | isa = XCBuildConfiguration;
754 | baseConfigurationReference = 403926882B609509CFEAFCE4 /* Pods-BmiCalculatorRNew-tvOS.release.xcconfig */;
755 | buildSettings = {
756 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
757 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
758 | CLANG_ANALYZER_NONNULL = YES;
759 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
760 | CLANG_WARN_INFINITE_RECURSION = YES;
761 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
762 | COPY_PHASE_STRIP = NO;
763 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
764 | GCC_NO_COMMON_BLOCKS = YES;
765 | INFOPLIST_FILE = "BmiCalculatorRNew-tvOS/Info.plist";
766 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
767 | OTHER_LDFLAGS = (
768 | "$(inherited)",
769 | "-ObjC",
770 | "-lc++",
771 | );
772 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.BmiCalculatorRNew-tvOS";
773 | PRODUCT_NAME = "$(TARGET_NAME)";
774 | SDKROOT = appletvos;
775 | TARGETED_DEVICE_FAMILY = 3;
776 | TVOS_DEPLOYMENT_TARGET = 9.2;
777 | };
778 | name = Release;
779 | };
780 | 2D02E4991E0B4A5E006451C7 /* Debug */ = {
781 | isa = XCBuildConfiguration;
782 | baseConfigurationReference = 69D4C267952EDB5901116B21 /* Pods-BmiCalculatorRNew-tvOSTests.debug.xcconfig */;
783 | buildSettings = {
784 | BUNDLE_LOADER = "$(TEST_HOST)";
785 | CLANG_ANALYZER_NONNULL = YES;
786 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
787 | CLANG_WARN_INFINITE_RECURSION = YES;
788 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
789 | DEBUG_INFORMATION_FORMAT = dwarf;
790 | ENABLE_TESTABILITY = YES;
791 | GCC_NO_COMMON_BLOCKS = YES;
792 | INFOPLIST_FILE = "BmiCalculatorRNew-tvOSTests/Info.plist";
793 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
794 | OTHER_LDFLAGS = (
795 | "$(inherited)",
796 | "-ObjC",
797 | "-lc++",
798 | );
799 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.BmiCalculatorRNew-tvOSTests";
800 | PRODUCT_NAME = "$(TARGET_NAME)";
801 | SDKROOT = appletvos;
802 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BmiCalculatorRNew-tvOS.app/BmiCalculatorRNew-tvOS";
803 | TVOS_DEPLOYMENT_TARGET = 10.1;
804 | };
805 | name = Debug;
806 | };
807 | 2D02E49A1E0B4A5E006451C7 /* Release */ = {
808 | isa = XCBuildConfiguration;
809 | baseConfigurationReference = 855888BE2F9C2DA8F5FAB453 /* Pods-BmiCalculatorRNew-tvOSTests.release.xcconfig */;
810 | buildSettings = {
811 | BUNDLE_LOADER = "$(TEST_HOST)";
812 | CLANG_ANALYZER_NONNULL = YES;
813 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
814 | CLANG_WARN_INFINITE_RECURSION = YES;
815 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
816 | COPY_PHASE_STRIP = NO;
817 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
818 | GCC_NO_COMMON_BLOCKS = YES;
819 | INFOPLIST_FILE = "BmiCalculatorRNew-tvOSTests/Info.plist";
820 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
821 | OTHER_LDFLAGS = (
822 | "$(inherited)",
823 | "-ObjC",
824 | "-lc++",
825 | );
826 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.BmiCalculatorRNew-tvOSTests";
827 | PRODUCT_NAME = "$(TARGET_NAME)";
828 | SDKROOT = appletvos;
829 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BmiCalculatorRNew-tvOS.app/BmiCalculatorRNew-tvOS";
830 | TVOS_DEPLOYMENT_TARGET = 10.1;
831 | };
832 | name = Release;
833 | };
834 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
835 | isa = XCBuildConfiguration;
836 | buildSettings = {
837 | ALWAYS_SEARCH_USER_PATHS = NO;
838 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
839 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
840 | CLANG_CXX_LIBRARY = "libc++";
841 | CLANG_ENABLE_MODULES = YES;
842 | CLANG_ENABLE_OBJC_ARC = YES;
843 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
844 | CLANG_WARN_BOOL_CONVERSION = YES;
845 | CLANG_WARN_COMMA = YES;
846 | CLANG_WARN_CONSTANT_CONVERSION = YES;
847 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
848 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
849 | CLANG_WARN_EMPTY_BODY = YES;
850 | CLANG_WARN_ENUM_CONVERSION = YES;
851 | CLANG_WARN_INFINITE_RECURSION = YES;
852 | CLANG_WARN_INT_CONVERSION = YES;
853 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
854 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
855 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
856 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
857 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
858 | CLANG_WARN_STRICT_PROTOTYPES = YES;
859 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
860 | CLANG_WARN_UNREACHABLE_CODE = YES;
861 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
862 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
863 | COPY_PHASE_STRIP = NO;
864 | ENABLE_STRICT_OBJC_MSGSEND = YES;
865 | ENABLE_TESTABILITY = YES;
866 | GCC_C_LANGUAGE_STANDARD = gnu99;
867 | GCC_DYNAMIC_NO_PIC = NO;
868 | GCC_NO_COMMON_BLOCKS = YES;
869 | GCC_OPTIMIZATION_LEVEL = 0;
870 | GCC_PREPROCESSOR_DEFINITIONS = (
871 | "DEBUG=1",
872 | "$(inherited)",
873 | );
874 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
875 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
876 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
877 | GCC_WARN_UNDECLARED_SELECTOR = YES;
878 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
879 | GCC_WARN_UNUSED_FUNCTION = YES;
880 | GCC_WARN_UNUSED_VARIABLE = YES;
881 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
882 | MTL_ENABLE_DEBUG_INFO = YES;
883 | ONLY_ACTIVE_ARCH = YES;
884 | SDKROOT = iphoneos;
885 | };
886 | name = Debug;
887 | };
888 | 83CBBA211A601CBA00E9B192 /* Release */ = {
889 | isa = XCBuildConfiguration;
890 | buildSettings = {
891 | ALWAYS_SEARCH_USER_PATHS = NO;
892 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
893 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
894 | CLANG_CXX_LIBRARY = "libc++";
895 | CLANG_ENABLE_MODULES = YES;
896 | CLANG_ENABLE_OBJC_ARC = YES;
897 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
898 | CLANG_WARN_BOOL_CONVERSION = YES;
899 | CLANG_WARN_COMMA = YES;
900 | CLANG_WARN_CONSTANT_CONVERSION = YES;
901 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
902 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
903 | CLANG_WARN_EMPTY_BODY = YES;
904 | CLANG_WARN_ENUM_CONVERSION = YES;
905 | CLANG_WARN_INFINITE_RECURSION = YES;
906 | CLANG_WARN_INT_CONVERSION = YES;
907 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
908 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
909 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
910 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
911 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
912 | CLANG_WARN_STRICT_PROTOTYPES = YES;
913 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
914 | CLANG_WARN_UNREACHABLE_CODE = YES;
915 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
916 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
917 | COPY_PHASE_STRIP = YES;
918 | ENABLE_NS_ASSERTIONS = NO;
919 | ENABLE_STRICT_OBJC_MSGSEND = YES;
920 | GCC_C_LANGUAGE_STANDARD = gnu99;
921 | GCC_NO_COMMON_BLOCKS = YES;
922 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
923 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
924 | GCC_WARN_UNDECLARED_SELECTOR = YES;
925 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
926 | GCC_WARN_UNUSED_FUNCTION = YES;
927 | GCC_WARN_UNUSED_VARIABLE = YES;
928 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
929 | MTL_ENABLE_DEBUG_INFO = NO;
930 | SDKROOT = iphoneos;
931 | VALIDATE_PRODUCT = YES;
932 | };
933 | name = Release;
934 | };
935 | /* End XCBuildConfiguration section */
936 |
937 | /* Begin XCConfigurationList section */
938 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "BmiCalculatorRNewTests" */ = {
939 | isa = XCConfigurationList;
940 | buildConfigurations = (
941 | 00E356F61AD99517003FC87E /* Debug */,
942 | 00E356F71AD99517003FC87E /* Release */,
943 | );
944 | defaultConfigurationIsVisible = 0;
945 | defaultConfigurationName = Release;
946 | };
947 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "BmiCalculatorRNew" */ = {
948 | isa = XCConfigurationList;
949 | buildConfigurations = (
950 | 13B07F941A680F5B00A75B9A /* Debug */,
951 | 13B07F951A680F5B00A75B9A /* Release */,
952 | );
953 | defaultConfigurationIsVisible = 0;
954 | defaultConfigurationName = Release;
955 | };
956 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "BmiCalculatorRNew-tvOS" */ = {
957 | isa = XCConfigurationList;
958 | buildConfigurations = (
959 | 2D02E4971E0B4A5E006451C7 /* Debug */,
960 | 2D02E4981E0B4A5E006451C7 /* Release */,
961 | );
962 | defaultConfigurationIsVisible = 0;
963 | defaultConfigurationName = Release;
964 | };
965 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "BmiCalculatorRNew-tvOSTests" */ = {
966 | isa = XCConfigurationList;
967 | buildConfigurations = (
968 | 2D02E4991E0B4A5E006451C7 /* Debug */,
969 | 2D02E49A1E0B4A5E006451C7 /* Release */,
970 | );
971 | defaultConfigurationIsVisible = 0;
972 | defaultConfigurationName = Release;
973 | };
974 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "BmiCalculatorRNew" */ = {
975 | isa = XCConfigurationList;
976 | buildConfigurations = (
977 | 83CBBA201A601CBA00E9B192 /* Debug */,
978 | 83CBBA211A601CBA00E9B192 /* Release */,
979 | );
980 | defaultConfigurationIsVisible = 0;
981 | defaultConfigurationName = Release;
982 | };
983 | /* End XCConfigurationList section */
984 | };
985 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
986 | }
987 |
--------------------------------------------------------------------------------