asList(
10 | new expo.modules.application.ApplicationPackage(),
11 | new expo.modules.constants.ConstantsPackage(),
12 | new expo.modules.errorrecovery.ErrorRecoveryPackage(),
13 | new expo.modules.filesystem.FileSystemPackage(),
14 | new expo.modules.font.FontLoaderPackage(),
15 | new expo.modules.imageloader.ImageLoaderPackage(),
16 | new expo.modules.keepawake.KeepAwakePackage(),
17 | new expo.modules.splashscreen.SplashScreenPackage(),
18 | new expo.modules.updates.UpdatesPackage()
19 | );
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/components/NewsCard.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import { Text, View, Image, TouchableOpacity} from 'react-native';
3 | import {HomepageStyle} from '../assets/StyleSheet';
4 |
5 |
6 |
7 | const NewsCard = (props) => {
8 | return (
9 | props.navigation.navigate('ViewNews', { postID: props.postId})}>
10 |
11 |
12 |
14 |
15 |
16 | {props.cat}
17 | {props.title}
18 |
19 |
20 |
21 |
22 |
23 | )
24 |
25 | }
26 |
27 | export default NewsCard;
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
11 |
16 |
17 |
--------------------------------------------------------------------------------
/assets/constants.js:
--------------------------------------------------------------------------------
1 | export default {
2 |
3 | // App Settings and Name Constants
4 | APP_NAME: 'The Open News',
5 | RECENT_NEWS_TITLE: 'Recent News',
6 |
7 | // Base URL without trailing slash
8 | APP_BASE_URL: '#',
9 |
10 |
11 | // Setting Page URL's
12 |
13 | TERMS_AND_CON_LINK: '#',
14 | WEBSITE_LINK: '#',
15 | PRIVACY_LINK: '#',
16 | FEEDBACK_LINK: '#',
17 |
18 |
19 | // Light Theme
20 | LIGHT_THEME_BG : "#FFFFFF",
21 | LIGHT_THEME_LIGHT_BLUE_BG : "#EDF2F4",
22 | LIGHT_THEME_PRIMARY_COLOR : "#D7263D",
23 | LIGHT_THEME_TEXT_COLOR : "#676767",
24 | LIGHT_THEME_TEXT_COLOR_DARK : '#26262E',
25 |
26 |
27 | // CARD_BACKGROUND_GREY : "#F4F4F4",
28 |
29 |
30 | // Website Primary Font
31 |
32 | PRIMARY_FONT_LIGHT : "poppins_light",
33 | PRIMARY_FONT_REGULAR : "poppins_regular",
34 | PRIMARY_FONT_MEDIUM : "poppins_medium",
35 | PRIMARY_FONT_REGULAR : "poppins_regular",
36 | PRIMARY_FONT_BOLD : "poppins_bold",
37 | PRIMARY_FONT_SEMI_BOLD : "poppins_semibold",
38 | PRIMARY_FONT_BLACK : "poppins_black",
39 |
40 |
41 |
42 | // Headers
43 |
44 |
45 |
46 | };
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "main": "index.js",
3 | "scripts": {
4 | "android": "react-native run-android",
5 | "ios": "react-native run-ios",
6 | "web": "expo start --web",
7 | "start": "react-native start"
8 | },
9 | "dependencies": {
10 | "@react-native-community/masked-view": "^0.1.11",
11 | "@react-native-firebase/app": "^12.8.0",
12 | "@react-navigation/bottom-tabs": "^6.0.4",
13 | "@react-navigation/drawer": "^6.1.3",
14 | "@react-navigation/native": "^6.0.2",
15 | "@react-navigation/stack": "^6.0.6",
16 | "expo": "~42.0.1",
17 | "expo-splash-screen": "~0.11.2",
18 | "expo-status-bar": "~1.0.4",
19 | "expo-updates": "~0.8.1",
20 | "lottie-react-native": "^4.0.3",
21 | "react": "16.13.1",
22 | "react-dom": "16.13.1",
23 | "react-native": "~0.63.4",
24 | "react-native-gesture-handler": "^1.10.3",
25 | "react-native-push-notification": "^8.1.0",
26 | "react-native-reanimated": "^2.2.0",
27 | "react-native-render-html": "^6.0.5",
28 | "react-native-safe-area-context": "^3.3.0",
29 | "react-native-screens": "^3.4.0",
30 | "react-native-snap-carousel": "^3.9.1",
31 | "react-native-unimodules": "~0.14.5",
32 | "react-native-vector-icons": "^8.1.0",
33 | "react-native-web": "~0.13.12"
34 | },
35 | "devDependencies": {
36 | "@babel/core": "^7.9.0"
37 | },
38 | "private": true
39 | }
40 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | # AndroidX package structure to make it clearer which packages are bundled with the
21 | # Android operating system, and which are packaged with your app's APK
22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
23 | android.useAndroidX=true
24 |
25 | # Automatically convert third-party libraries to use AndroidX
26 | android.enableJetifier=true
27 |
28 | # Version of flipper SDK to use with React Native
29 | FLIPPER_VERSION=0.54.0
30 |
31 | # The hosted JavaScript engine
32 | # Supported values: expo.jsEngine = "hermes" | "jsc"
33 | expo.jsEngine=jsc
34 |
--------------------------------------------------------------------------------
/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.ona",
39 | )
40 |
41 | android_resource(
42 | name = "res",
43 | package = "com.ona",
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 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext {
5 | buildToolsVersion = "29.0.3"
6 | minSdkVersion = 21
7 | compileSdkVersion = 30
8 | targetSdkVersion = 30
9 |
10 | // Section to copy
11 | googlePlayServicesVersion = "+"
12 | firebaseMessagingVersion = "+"
13 | firebaseVersion = "+"
14 |
15 | // Ends section to be copied
16 | }
17 | repositories {
18 | google()
19 | jcenter()
20 | }
21 | dependencies {
22 | classpath("com.android.tools.build:gradle:4.1.0")
23 |
24 | // Code that needs to be copied
25 | classpath("com.android.tools.build:gradle:4.1.0")
26 | classpath('com.google.gms:google-services:4.3.5')
27 | // Ends code that needs to be copied
28 |
29 |
30 | // NOTE: Do not place your application dependencies here; they belong
31 | // in the individual module build.gradle files
32 | }
33 | }
34 |
35 | allprojects {
36 | repositories {
37 | mavenLocal()
38 | maven {
39 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
40 | url("$rootDir/../node_modules/react-native/android")
41 | }
42 | maven {
43 | // Android JSC is installed from npm
44 | url("$rootDir/../node_modules/jsc-android/dist")
45 | }
46 |
47 | google()
48 | jcenter()
49 | maven { url 'https://www.jitpack.io' }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/ona/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.ona;
2 |
3 | import android.os.Bundle;
4 |
5 | import com.facebook.react.ReactActivity;
6 | import com.facebook.react.ReactActivityDelegate;
7 | import com.facebook.react.ReactRootView;
8 | import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
9 |
10 | import expo.modules.splashscreen.singletons.SplashScreen;
11 | import expo.modules.splashscreen.SplashScreenImageResizeMode;
12 |
13 | public class MainActivity extends ReactActivity {
14 | @Override
15 | protected void onCreate(Bundle savedInstanceState) {
16 | // Set the theme to AppTheme BEFORE onCreate to support
17 | // coloring the background, status bar, and navigation bar.
18 | // This is required for expo-splash-screen.
19 | setTheme(R.style.AppTheme);
20 | super.onCreate(null);
21 | // SplashScreen.show(...) has to be called after super.onCreate(...)
22 | // Below line is handled by '@expo/configure-splash-screen' command and it's discouraged to modify it manually
23 | SplashScreen.show(this, SplashScreenImageResizeMode.CONTAIN, ReactRootView.class, false);
24 | }
25 |
26 |
27 | /**
28 | * Returns the name of the main component registered from JavaScript.
29 | * This is used to schedule rendering of the component.
30 | */
31 | @Override
32 | protected String getMainComponentName() {
33 | return "main";
34 | }
35 |
36 | @Override
37 | protected ReactActivityDelegate createReactActivityDelegate() {
38 | return new ReactActivityDelegate(this, getMainComponentName()) {
39 | @Override
40 | protected ReactRootView createRootView() {
41 | return new RNGestureHandlerEnabledRootView(MainActivity.this);
42 | }
43 | };
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/screens/home.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { Text, View , SafeAreaView , ScrollView, RefreshControl } from 'react-native';
3 | import HomeSlider from '../components/HomeSlider';
4 | import {HomepageStyle} from '../assets/StyleSheet';
5 | import HomePostsDisplay from '../components/HomePageItemsLoader';
6 | import constants from '../assets/constants';
7 |
8 |
9 | const wait = (timeout) => {
10 | return new Promise(resolve => setTimeout(resolve, timeout));
11 | }
12 |
13 | const Home = ({navigation}) => {
14 |
15 | const [refreshing, setRefreshing] = React.useState(false);
16 |
17 | const onRefresh = React.useCallback(() => {
18 | setRefreshing(true);
19 | wait(2000).then(() => setRefreshing(false));
20 |
21 | }, []);
22 |
23 | return (
24 |
26 |
27 |
32 | }>
33 |
34 | {constants.APP_NAME}
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | {constants.RECENT_NEWS_TITLE}
44 |
45 |
46 |
47 |
48 |
49 |
50 | );
51 | }
52 |
53 | export default Home;
54 |
--------------------------------------------------------------------------------
/screens/settings.js:
--------------------------------------------------------------------------------
1 | import React, {useState} from 'react';
2 | import { Text, View, Button,flex, StyleSheet, Switch, Linking } from 'react-native';
3 | import constants from '../assets/constants';
4 | import {SettingPageStyles} from '../assets/StyleSheet';
5 |
6 | const Settings = ({navigation}) => {
7 | const [isEnabled, setIsEnabled] = useState(false);
8 | const toggleSwitch = () => setIsEnabled(previousState => !previousState);
9 |
10 | return (
11 |
12 |
13 |
14 | Settings
15 |
16 |
17 |
18 | About Us
19 | Linking.openURL(constants.TERMS_AND_CON_LINK)} style={SettingPageStyles.SingleLink}>Terms and Conditions
20 | Linking.openURL(constants.WEBSITE_LINK)} style={SettingPageStyles.SingleLink}>Our Website
21 | Linking.openURL(constants.PRIVACY_LINK)} style={SettingPageStyles.SingleLink}>Privacy Policy
22 | Linking.openURL(constants.FEEDBACK_LINK)} style={SettingPageStyles.SingleLink}>Feedback
23 |
24 |
25 |
26 |
27 | Linking.openURL('#')} style={SettingPageStyles.osNewsStyleHeader}>About Developer
28 | Linking.openURL('#')} style={SettingPageStyles.SingleLink}>About OS News
29 | Linking.openURL('#')} style={SettingPageStyles.SingleLink}>Credits
30 | Linking.openURL('#')} style={SettingPageStyles.SingleLink}>Disclaimer
31 | Linking.openURL('#')} style={SettingPageStyles.SingleLink}>Visit Us
32 |
33 |
34 |
35 |
36 | );
37 | }
38 |
39 |
40 |
41 | export default Settings;
42 |
--------------------------------------------------------------------------------
/screens/categories.js:
--------------------------------------------------------------------------------
1 | import React, {useState, useEffect} from 'react';
2 | import { Text, View, TouchableOpacity, ScrollView, SafeAreaView} from 'react-native';
3 | import constants from '../assets/constants';
4 | import LottieView from 'lottie-react-native';
5 | import {CategoriesStyleSheet} from '../assets/StyleSheet';
6 |
7 | const Categories = ({navigation}) => {
8 | const [categories, setCategories] = useState([])
9 |
10 | useEffect(() => {
11 | loadCategories();
12 | }, [])
13 |
14 |
15 | const loadCategories = async () => {
16 | let myHeaders = new Headers();
17 | myHeaders.set('Cache-Control', 'no-cache');
18 | myHeaders.set('Pragma', 'no-cache');
19 | myHeaders.set('Expires', '0');
20 | const response = await fetch(`${constants.APP_BASE_URL}/wp-json/wp/v2/categories`, {headers: myHeaders});
21 | const data = await response.json();
22 | setCategories(data);
23 |
24 | }
25 |
26 | const DataConstant = categories.map(function(x){
27 | return (
28 | navigation.navigate("CategoryView",{catname: x.name, catid: x.id})} key={x.id} style={CategoriesStyleSheet.TagContainer}>
29 | {x.name}
30 |
31 | )
32 | });
33 |
34 |
35 | return (
36 |
37 |
38 |
39 |
40 |
41 | Categories
42 |
43 |
44 |
45 |
46 |
47 |
48 | {categories.length < 1 ? : DataConstant}
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | );
60 | }
61 |
62 |
63 | export default Categories;
64 |
--------------------------------------------------------------------------------
/ios/ONA/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE)
17 | CFBundleSignature
18 | ????
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | NSAppTransportSecurity
26 |
27 | NSAllowsArbitraryLoads
28 |
29 | NSExceptionDomains
30 |
31 | localhost
32 |
33 | NSExceptionAllowsInsecureHTTPLoads
34 |
35 |
36 |
37 |
38 | UILaunchStoryboardName
39 | SplashScreen
40 | UIRequiredDeviceCapabilities
41 |
42 | armv7
43 |
44 | UISupportedInterfaceOrientations
45 |
46 | UIInterfaceOrientationPortrait
47 | UIInterfaceOrientationLandscapeLeft
48 | UIInterfaceOrientationLandscapeRight
49 |
50 | UIViewControllerBasedStatusBarAppearance
51 |
52 | UIStatusBarStyle
53 | UIStatusBarStyleDefault
54 | UIAppFonts
55 |
56 | AntDesign.ttf
57 | Entypo.ttf
58 | EvilIcons.ttf
59 | Feather.ttf
60 | FontAwesome.ttf
61 | FontAwesome5_Brands.ttf
62 | FontAwesome5_Regular.ttf
63 | FontAwesome5_Solid.ttf
64 | Fontisto.ttf
65 | Foundation.ttf
66 | Ionicons.ttf
67 | MaterialCommunityIcons.ttf
68 | MaterialIcons.ttf
69 | Octicons.ttf
70 | SimpleLineIcons.ttf
71 | Zocial.ttf
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/assets/loading/newsload1.json:
--------------------------------------------------------------------------------
1 | {"v":"4.8.0","meta":{"g":"LottieFiles AE 1.0.0","a":"","k":"","d":"","tc":"#FFFFFF"},"fr":25,"ip":25,"op":57,"w":800,"h":800,"nm":"Loading #1","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.645},"o":{"x":0.571,"y":0},"t":9,"s":[400,400,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.498,"y":1},"o":{"x":0.167,"y":0.279},"t":16.909,"s":[400,345.75,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.587,"y":1},"o":{"x":0.583,"y":0},"t":25,"s":[400,416.734,0],"to":[0,0,0],"ti":[0,0,0]},{"t":30,"s":[400,400,0]}],"ix":2},"a":{"a":0,"k":[-14,22,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[125,125],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.176470592618,0.349019616842,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-14,22],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":125,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"Circle element 1","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[240,400,0],"ix":2},"a":{"a":0,"k":[400,400,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":800,"h":800,"ip":19,"op":144,"st":19,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Circle element 2","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[400,400,0],"ix":2},"a":{"a":0,"k":[400,400,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":800,"h":800,"ip":22,"op":147,"st":22,"bm":0},{"ddd":0,"ind":3,"ty":0,"nm":"Circle element 3","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[560,400,0],"ix":2},"a":{"a":0,"k":[400,400,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":800,"h":800,"ip":25,"op":150,"st":25,"bm":0},{"ddd":0,"ind":4,"ty":0,"nm":"Circle element 1 transparent","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":20,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[240,400,0],"ix":2},"a":{"a":0,"k":[400,400,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":800,"h":800,"ip":22,"op":147,"st":22,"bm":0},{"ddd":0,"ind":5,"ty":0,"nm":"Circle element 2 transparent","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":20,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[400,400,0],"ix":2},"a":{"a":0,"k":[400,400,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":800,"h":800,"ip":25,"op":150,"st":25,"bm":0},{"ddd":0,"ind":6,"ty":0,"nm":"Circle element 3 transparent","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":20,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[560,400,0],"ix":2},"a":{"a":0,"k":[400,400,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":800,"h":800,"ip":28,"op":153,"st":28,"bm":0}],"markers":[]}
--------------------------------------------------------------------------------
/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto init
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto init
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :init
68 | @rem Get command-line arguments, handling Windows variants
69 |
70 | if not "%OS%" == "Windows_NT" goto win9xME_args
71 |
72 | :win9xME_args
73 | @rem Slurp the command line arguments.
74 | set CMD_LINE_ARGS=
75 | set _SKIP=2
76 |
77 | :win9xME_args_slurp
78 | if "x%~1" == "x" goto execute
79 |
80 | set CMD_LINE_ARGS=%*
81 |
82 | :execute
83 | @rem Setup the command line
84 |
85 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
86 |
87 | @rem Execute Gradle
88 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
89 |
90 | :end
91 | @rem End local scope for the variables with windows NT shell
92 | if "%ERRORLEVEL%"=="0" goto mainEnd
93 |
94 | :fail
95 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
96 | rem the _cmd.exe /c_ return code!
97 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
98 | exit /b 1
99 |
100 | :mainEnd
101 | if "%OS%"=="Windows_NT" endlocal
102 |
103 | :omega
104 |
--------------------------------------------------------------------------------
/android/app/src/debug/java/com/ona/ReactNativeFlipper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the LICENSE file in the root
5 | * directory of this source tree.
6 | */
7 | package com.ona;
8 |
9 | import android.content.Context;
10 | import com.facebook.flipper.android.AndroidFlipperClient;
11 | import com.facebook.flipper.android.utils.FlipperUtils;
12 | import com.facebook.flipper.core.FlipperClient;
13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
22 | import com.facebook.react.ReactInstanceManager;
23 | import com.facebook.react.bridge.ReactContext;
24 | import com.facebook.react.modules.network.NetworkingModule;
25 | import okhttp3.OkHttpClient;
26 |
27 | public class ReactNativeFlipper {
28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
29 | if (FlipperUtils.shouldEnableFlipper(context)) {
30 | final FlipperClient client = AndroidFlipperClient.getInstance(context);
31 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
32 | client.addPlugin(new ReactFlipperPlugin());
33 | client.addPlugin(new DatabasesFlipperPlugin(context));
34 | client.addPlugin(new SharedPreferencesFlipperPlugin(context));
35 | client.addPlugin(CrashReporterPlugin.getInstance());
36 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
37 | NetworkingModule.setCustomClientBuilder(
38 | new NetworkingModule.CustomClientBuilder() {
39 | @Override
40 | public void apply(OkHttpClient.Builder builder) {
41 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
42 | }
43 | });
44 | client.addPlugin(networkFlipperPlugin);
45 | client.start();
46 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
47 | // Hence we run if after all native modules have been initialized
48 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
49 | if (reactContext == null) {
50 | reactInstanceManager.addReactInstanceEventListener(
51 | new ReactInstanceManager.ReactInstanceEventListener() {
52 | @Override
53 | public void onReactContextInitialized(ReactContext reactContext) {
54 | reactInstanceManager.removeReactInstanceEventListener(this);
55 | reactContext.runOnNativeModulesQueueThread(
56 | new Runnable() {
57 | @Override
58 | public void run() {
59 | client.addPlugin(new FrescoFlipperPlugin());
60 | }
61 | });
62 | }
63 | });
64 | } else {
65 | client.addPlugin(new FrescoFlipperPlugin());
66 | }
67 | }
68 | }
69 | }
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/ios/ONA.xcodeproj/xcshareddata/xcschemes/ONA.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
53 |
55 |
61 |
62 |
63 |
64 |
70 |
72 |
78 |
79 |
80 |
81 |
83 |
84 |
87 |
88 |
89 |
--------------------------------------------------------------------------------
/ios/ONA/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
21 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/screens/SingleNews.js:
--------------------------------------------------------------------------------
1 | import React, { useState, useEffect} from 'react';
2 | import { Text, View, Image, StyleSheet, Dimensions, ScrollView, TouchableOpacity} from 'react-native';
3 | import Icon from 'react-native-vector-icons/Feather';
4 | import constants from '../assets/constants';
5 | import {NewsPageStyle} from '../assets/StyleSheet';
6 | import LottieView from 'lottie-react-native';
7 |
8 | import { useWindowDimensions } from 'react-native';
9 |
10 |
11 | const dimensions = Dimensions.get('window');
12 |
13 | function SingleNews ({route, navigation}){
14 | const [postData, setPostData] = useState({});
15 | useEffect(() => {
16 | LoadPostData();
17 |
18 | }, [])
19 |
20 |
21 | const LoadPostData = async() => {
22 | let myHeaders = new Headers();
23 | myHeaders.set('Cache-Control', 'no-cache');
24 | myHeaders.set('Pragma', 'no-cache');
25 | myHeaders.set('Expires', '1000');
26 | const response = await fetch(`${constants.APP_BASE_URL}/wp-json/wp/v2/posts?include=${route.params.postID}`, {headers: myHeaders});
27 | const data = await response.json();
28 | setPostData(data);
29 |
30 | }
31 |
32 | const { Width } = useWindowDimensions();
33 |
34 | if(postData.length > 0 )
35 | {
36 | const regex = /(<([^>]+)>)/ig;
37 | const result = postData[0].content.rendered.replace(regex, '');
38 |
39 | return(
40 |
41 | { navigation.goBack(null) }}
43 | style={{
44 | position: 'absolute',
45 | backgroundColor: constants.LIGHT_THEME_BG,
46 | margin: 10,
47 | zIndex: 1,
48 | height: 40,
49 | width: 40,
50 | borderRadius: 20,
51 | padding: 5,
52 |
53 | }}>
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
66 |
67 |
68 |
69 |
70 | {/* Travel */}
71 |
72 |
73 | {postData[0].title.rendered}
74 |
75 |
76 | {postData[0].date_gmt}
77 |
78 | {result}
79 |
80 |
81 |
82 |
83 |
84 |
85 | );
86 | }else{
87 | return(
88 |
89 |
90 |
91 |
92 |
93 |
94 | );
95 | }
96 | }
97 |
98 | export default SingleNews
--------------------------------------------------------------------------------
/NotificationManager.js:
--------------------------------------------------------------------------------
1 | import React, {Component} from 'react';
2 | import PushNotification from 'react-native-push-notification';
3 |
4 | class NotificationManager {
5 | configure = () => {
6 |
7 | // Must be outside of any component LifeCycle (such as `componentDidMount`).
8 | PushNotification.configure({
9 | // (optional) Called when Token is generated (iOS and Android)
10 | onRegister: function (token) {
11 | console.log('TOKEN:', token);
12 | },
13 |
14 | // (required) Called when a remote is received or opened, or local notification is opened
15 | onNotification: function (notification) {
16 |
17 | console.log('NOTIFICATION:', notification);
18 |
19 |
20 |
21 | // process the notification
22 | // (required) Called when a remote is received or opened, or local notification is opened
23 | },
24 |
25 | // (optional) Called when Registered Action is pressed and invokeApp is false, if true onNotification will be called (Android)
26 | onAction: function (notification) {
27 | console.log('ACTION:', notification.action);
28 | console.log('NOTIFICATION:', notification);
29 | // process the action
30 | },
31 |
32 | // (optional) Called when the user fails to register for remote notifications. Typically occurs when APNS is having issues, or the device is a simulator. (iOS)
33 | onRegistrationError: function (err) {
34 | console.error(err.message, err);
35 | },
36 |
37 | // IOS ONLY (optional): default: all - Permissions to register.
38 | permissions: {
39 | alert: true,
40 | badge: true,
41 | sound: true,
42 | },
43 |
44 | // Should the initial notification be popped automatically
45 | // default: true
46 |
47 |
48 | popInitialNotification: true,
49 |
50 | /**
51 | * (optional) default: true
52 | * - Specified if permissions (ios) and token (android and ios) will requested or not,
53 | * - if not, you must call PushNotificationsHandler.requestPermissions() later
54 | * - if you are not using remote notification or do not have Firebase installed, use this:
55 | * requestPermissions: Platform.OS === 'ios'
56 | */
57 |
58 |
59 |
60 | requestPermissions: true,
61 | });
62 |
63 | PushNotification.createChannel(
64 | {
65 | channelId: 'fcm_default_channel', // (required)
66 | channelName: 'fcm_default_channel', // (required)
67 | playSound: true, // (optional) default: true
68 | soundName: "default", // (optional) See `soundName` parameter of `localNotification` function
69 | vibrate: true,
70 |
71 | },
72 |
73 | (created) => console.log(`createChannel returned '${created}`),
74 | );
75 |
76 |
77 |
78 | // For In App Notifications
79 | function showNotification(title, message, id, vibrate, sound, ongoing=false){
80 | PushNotification.localNotification({
81 | /* Android Only Properties */
82 | id: id,
83 | autoCancel: true,
84 | vibrate: vibrate,
85 | vibration: vibrate ? 300 : undefined,
86 | priority: "high",
87 | visibility: "public",
88 | importance: "high",
89 | ongoing: ongoing,
90 | largeIcon: 'ic_stat_asset' || 'ic_stat_asset',
91 | smallIcon: 'ic_stat_asset' || 'ic_stat_asset',
92 | /* iOS only properties */
93 | //alertAction: 'view',
94 | userInfo: {id: id}, // required for ios local notification
95 |
96 | /* iOS and Android properties */
97 | title: title,
98 | message: message, // (required)
99 | playSound: sound,
100 | soundName: sound ? 'default' : undefined,
101 | // number: number // silly library, iOS requires number, while android string...
102 |
103 | });
104 |
105 | }
106 |
107 |
108 | }
109 | }
110 |
111 | export const notificationManager = new NotificationManager();
112 |
--------------------------------------------------------------------------------
/components/HomeSlider.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import { Text, View, Image, flex} from 'react-native';
3 | import Carousel from 'react-native-snap-carousel';
4 | import constants from '../assets/constants';
5 | import LottieView from 'lottie-react-native';
6 |
7 |
8 | class HomeSlider extends Component{
9 |
10 | constructor(props){
11 | super(props);
12 | this.state = {
13 |
14 | activeIndex:0,
15 | posts: {},
16 | loading: true,
17 |
18 | }
19 |
20 | }
21 |
22 | componentDidMount(){
23 |
24 | this.getData();
25 |
26 | this.interval = setInterval(this.getData, 300000);
27 |
28 | // console.log( this.props.refreshing);
29 |
30 | }
31 |
32 | componentDidUpdate(){
33 | if(this.props.refreshing){
34 | this.getData();
35 | }
36 |
37 | }
38 |
39 | getData = () => {
40 | let myHeaders = new Headers();
41 | myHeaders.set('Cache-Control', 'no-cache');
42 | myHeaders.set('Pragma', 'no-cache');
43 | myHeaders.set('Expires', '0');
44 |
45 | fetch(`${constants.APP_BASE_URL}/wp-json/wp/v2/posts?_fields=id,title,featured_media_src_url,featured_media`, {headers: myHeaders})
46 | .then((response) => response.json())
47 | .then((data => {
48 |
49 | this.setState({
50 | posts: data,
51 | loading: false,
52 | })
53 | }
54 | ))
55 |
56 | }
57 |
58 |
59 | renderItem = ({item,index}) => {
60 | return (
61 |
62 |
81 |
82 |
85 |
86 | this.props.navigation.navigate('ViewNews', { postID: item.id})} style={{fontSize: 14, padding: 12 ,marginTop: 20, fontFamily: 'poppins_semibold'}}>{item.title}
87 |
88 |
89 | )
90 | }
91 | render(){
92 |
93 |
94 | if(this.state.loading){
95 |
96 | return(
103 | )
104 |
105 | }else{
106 |
107 |
108 |
109 | const carouselItems = this.state.posts.map(function(x){
110 | return (
111 | {
112 | id: x.id,
113 | title: x.title.rendered,
114 | illustration: x.featured_media_src_url,
115 |
116 | }
117 | )
118 | })
119 |
120 | return(
121 |
122 | this.carousel = ref}
131 | data={carouselItems}
132 | sliderWidth={100}
133 | itemWidth={350}
134 | renderItem={this.renderItem}
135 | onSnapToItem = { index => this.setState({activeIndex:index}) } />
136 |
137 | )
138 | }
139 |
140 |
141 |
142 |
143 | }
144 |
145 | }
146 |
147 | export default HomeSlider;
148 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/ona/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.ona;
2 |
3 | import android.app.Application;
4 | import android.content.Context;
5 | import android.net.Uri;
6 |
7 | import com.facebook.react.PackageList;
8 | import com.facebook.react.ReactApplication;
9 | import com.facebook.react.ReactInstanceManager;
10 | import com.facebook.react.ReactNativeHost;
11 | import com.facebook.react.ReactPackage;
12 | import com.facebook.react.shell.MainReactPackage;
13 | import com.facebook.soloader.SoLoader;
14 | import com.ona.generated.BasePackageList;
15 |
16 | import org.unimodules.adapters.react.ReactAdapterPackage;
17 | import org.unimodules.adapters.react.ModuleRegistryAdapter;
18 | import org.unimodules.adapters.react.ReactModuleRegistryProvider;
19 | import org.unimodules.core.interfaces.Package;
20 | import org.unimodules.core.interfaces.SingletonModule;
21 | import expo.modules.updates.UpdatesController;
22 |
23 | import com.facebook.react.bridge.JSIModulePackage;
24 | import com.swmansion.reanimated.ReanimatedJSIModulePackage;
25 |
26 | import java.lang.reflect.InvocationTargetException;
27 | import java.util.Arrays;
28 | import java.util.List;
29 | import javax.annotation.Nullable;
30 |
31 | public class MainApplication extends Application implements ReactApplication {
32 | private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(
33 | new BasePackageList().getPackageList()
34 | );
35 |
36 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
37 | @Override
38 | public boolean getUseDeveloperSupport() {
39 | return BuildConfig.DEBUG;
40 | }
41 |
42 | @Override
43 | protected List getPackages() {
44 | List packages = new PackageList(this).getPackages();
45 | packages.add(new ModuleRegistryAdapter(mModuleRegistryProvider));
46 | return packages;
47 | }
48 |
49 | @Override
50 | protected String getJSMainModuleName() {
51 | return "index";
52 | }
53 |
54 | @Override
55 | protected JSIModulePackage getJSIModulePackage() {
56 | return new ReanimatedJSIModulePackage();
57 | }
58 |
59 | @Override
60 | protected @Nullable String getJSBundleFile() {
61 | if (BuildConfig.DEBUG) {
62 | return super.getJSBundleFile();
63 | } else {
64 | return UpdatesController.getInstance().getLaunchAssetFile();
65 | }
66 | }
67 |
68 | @Override
69 | protected @Nullable String getBundleAssetName() {
70 | if (BuildConfig.DEBUG) {
71 | return super.getBundleAssetName();
72 | } else {
73 | return UpdatesController.getInstance().getBundleAssetName();
74 | }
75 | }
76 | };
77 |
78 | @Override
79 | public ReactNativeHost getReactNativeHost() {
80 | return mReactNativeHost;
81 | }
82 |
83 | @Override
84 | public void onCreate() {
85 | super.onCreate();
86 | SoLoader.init(this, /* native exopackage */ false);
87 |
88 | if (!BuildConfig.DEBUG) {
89 | UpdatesController.initialize(this);
90 | }
91 |
92 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
93 | }
94 |
95 | /**
96 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like
97 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
98 | *
99 | * @param context
100 | * @param reactInstanceManager
101 | */
102 | private static void initializeFlipper(
103 | Context context, ReactInstanceManager reactInstanceManager) {
104 | if (BuildConfig.DEBUG) {
105 | try {
106 | /*
107 | We use reflection here to pick up the class that initializes Flipper,
108 | since Flipper library is not available in release mode
109 | */
110 | Class> aClass = Class.forName("com.ona.ReactNativeFlipper");
111 | aClass
112 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
113 | .invoke(null, context, reactInstanceManager);
114 | } catch (ClassNotFoundException e) {
115 | e.printStackTrace();
116 | } catch (NoSuchMethodException e) {
117 | e.printStackTrace();
118 | } catch (IllegalAccessException e) {
119 | e.printStackTrace();
120 | } catch (InvocationTargetException e) {
121 | e.printStackTrace();
122 | }
123 | }
124 | }
125 | }
126 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # ONA - WordPress Android Version
3 | 
4 | .
5 | .
6 |
7 | :exclamation: ** iOS Version of App has not been tested yet.**
8 |
9 |
10 | ## About The App
11 |
12 | ONA or Open News App is an open source React Native Based Application for WordPress News and Blog Websites.
13 |
14 |
15 | ## Features
16 |
17 | * React Native Based
18 | * Clean and Elegent UI
19 | * Firebase Push Notifications
20 | * WordPress REST API
21 | * Separate Categories Section.
22 | * External Links to privacy and other pages.
23 |
24 | 
25 | 
26 | ## How to Run the App
27 |
28 | To Run or test the app on your PC.
29 |
30 | 1. Download the repository into your PC.
31 | 2. Run `npm install` in the folder, this will install all npm required packages.
32 | 3. To Run the app `npx react-native run-android`
33 |
34 | # Setting Up Your App.
35 |
36 |
37 |
38 | ## 1. WordPress Requirements
39 |
40 | 1. To connect the app with your wordpress website you must have working REST API on your website.
41 |
42 | 2. Download and Activate `REST API Featured Image`Plugin on your WordPress Image. [Plugin Link](https://wordpress.org/plugins/rest-api-featured-image/)
43 |
44 |
45 | ## 2. Building Your App
46 |
47 | 1. Start a new react native project.
48 | 2. Delete `node modules` folder from your newly created project.
49 | 3. Copy `Packages`from ONA `package.json`and run `npm install`inside your newly created project.
50 |
51 | > Now we need to setup things inside `android` folder of your new project.
52 |
53 | ## 3. Setting up AndroidManifest file.
54 |
55 | 1. From `ONA/android/app/main/android/AndroidManifest` copy the lines mentioned within `section that needs to be copied` into your own newly created projects `android/app/main/android/AndroidManifest`.
56 |
57 | ## 4. Setting up `build.gradle` file.
58 |
59 | 1. Go to `android/build.gradle`file of `ONA` and copy the lines of code mentioned in file within`ext` and `dependencies`
60 | 2. Go to `android/app/build.gradle`and copy the lines mentioned within `dependencies` and `282-232`.
61 |
62 | ## 5. Setting Up Firebase and Other Additional Settings.
63 |
64 | 1. Go to Firebase console, Create a new project.
65 | 2. Click on `Android`, fill up the details like Project name, Package name etc.
66 | 3. Register and Download the Config file `google-services.json`
67 | 4. In `android/app` folder replace `google-services`with your `google-services`file.
68 |
69 | ## 6. Setting Up Values Colors and Strings.
70 |
71 | In `ONA\android\app\src\main\res\values\`
72 |
73 | 1. In `values\strings`
74 | 2. Add the `fcm_default_channel`to your strings file below your app name.
75 | 3. In `values\colors` add below mentioned code.
76 |
77 | ## 7. Copying the `assests` folder
78 |
79 | The assets folder contains fonts and the icon files that your app needs to run, Copy the `ONA\android\app\src\main\assets`to your project folder.
80 |
81 | ## 8. Adding Icons
82 |
83 | In `ONA\android\app\src\main\res` file add all sizes of icons that are being used in the application. You can generate them using Android Studio or Online tools.
84 |
85 | ## 9. Final
86 | Run `react-native-link` command inside your project directory.
87 |
88 | Your App Is Ready.
89 |
90 |
91 | # Additional Guides
92 |
93 |
94 | ## Connecting with your Website and Changing App Name
95 |
96 | 1. Go to `constants.js` file in `assets` folder of the app.
97 | 2. Change the value of `APP_BASE_URL`to URL of your website, `Note: Do not add / at the end of the URL.`
98 | 3. To change name of the app, change the value of `APP_NAME`.
99 |
100 |
101 | ## Settings Page Links Change
102 |
103 | In `constants.js`file, change the values of below given constant values.
104 |
105 | TERMS_AND_CON_LINK: '#',
106 | WEBSITE_LINK: '#',
107 | PRIVACY_LINK: '#',
108 | FEEDBACK_LINK: '#',
109 |
110 |
111 | ## Changing Lottie Animation
112 |
113 | > OSN comes with Lottie animations, to change the loading animation of the app, Go to the lottie website and download the animation you want in JSON format first.
114 |
115 | Once you have downloaded the JSON file, Go to `assets/loading`file and replace `newsload1` with the file you download, keep the filename to `newsload1`.
116 |
117 | ## App Credits
118 |
119 | React Native: [Vikas Bukhari](https://github.com/vikasbukhari/)
120 | WordPress API's: [Nasir Khan](https://github.com/nasir22)
121 |
--------------------------------------------------------------------------------
/ios/ONA/SplashScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
31 |
39 |
40 |
41 |
42 |
53 |
54 |
55 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
10 |
12 |
14 |
16 |
18 |
20 |
22 |
24 |
26 |
28 |
30 |
32 |
34 |
36 |
38 |
40 |
42 |
44 |
46 |
48 |
50 |
52 |
54 |
56 |
58 |
60 |
62 |
64 |
66 |
68 |
70 |
72 |
74 |
75 |
--------------------------------------------------------------------------------
/ios/ONA/AppDelegate.m:
--------------------------------------------------------------------------------
1 | #import "AppDelegate.h"
2 |
3 | #import
4 | #import
5 | #import
6 | #import
7 |
8 | #import
9 | #import
10 | #import
11 | #import
12 | #import
13 |
14 | #if defined(FB_SONARKIT_ENABLED) && __has_include()
15 | #import
16 | #import
17 | #import
18 | #import
19 | #import
20 | #import
21 |
22 | static void InitializeFlipper(UIApplication *application) {
23 | FlipperClient *client = [FlipperClient sharedClient];
24 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
25 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
26 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
27 | [client addPlugin:[FlipperKitReactPlugin new]];
28 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
29 | [client start];
30 | }
31 | #endif
32 |
33 | @interface AppDelegate ()
34 |
35 | @property (nonatomic, strong) UMModuleRegistryAdapter *moduleRegistryAdapter;
36 | @property (nonatomic, strong) NSDictionary *launchOptions;
37 |
38 | @end
39 |
40 | @implementation AppDelegate
41 |
42 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
43 | {
44 | #if defined(FB_SONARKIT_ENABLED) && __has_include()
45 | InitializeFlipper(application);
46 | #endif
47 |
48 | self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]];
49 | self.launchOptions = launchOptions;
50 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
51 | #ifdef DEBUG
52 | [self initializeReactNativeApp];
53 | #else
54 | EXUpdatesAppController *controller = [EXUpdatesAppController sharedInstance];
55 | controller.delegate = self;
56 | [controller startAndShowLaunchScreen:self.window];
57 | #endif
58 |
59 | [super application:application didFinishLaunchingWithOptions:launchOptions];
60 |
61 | return YES;
62 | }
63 |
64 | - (RCTBridge *)initializeReactNativeApp
65 | {
66 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:self.launchOptions];
67 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"main" initialProperties:nil];
68 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
69 |
70 | UIViewController *rootViewController = [UIViewController new];
71 | rootViewController.view = rootView;
72 | self.window.rootViewController = rootViewController;
73 | [self.window makeKeyAndVisible];
74 |
75 | return bridge;
76 | }
77 |
78 | - (NSArray> *)extraModulesForBridge:(RCTBridge *)bridge
79 | {
80 | NSArray> *extraModules = [_moduleRegistryAdapter extraModulesForBridge:bridge];
81 | // If you'd like to export some custom RCTBridgeModules that are not Expo modules, add them here!
82 | return extraModules;
83 | }
84 |
85 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
86 | #ifdef DEBUG
87 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
88 | #else
89 | return [[EXUpdatesAppController sharedInstance] launchAssetUrl];
90 | #endif
91 | }
92 |
93 | - (void)appController:(EXUpdatesAppController *)appController didStartWithSuccess:(BOOL)success {
94 | appController.bridge = [self initializeReactNativeApp];
95 | EXSplashScreenService *splashScreenService = (EXSplashScreenService *)[UMModuleRegistryProvider getSingletonModuleForClass:[EXSplashScreenService class]];
96 | [splashScreenService showSplashScreenFor:self.window.rootViewController];
97 | }
98 |
99 | // Linking API
100 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options {
101 | return [RCTLinkingManager application:application openURL:url options:options];
102 | }
103 |
104 | // Universal Links
105 | - (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandler {
106 | return [RCTLinkingManager application:application
107 | continueUserActivity:userActivity
108 | restorationHandler:restorationHandler];
109 | }
110 |
111 | @end
112 |
--------------------------------------------------------------------------------
/components/HomePageItemsLoader.js:
--------------------------------------------------------------------------------
1 | import React, { useState, useEffect } from 'react';
2 | import { Text, View, RefreshControl } from 'react-native';
3 | import { ScrollView, TouchableOpacity } from 'react-native-gesture-handler';
4 | import constants from '../assets/constants';
5 | import NewsCard from './NewsCard';
6 | import LottieView from 'lottie-react-native';
7 |
8 |
9 |
10 | function HomePostsDisplay({navigation , refreshing}) {
11 |
12 | const [posts, setPosts] = useState([])
13 | const [pageCount, UpdatePageCount] = useState(1)
14 | const [HomePageLimit, SetHomePageLimit] = useState(0)
15 |
16 |
17 | useEffect(() => {
18 |
19 | loadData();
20 |
21 | const interval= setInterval(()=>{
22 |
23 | loadData();
24 | }, 300000)
25 | return()=> clearInterval(interval)
26 | }, [])
27 |
28 | useEffect(() => {
29 | if (!posts || refreshing) {
30 | loadData();
31 | }
32 | }, [posts, refreshing]);
33 |
34 |
35 | const loadData = async () => {
36 |
37 | let myHeaders = new Headers();
38 | myHeaders.set('Cache-Control', 'no-cache');
39 | myHeaders.set('Pragma', 'no-cache');
40 | myHeaders.set('Expires', '0');
41 | const response = await fetch(`${constants.APP_BASE_URL}/wp-json/wp/v2/posts?per_page=4&page=${pageCount}&_fields=id,title,featured_media_src_url,featured_media,_links,_embedded&_embed`, {headers: myHeaders});
42 | const data = await response.json();
43 | setPosts(data);
44 |
45 | }
46 |
47 |
48 | const UpdateCards = async () => {
49 |
50 | let myHeaders = new Headers();
51 | myHeaders.set('Cache-Control', 'no-cache');
52 | myHeaders.set('Pragma', 'no-cache');
53 | myHeaders.set('Expires', '0');
54 |
55 | const newCount = pageCount + 1;
56 | const response = await fetch(`${constants.APP_BASE_URL}/wp-json/wp/v2/posts?per_page=4&page=${newCount}&_fields=id,title,featured_media_src_url,featured_media,_links,_embedded&_embed`, {headers: myHeaders});
57 | const data = await response.json();
58 |
59 |
60 |
61 |
62 | if(data.code === 'rest_post_invalid_page_number') {
63 | let code = 1
64 | SetHomePageLimit(code)
65 | }else{
66 | SetHomePageLimit(0)
67 | }
68 |
69 | if(HomePageLimit == 0){
70 | const updatedData = [...posts, ...data];
71 | UpdatePageCount(newCount);
72 | setPosts(updatedData);
73 | }
74 | }
75 |
76 | if(posts.length > 1){
77 | return (
78 |
79 |
80 |
81 | {
82 | posts.map(function(x){
83 | return(
84 |
93 |
94 | )
95 | })}
96 |
97 |
98 |
99 | {HomePageLimit < 1 ?
100 |
106 |
107 | UpdateCards()} style={{
108 | backgroundColor: constants.LIGHT_THEME_PRIMARY_COLOR,
109 | width: 100,
110 | textAlign: 'center',
111 | padding: 10,
112 | color: '#FFFFFF',
113 | fontFamily: constants.PRIMARY_FONT_SEMI_BOLD,
114 | borderRadius: 10,
115 | marginBottom: 20,
116 | shadowColor: 'white',
117 | shadowOffset: {
118 | width: 0,
119 | height: 12,
120 | },
121 | shadowOpacity: 0.58,
122 | shadowRadius: 16.00,
123 | elevation: 9,
124 |
125 | }}>Load More
126 |
127 | :No more posts to display}
133 |
134 |
135 |
136 | )
137 |
138 | }else{
139 | return(
140 |
141 |
142 |
143 | )
144 | }
145 |
146 | }
147 |
148 |
149 | export default HomePostsDisplay;
150 |
--------------------------------------------------------------------------------
/screens/CategoryView.js:
--------------------------------------------------------------------------------
1 | import React,{ useState, useEffect } from 'react';
2 | import { Text, View, TouchableOpacity, RefreshControl} from 'react-native';
3 | import { ScrollView } from 'react-native-gesture-handler';
4 | import NewsCard from '../components/NewsCard';
5 | import LottieView from 'lottie-react-native';
6 | import constants from '../assets/constants';
7 |
8 |
9 | const wait = (timeout) => {
10 | return new Promise(resolve => setTimeout(resolve, timeout));
11 | }
12 |
13 |
14 | const ViewCategory = ({route,navigation}) => {
15 |
16 | const [AllPostData, SetPostData] = useState([])
17 | const [PostPageCount, SetPostPageCount] = useState(1)
18 | const [PostLimitReached, SetLimitReached] = useState(0)
19 |
20 | const [refreshing, setRefreshing] = useState(false);
21 |
22 | const onRefresh = React.useCallback(() => {
23 |
24 | setRefreshing(true);
25 | LoadPostData();
26 | wait(2000).then(() => setRefreshing(false));
27 |
28 | }, []);
29 |
30 | useEffect(() => {
31 |
32 | LoadPostData();
33 |
34 | }, [])
35 |
36 |
37 | const LoadPostData = async() => {
38 | let myHeaders = new Headers();
39 | myHeaders.set('Cache-Control', 'no-cache');
40 | myHeaders.set('Pragma', 'no-cache');
41 | myHeaders.set('Expires', '0');
42 | const response = await fetch(`${constants.APP_BASE_URL}/wp-json/wp/v2/posts?categories=${route.params.catid}&per_page=2&page=${PostPageCount}`, {headers: myHeaders});
43 | const data = await response.json();
44 | SetPostData(data);
45 |
46 | }
47 |
48 | const UpdateCards = async () => {
49 |
50 | let newCount = PostPageCount + 1;
51 | const response = await fetch(`${constants.APP_BASE_URL}/wp-json/wp/v2/posts?categories=${route.params.catid}&per_page=2&page=${newCount}`);
52 | const data = await response.json();
53 |
54 |
55 | if(data.code === 'rest_post_invalid_page_number') {
56 | let code = 1
57 | SetLimitReached(code)
58 | }else{
59 | SetLimitReached(0)
60 | }
61 |
62 | if(PostLimitReached == 0){
63 | const updatedData = [...AllPostData, ...data];
64 | SetPostPageCount(newCount);
65 | SetPostData(updatedData);
66 | }
67 |
68 | }
69 |
70 |
71 | const DataConstant = AllPostData.map(function(x){
72 | return (
73 |
74 |
83 | )
84 |
85 | });
86 |
87 | return (
88 |
94 | }>
95 |
96 |
97 |
105 | {route.params.catname}
106 |
107 |
108 | {AllPostData.length > 0 ?
109 |
110 |
111 |
112 | {DataConstant}
113 |
114 | {PostLimitReached < 1 ?
115 |
120 | UpdateCards()} style={{
121 | backgroundColor: '#D7263D',
122 | width: 100,
123 | textAlign: 'center',
124 | padding: 10,
125 | color: '#FFFFFF',
126 | fontFamily: constants.PRIMARY_FONT_MEDIUM,
127 | borderRadius: 10,
128 | marginBottom: 20,
129 | shadowColor: 'white',
130 | shadowOffset: {
131 | width: 0,
132 | height: 12,
133 | },
134 | shadowOpacity: 0.58,
135 | shadowRadius: 16.00,
136 | elevation: 9,
137 |
138 | }}>Load More
139 |
140 |
141 | // Else
142 | : No more posts to display}
150 |
151 | : }
152 |
153 |
154 |
155 |
156 | );
157 | }
158 |
159 | export default ViewCategory;
160 |
--------------------------------------------------------------------------------
/assets/StyleSheet.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { StyleSheet , flex} from 'react-native';
3 | import constants from '../assets/constants';
4 |
5 |
6 | const HomepageStyle = StyleSheet.create({
7 |
8 | RecentNewsContainer: {
9 | padding: 10,
10 | height: '100%',
11 | backgroundColor: constants.LIGHT_THEME_BG,
12 | },
13 |
14 | RecentNewsTitle: {
15 | color: constants.LIGHT_THEME_TEXT_COLOR_DARK,
16 | fontSize: 24,
17 | fontFamily: constants.PRIMARY_FONT_BOLD,
18 | marginBottom: 20,
19 | marginTop: 30,
20 | padding: 5,
21 | },
22 |
23 | FullContainer :{
24 | backgroundColor: constants.LIGHT_THEME_BG,
25 | },
26 |
27 | CardContainer : {
28 | display: flex,
29 | flexDirection: 'row',
30 | padding: 15,
31 | borderRadius: 10,
32 | marginBottom: 20,
33 | },
34 |
35 | CardImage: {
36 | height: 120,
37 | width: 120,
38 | borderRadius: 10,
39 | },
40 |
41 | CardContainerRight: {
42 | display: flex,
43 | paddingLeft: 20,
44 | paddingTop: 20,
45 | flexShrink: 1,
46 | },
47 |
48 | CardTag: {
49 | marginBottom: 4,
50 | fontSize: 16,
51 | color: constants.LIGHT_THEME_PRIMARY_COLOR,
52 | fontFamily: constants.PRIMARY_FONT_MEDIUM
53 | },
54 |
55 | CardHeadline: {
56 | fontSize: 14,
57 | fontFamily: constants.PRIMARY_FONT_MEDIUM,
58 | lineHeight: 22,
59 | color: constants.LIGHT_THEME_TEXT_COLOR_DARK,
60 | },
61 |
62 | AppTitle: {
63 | fontFamily: constants.PRIMARY_FONT_BLACK,
64 | fontSize: 18,
65 | padding: 1,
66 | }
67 |
68 | });
69 |
70 | const CategoriesStyleSheet = StyleSheet.create({
71 |
72 | CategoryPage: {
73 | backgroundColor: constants.LIGHT_THEME_LIGHT_BLUE_BG,
74 | height: '100%',
75 | },
76 |
77 | AllCategorieTags: {
78 |
79 | display: flex,
80 | flexWrap: 'wrap',
81 | flexDirection: 'row',
82 | },
83 |
84 | heading :{
85 | marginTop: 22,
86 | textAlign: 'center',
87 | fontFamily: constants.PRIMARY_FONT_BOLD,
88 | fontSize: 24,
89 | marginBottom: 40,
90 | },
91 |
92 | TagContainer :{
93 | borderRadius: 10,
94 | flexBasis: '40%',
95 | backgroundColor: constants.LIGHT_THEME_BG,
96 | margin: 18,
97 | padding: 20,
98 | shadowColor: constants.LIGHT_THEME_BG,
99 | shadowOffset: {
100 | width: 0,
101 | height: 12,
102 | },
103 | shadowOpacity: 0.58,
104 | shadowRadius: 16.00,
105 | elevation: 9,
106 | // width: 130,
107 |
108 |
109 | },
110 |
111 | TagText: {
112 | fontFamily: constants.PRIMARY_FONT_SEMI_BOLD,
113 | fontSize: 14,
114 | color: constants.LIGHT_THEME_PRIMARY_COLOR,
115 | textAlign: 'center'
116 | }
117 |
118 |
119 | });
120 |
121 |
122 | const NewsPageStyle = StyleSheet.create({
123 |
124 | TextViewContainer: {
125 | backgroundColor: constants.LIGHT_THEME_BG,
126 | borderTopLeftRadius: 50,
127 | borderTopRightRadius: 50,
128 | marginTop: -40,
129 | padding: 30,
130 | shadowColor: constants.CARD_BACKGROUND_GREY,
131 | shadowOffset: {
132 | width: 0,
133 | height: 12,
134 | },
135 | shadowOpacity: 0.58,
136 | shadowRadius: 16.00,
137 |
138 | elevation: 24,
139 | },
140 |
141 | TextTag:{
142 | marginBottom: 20,
143 | fontSize: 16,
144 | color: constants.LIGHT_THEME_PRIMARY_COLOR,
145 | fontFamily: constants.PRIMARY_FONT_MEDIUM,
146 | },
147 |
148 | TitleTag :{
149 | marginBottom: 20,
150 | fontSize: 18,
151 | fontFamily: constants.PRIMARY_FONT_SEMI_BOLD,
152 | color: constants.LIGHT_THEME_TEXT_COLOR_DARK,
153 | },
154 |
155 | MetaTag: {
156 | fontFamily: constants.PRIMARY_FONT_LIGHT,
157 | color: constants.LIGHT_THEME_TEXT_COLOR,
158 | marginBottom: 20,
159 | },
160 |
161 | ArticleText: {
162 | fontFamily: constants.PRIMARY_FONT_REGULAR,
163 | fontSize: 16,
164 | color: constants.LIGHT_THEME_TEXT_COLOR,
165 | lineHeight: 26,
166 |
167 | }
168 |
169 |
170 | });
171 |
172 |
173 |
174 | const SettingPageStyles = StyleSheet.create({
175 | HeadSetting :{
176 | marginTop: 20,
177 | textAlign: 'center',
178 | fontFamily: 'poppins_bold',
179 | fontSize: 20,
180 | marginBottom: 40,
181 | },
182 |
183 | SettingSingle :{
184 | display: flex,
185 | flexDirection: 'row',
186 | flexWrap:'wrap',
187 | padding: 20,
188 | borderBottomWidth: 0.2,
189 | borderBottomColor: 'grey',
190 | flexGrow: 1,
191 |
192 | },
193 |
194 | SettingSingleTitle: {
195 | fontFamily: 'poppins_medium',
196 | fontSize: 18,
197 | flexGrow: 6,
198 |
199 | },
200 |
201 | osNewsStyleHeader: {
202 | fontFamily: 'poppins_bold',
203 | fontSize: 18,
204 | margin: 12,
205 |
206 | },
207 |
208 | SettingSingleIcon:{
209 | flexGrow: 1,
210 | padding: 2,
211 |
212 | },
213 |
214 | SettingSingleButton:{
215 | flexGrow: 3,
216 | },
217 |
218 | LinksSettings:{
219 | marginTop: 8,
220 | flexGrow: 3,
221 | padding: 6,
222 | },
223 |
224 | SingleLink: {
225 | fontFamily: 'poppins_regular',
226 | fontSize: 16,
227 | margin: 10,
228 | },
229 | osNewsStyle: {
230 |
231 | padding: 5,
232 | }
233 |
234 | });
235 |
236 |
237 |
238 | export {HomepageStyle, CategoriesStyleSheet,NewsPageStyle ,SettingPageStyles};
--------------------------------------------------------------------------------
/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | #
4 | # Copyright 2015 the original author or authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | ##
21 | ## Gradle start up script for UN*X
22 | ##
23 | ##############################################################################
24 |
25 | # Attempt to set APP_HOME
26 | # Resolve links: $0 may be a link
27 | PRG="$0"
28 | # Need this for relative symlinks.
29 | while [ -h "$PRG" ] ; do
30 | ls=`ls -ld "$PRG"`
31 | link=`expr "$ls" : '.*-> \(.*\)$'`
32 | if expr "$link" : '/.*' > /dev/null; then
33 | PRG="$link"
34 | else
35 | PRG=`dirname "$PRG"`"/$link"
36 | fi
37 | done
38 | SAVED="`pwd`"
39 | cd "`dirname \"$PRG\"`/" >/dev/null
40 | APP_HOME="`pwd -P`"
41 | cd "$SAVED" >/dev/null
42 |
43 | APP_NAME="Gradle"
44 | APP_BASE_NAME=`basename "$0"`
45 |
46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48 |
49 | # Use the maximum available, or set MAX_FD != -1 to use that value.
50 | MAX_FD="maximum"
51 |
52 | warn () {
53 | echo "$*"
54 | }
55 |
56 | die () {
57 | echo
58 | echo "$*"
59 | echo
60 | exit 1
61 | }
62 |
63 | # OS specific support (must be 'true' or 'false').
64 | cygwin=false
65 | msys=false
66 | darwin=false
67 | nonstop=false
68 | case "`uname`" in
69 | CYGWIN* )
70 | cygwin=true
71 | ;;
72 | Darwin* )
73 | darwin=true
74 | ;;
75 | MINGW* )
76 | msys=true
77 | ;;
78 | NONSTOP* )
79 | nonstop=true
80 | ;;
81 | esac
82 |
83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84 |
85 | # 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 or MSYS, switch paths to Windows format before running java
129 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; 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=`expr $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 | exec "$JAVACMD" "$@"
184 |
--------------------------------------------------------------------------------
/navigations/StackNavigator.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { createStackNavigator } from '@react-navigation/stack';
3 | import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
4 | import Icon from 'react-native-vector-icons/Ionicons';
5 | import constants from '../assets/constants';
6 | import { NavigationContainer } from '@react-navigation/native';
7 |
8 | // Screens
9 | import Home from '../screens/home';
10 | import Categories from '../screens/categories';
11 | import Settings from '../screens/settings';
12 | import SingleNews from '../screens/SingleNews';
13 | import HomePostsDisplay from '../components/HomePageItemsLoader';
14 | import HomeSlider from '../components/HomeSlider';
15 | import CategoryView from '../screens/CategoryView';
16 |
17 | // Stacks
18 | const HomeStack = createStackNavigator();
19 | const CategoriesStack = createStackNavigator();
20 | const settingsStack = createStackNavigator();
21 | const DisplayStack = createStackNavigator();
22 | const Tab = createBottomTabNavigator();
23 |
24 | // Home Screen Stack
25 | function HomeStackScreen() {
26 | return (
27 |
28 |
33 |
34 |
39 |
40 |
45 |
46 |
51 |
52 |
53 | );
54 | }
55 |
56 |
57 | // Categories Stack Screen
58 | function CategoriesStackScreen() {
59 | return (
60 |
68 |
69 |
74 |
75 |
80 |
81 |
86 |
87 |
88 | );
89 | }
90 |
91 | // Settings Stack Screen
92 |
93 | function SettingsStackScreen() {
94 | return (
95 |
96 |
101 |
102 | );
103 | }
104 |
105 | // Navigator Export
106 | export default function MyNavigator() {
107 | return (
108 |
109 |
110 |
111 | {/* Tab Navigator Start */}
112 |
113 |
124 |
125 | {
131 | let color = focused ? constants.LIGHT_THEME_PRIMARY_COLOR: constants.LIGHT_THEME_TEXT_COLOR;
132 | let icon = focused ? "ios-grid" : "ios-grid-outline";
133 | let size = focused ? 30 : 24;
134 | return(
135 |
136 | )},
137 | tabBarLabel: 'Categories',
138 | tabBarActiveTintColor: constants.LIGHT_THEME_PRIMARY_COLOR,
139 | tabBarInactiveTintColor: constants.LIGHT_THEME_TEXT_COLOR,
140 | }}
141 | />
142 |
143 | {
149 | let color = focused ? constants.LIGHT_THEME_PRIMARY_COLOR: constants.LIGHT_THEME_TEXT_COLOR;
150 | let icon = focused ? "home" : "ios-home-outline";
151 | let size = focused ? 30 : 24;
152 | return(
153 |
154 | )},
155 | // tabBarLabel: 'Home',
156 | tabBarActiveTintColor: constants.LIGHT_THEME_PRIMARY_COLOR,
157 | tabBarInactiveTintColor: constants.LIGHT_THEME_TEXT_COLOR,
158 | }
159 | }/>
160 |
161 | {
167 | let color = focused ? constants.LIGHT_THEME_PRIMARY_COLOR: constants.LIGHT_THEME_TEXT_COLOR;
168 | let icon = focused ? "settings" : "settings-outline";
169 | let size = focused ? 30 : 24;
170 | return(
171 |
172 | )},
173 | tabBarLabel: 'Settings',
174 | tabBarActiveTintColor: constants.LIGHT_THEME_PRIMARY_COLOR,
175 | tabBarInactiveTintColor: constants.LIGHT_THEME_TEXT_COLOR,
176 | }}/>
177 |
178 |
179 | );
180 | }
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation. If none specified and
19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is
20 | * // default. Can be overridden with ENTRY_FILE environment variable.
21 | * entryFile: "index.android.js",
22 | *
23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format
24 | * bundleCommand: "ram-bundle",
25 | *
26 | * // whether to bundle JS and assets in debug mode
27 | * bundleInDebug: false,
28 | *
29 | * // whether to bundle JS and assets in release mode
30 | * bundleInRelease: true,
31 | *
32 | * // whether to bundle JS and assets in another build variant (if configured).
33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
34 | * // The configuration property can be in the following formats
35 | * // 'bundleIn${productFlavor}${buildType}'
36 | * // 'bundleIn${buildType}'
37 | * // bundleInFreeDebug: true,
38 | * // bundleInPaidRelease: true,
39 | * // bundleInBeta: true,
40 | *
41 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
42 | * // for example: to disable dev mode in the staging build type (if configured)
43 | * devDisabledInStaging: true,
44 | * // The configuration property can be in the following formats
45 | * // 'devDisabledIn${productFlavor}${buildType}'
46 | * // 'devDisabledIn${buildType}'
47 | *
48 | * // the root of your project, i.e. where "package.json" lives
49 | * root: "../../",
50 | *
51 | * // where to put the JS bundle asset in debug mode
52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
53 | *
54 | * // where to put the JS bundle asset in release mode
55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
56 | *
57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
58 | * // require('./image.png')), in debug mode
59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
60 | *
61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
62 | * // require('./image.png')), in release mode
63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
64 | *
65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
69 | * // for example, you might want to remove it from here.
70 | * inputExcludes: ["android/**", "ios/**"],
71 | *
72 | * // override which node gets called and with what additional arguments
73 | * nodeExecutableAndArgs: ["node"],
74 | *
75 | * // supply additional arguments to the packager
76 | * extraPackagerArgs: []
77 | * ]
78 | */
79 |
80 | project.ext.react = [
81 | enableHermes: (findProperty('expo.jsEngine') ?: "jsc") == "hermes",
82 | ]
83 |
84 | apply from: '../../node_modules/react-native-unimodules/gradle.groovy'
85 | apply from: "../../node_modules/react-native/react.gradle"
86 | apply from: "../../node_modules/expo-constants/scripts/get-app-config-android.gradle"
87 | apply from: "../../node_modules/expo-updates/scripts/create-manifest-android.gradle"
88 |
89 | /**
90 | * Set this to true to create two separate APKs instead of one:
91 | * - An APK that only works on ARM devices
92 | * - An APK that only works on x86 devices
93 | * The advantage is the size of the APK is reduced by about 4MB.
94 | * Upload all the APKs to the Play Store and people will download
95 | * the correct one based on the CPU architecture of their device.
96 | */
97 | def enableSeparateBuildPerCPUArchitecture = false
98 |
99 | /**
100 | * Run Proguard to shrink the Java bytecode in release builds.
101 | */
102 | def enableProguardInReleaseBuilds = false
103 |
104 | /**
105 | * The preferred build flavor of JavaScriptCore.
106 | *
107 | * For example, to use the international variant, you can use:
108 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
109 | *
110 | * The international variant includes ICU i18n library and necessary data
111 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
112 | * give correct results when using with locales other than en-US. Note that
113 | * this variant is about 6MiB larger per architecture than default.
114 | */
115 | def jscFlavor = 'org.webkit:android-jsc:+'
116 |
117 | /**
118 | * Whether to enable the Hermes VM.
119 | *
120 | * This should be set on project.ext.react and mirrored here. If it is not set
121 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
122 | * and the benefits of using Hermes will therefore be sharply reduced.
123 | */
124 | def enableHermes = project.ext.react.get("enableHermes", false);
125 |
126 | android {
127 | compileSdkVersion rootProject.ext.compileSdkVersion
128 |
129 | compileOptions {
130 | sourceCompatibility JavaVersion.VERSION_1_8
131 | targetCompatibility JavaVersion.VERSION_1_8
132 | }
133 |
134 | defaultConfig {
135 | applicationId "com.ona"
136 | minSdkVersion rootProject.ext.minSdkVersion
137 | targetSdkVersion rootProject.ext.targetSdkVersion
138 | versionCode 1
139 | versionName "1.0"
140 | }
141 | splits {
142 | abi {
143 | reset()
144 | enable enableSeparateBuildPerCPUArchitecture
145 | universalApk false // If true, also generate a universal APK
146 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
147 | }
148 | }
149 | signingConfigs {
150 | debug {
151 | storeFile file('debug.keystore')
152 | storePassword 'android'
153 | keyAlias 'androiddebugkey'
154 | keyPassword 'android'
155 | }
156 | }
157 | buildTypes {
158 | debug {
159 | signingConfig signingConfigs.debug
160 | }
161 | release {
162 | // Caution! In production, you need to generate your own keystore file.
163 | // see https://reactnative.dev/docs/signed-apk-android.
164 | signingConfig signingConfigs.debug
165 | minifyEnabled enableProguardInReleaseBuilds
166 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
167 | }
168 | }
169 |
170 | // applicationVariants are e.g. debug, release
171 | applicationVariants.all { variant ->
172 | variant.outputs.each { output ->
173 | // For each separate APK per architecture, set a unique version code as described here:
174 | // https://developer.android.com/studio/build/configure-apk-splits.html
175 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
176 | def abi = output.getFilter(OutputFile.ABI)
177 | if (abi != null) { // null for the universal-debug, universal-release variants
178 | output.versionCodeOverride =
179 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
180 | }
181 |
182 | }
183 | }
184 | }
185 |
186 | dependencies {
187 | implementation fileTree(dir: "libs", include: ["*.jar"])
188 | //noinspection GradleDynamicVersion
189 | implementation "com.facebook.react:react-native:+" // From node_modules
190 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
191 |
192 |
193 | // Section that needs to be copied ONA Packages
194 |
195 | implementation project(':lottie-react-native')
196 | implementation 'com.google.firebase:firebase-analytics:17.3.0'
197 | implementation 'com.google.firebase:firebase-messaging'
198 | implementation platform('com.google.firebase:firebase-bom:26.1.0')
199 |
200 | // Ends Section
201 |
202 |
203 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
204 | exclude group:'com.facebook.fbjni'
205 | }
206 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
207 | exclude group:'com.facebook.flipper'
208 | exclude group:'com.squareup.okhttp3', module:'okhttp'
209 | }
210 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
211 | exclude group:'com.facebook.flipper'
212 | }
213 | addUnimodulesDependencies()
214 |
215 | if (enableHermes) {
216 | def hermesPath = "../../node_modules/hermes-engine/android/";
217 | debugImplementation files(hermesPath + "hermes-debug.aar")
218 | releaseImplementation files(hermesPath + "hermes-release.aar")
219 | } else {
220 | implementation jscFlavor
221 | }
222 | }
223 |
224 | // Run this once to be able to run the application with BUCK
225 | // puts all compile dependencies into folder libs for BUCK to use
226 |
227 |
228 | // Section that needs to be copied
229 |
230 | apply plugin: 'com.google.gms.google-services'
231 |
232 | // Section ends
233 |
234 |
235 | task copyDownloadableDepsToLibs(type: Copy) {
236 | from configurations.compile
237 | into 'libs'
238 | }
239 |
240 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
241 |
--------------------------------------------------------------------------------
/ios/ONA.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
11 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
14 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
15 | 96905EF65AED1B983A6B3ABC /* libPods-ONA.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-ONA.a */; };
16 | BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
17 | 5D54A06EEAD243B5BEE2B74F /* AntDesign.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 5DBE20FD2E1C44FEB3E1FAAF /* AntDesign.ttf */; };
18 | 986E0ABCA74E4BEABA8ABA6C /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 84040786550C4F73AFF59BDB /* Entypo.ttf */; };
19 | 32DF6BB1DAFC4B53B62E619E /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 01A20089B57848508043D85C /* EvilIcons.ttf */; };
20 | A238F15CDBEE4479B2BAFCEA /* Feather.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9A83F3CDAEBA45F0BE9814AD /* Feather.ttf */; };
21 | 830105AE6A3D4CE49607A258 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E4BF595B20604E1DB8617C9F /* FontAwesome.ttf */; };
22 | 69F53021DD274BA0BC1798AE /* FontAwesome5_Brands.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 4B23D59E0BF740B6BA4FB00E /* FontAwesome5_Brands.ttf */; };
23 | 53E5A78B448542FCA24B292E /* FontAwesome5_Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = BC5034070F4A4F28BEDF63BC /* FontAwesome5_Regular.ttf */; };
24 | 2B8CB29061D543679C42F985 /* FontAwesome5_Solid.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 659309BACDAE4928A6D7733C /* FontAwesome5_Solid.ttf */; };
25 | FB1339EB77A54AAB815FBD9B /* Fontisto.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 2A7DE435B5C54DDEB26A6015 /* Fontisto.ttf */; };
26 | 53EE07014AF3471E8E160613 /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 1EF919F583E44DC4803F0EAE /* Foundation.ttf */; };
27 | 8BC2CD20F4284A1485B1B7EF /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F2EAE79B3A294828B772F25C /* Ionicons.ttf */; };
28 | 11AD68340CCE4A90BFD48693 /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9F0836ACCFBD4EA792E1C1A4 /* MaterialCommunityIcons.ttf */; };
29 | ABED05F72FCC4BE3B16E8172 /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 4C83DBAA8AC44F9C929F2C10 /* MaterialIcons.ttf */; };
30 | D0CEC8F837D8460ABBDE4B74 /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9DFFB9A8214E4961968B34D7 /* Octicons.ttf */; };
31 | 1C367872933F4B07954367A0 /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D60942C9825E4BE194F01335 /* SimpleLineIcons.ttf */; };
32 | 4CABB942464E4CDF8EEF3A37 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 56CCD9562C504D3493C4A67C /* Zocial.ttf */; };
33 | /* End PBXBuildFile section */
34 |
35 | /* Begin PBXFileReference section */
36 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
37 | 13B07F961A680F5B00A75B9A /* ONA.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ONA.app; sourceTree = BUILT_PRODUCTS_DIR; };
38 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ONA/AppDelegate.h; sourceTree = ""; };
39 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ONA/AppDelegate.m; sourceTree = ""; };
40 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
41 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ONA/Images.xcassets; sourceTree = ""; };
42 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ONA/Info.plist; sourceTree = ""; };
43 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ONA/main.m; sourceTree = ""; };
44 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-ONA.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ONA.a"; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 6C2E3173556A471DD304B334 /* Pods-ONA.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ONA.debug.xcconfig"; path = "Target Support Files/Pods-ONA/Pods-ONA.debug.xcconfig"; sourceTree = ""; };
46 | 7A4D352CD337FB3A3BF06240 /* Pods-ONA.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ONA.release.xcconfig"; path = "Target Support Files/Pods-ONA/Pods-ONA.release.xcconfig"; sourceTree = ""; };
47 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = ONA/SplashScreen.storyboard; sourceTree = ""; };
48 | BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = ""; };
49 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
50 | 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; };
51 | 5DBE20FD2E1C44FEB3E1FAAF /* AntDesign.ttf */ = {isa = PBXFileReference; name = "AntDesign.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
52 | 84040786550C4F73AFF59BDB /* Entypo.ttf */ = {isa = PBXFileReference; name = "Entypo.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
53 | 01A20089B57848508043D85C /* EvilIcons.ttf */ = {isa = PBXFileReference; name = "EvilIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
54 | 9A83F3CDAEBA45F0BE9814AD /* Feather.ttf */ = {isa = PBXFileReference; name = "Feather.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Feather.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
55 | E4BF595B20604E1DB8617C9F /* FontAwesome.ttf */ = {isa = PBXFileReference; name = "FontAwesome.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
56 | 4B23D59E0BF740B6BA4FB00E /* FontAwesome5_Brands.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Brands.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
57 | BC5034070F4A4F28BEDF63BC /* FontAwesome5_Regular.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Regular.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
58 | 659309BACDAE4928A6D7733C /* FontAwesome5_Solid.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Solid.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
59 | 2A7DE435B5C54DDEB26A6015 /* Fontisto.ttf */ = {isa = PBXFileReference; name = "Fontisto.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
60 | 1EF919F583E44DC4803F0EAE /* Foundation.ttf */ = {isa = PBXFileReference; name = "Foundation.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
61 | F2EAE79B3A294828B772F25C /* Ionicons.ttf */ = {isa = PBXFileReference; name = "Ionicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
62 | 9F0836ACCFBD4EA792E1C1A4 /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; name = "MaterialCommunityIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
63 | 4C83DBAA8AC44F9C929F2C10 /* MaterialIcons.ttf */ = {isa = PBXFileReference; name = "MaterialIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
64 | 9DFFB9A8214E4961968B34D7 /* Octicons.ttf */ = {isa = PBXFileReference; name = "Octicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
65 | D60942C9825E4BE194F01335 /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; name = "SimpleLineIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
66 | 56CCD9562C504D3493C4A67C /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
67 | /* End PBXFileReference section */
68 |
69 | /* Begin PBXFrameworksBuildPhase section */
70 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
71 | isa = PBXFrameworksBuildPhase;
72 | buildActionMask = 2147483647;
73 | files = (
74 | 96905EF65AED1B983A6B3ABC /* libPods-ONA.a in Frameworks */,
75 | );
76 | runOnlyForDeploymentPostprocessing = 0;
77 | };
78 | /* End PBXFrameworksBuildPhase section */
79 |
80 | /* Begin PBXGroup section */
81 | 13B07FAE1A68108700A75B9A /* ONA */ = {
82 | isa = PBXGroup;
83 | children = (
84 | BB2F792B24A3F905000567C9 /* Supporting */,
85 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
86 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
87 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
88 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
89 | 13B07FB61A68108700A75B9A /* Info.plist */,
90 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
91 | 13B07FB71A68108700A75B9A /* main.m */,
92 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
93 | );
94 | name = ONA;
95 | sourceTree = "";
96 | };
97 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
98 | isa = PBXGroup;
99 | children = (
100 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
101 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
102 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-ONA.a */,
103 | );
104 | name = Frameworks;
105 | sourceTree = "";
106 | };
107 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
108 | isa = PBXGroup;
109 | children = (
110 | );
111 | name = Libraries;
112 | sourceTree = "";
113 | };
114 | 83CBB9F61A601CBA00E9B192 = {
115 | isa = PBXGroup;
116 | children = (
117 | 13B07FAE1A68108700A75B9A /* ONA */,
118 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
119 | 83CBBA001A601CBA00E9B192 /* Products */,
120 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
121 | D65327D7A22EEC0BE12398D9 /* Pods */,
122 | 565E47AD80664B9794CE6158 /* Resources */,
123 | );
124 | indentWidth = 2;
125 | sourceTree = "";
126 | tabWidth = 2;
127 | usesTabs = 0;
128 | };
129 | 83CBBA001A601CBA00E9B192 /* Products */ = {
130 | isa = PBXGroup;
131 | children = (
132 | 13B07F961A680F5B00A75B9A /* ONA.app */,
133 | );
134 | name = Products;
135 | sourceTree = "";
136 | };
137 | BB2F792B24A3F905000567C9 /* Supporting */ = {
138 | isa = PBXGroup;
139 | children = (
140 | BB2F792C24A3F905000567C9 /* Expo.plist */,
141 | );
142 | name = Supporting;
143 | path = ONA/Supporting;
144 | sourceTree = "";
145 | };
146 | D65327D7A22EEC0BE12398D9 /* Pods */ = {
147 | isa = PBXGroup;
148 | children = (
149 | 6C2E3173556A471DD304B334 /* Pods-ONA.debug.xcconfig */,
150 | 7A4D352CD337FB3A3BF06240 /* Pods-ONA.release.xcconfig */,
151 | );
152 | path = Pods;
153 | sourceTree = "";
154 | };
155 | 565E47AD80664B9794CE6158 /* Resources */ = {
156 | isa = "PBXGroup";
157 | children = (
158 | 5DBE20FD2E1C44FEB3E1FAAF /* AntDesign.ttf */,
159 | 84040786550C4F73AFF59BDB /* Entypo.ttf */,
160 | 01A20089B57848508043D85C /* EvilIcons.ttf */,
161 | 9A83F3CDAEBA45F0BE9814AD /* Feather.ttf */,
162 | E4BF595B20604E1DB8617C9F /* FontAwesome.ttf */,
163 | 4B23D59E0BF740B6BA4FB00E /* FontAwesome5_Brands.ttf */,
164 | BC5034070F4A4F28BEDF63BC /* FontAwesome5_Regular.ttf */,
165 | 659309BACDAE4928A6D7733C /* FontAwesome5_Solid.ttf */,
166 | 2A7DE435B5C54DDEB26A6015 /* Fontisto.ttf */,
167 | 1EF919F583E44DC4803F0EAE /* Foundation.ttf */,
168 | F2EAE79B3A294828B772F25C /* Ionicons.ttf */,
169 | 9F0836ACCFBD4EA792E1C1A4 /* MaterialCommunityIcons.ttf */,
170 | 4C83DBAA8AC44F9C929F2C10 /* MaterialIcons.ttf */,
171 | 9DFFB9A8214E4961968B34D7 /* Octicons.ttf */,
172 | D60942C9825E4BE194F01335 /* SimpleLineIcons.ttf */,
173 | 56CCD9562C504D3493C4A67C /* Zocial.ttf */,
174 | );
175 | name = Resources;
176 | sourceTree = "";
177 | path = "";
178 | };
179 | /* End PBXGroup section */
180 |
181 | /* Begin PBXNativeTarget section */
182 | 13B07F861A680F5B00A75B9A /* ONA */ = {
183 | isa = PBXNativeTarget;
184 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ONA" */;
185 | buildPhases = (
186 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */,
187 | FD10A7F022414F080027D42C /* Start Packager */,
188 | 13B07F871A680F5B00A75B9A /* Sources */,
189 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
190 | 13B07F8E1A680F5B00A75B9A /* Resources */,
191 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
192 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */,
193 | );
194 | buildRules = (
195 | );
196 | dependencies = (
197 | );
198 | name = ONA;
199 | productName = ONA;
200 | productReference = 13B07F961A680F5B00A75B9A /* ONA.app */;
201 | productType = "com.apple.product-type.application";
202 | };
203 | /* End PBXNativeTarget section */
204 |
205 | /* Begin PBXProject section */
206 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
207 | isa = PBXProject;
208 | attributes = {
209 | LastUpgradeCheck = 1130;
210 | TargetAttributes = {
211 | 13B07F861A680F5B00A75B9A = {
212 | LastSwiftMigration = 1120;
213 | };
214 | };
215 | };
216 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ONA" */;
217 | compatibilityVersion = "Xcode 3.2";
218 | developmentRegion = en;
219 | hasScannedForEncodings = 0;
220 | knownRegions = (
221 | en,
222 | Base,
223 | );
224 | mainGroup = 83CBB9F61A601CBA00E9B192;
225 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
226 | projectDirPath = "";
227 | projectRoot = "";
228 | targets = (
229 | 13B07F861A680F5B00A75B9A /* ONA */,
230 | );
231 | };
232 | /* End PBXProject section */
233 |
234 | /* Begin PBXResourcesBuildPhase section */
235 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
236 | isa = PBXResourcesBuildPhase;
237 | buildActionMask = 2147483647;
238 | files = (
239 | BB2F792D24A3F905000567C9 /* Expo.plist in Resources */,
240 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
241 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
242 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */,
243 | 5D54A06EEAD243B5BEE2B74F /* AntDesign.ttf in Resources */,
244 | 986E0ABCA74E4BEABA8ABA6C /* Entypo.ttf in Resources */,
245 | 32DF6BB1DAFC4B53B62E619E /* EvilIcons.ttf in Resources */,
246 | A238F15CDBEE4479B2BAFCEA /* Feather.ttf in Resources */,
247 | 830105AE6A3D4CE49607A258 /* FontAwesome.ttf in Resources */,
248 | 69F53021DD274BA0BC1798AE /* FontAwesome5_Brands.ttf in Resources */,
249 | 53E5A78B448542FCA24B292E /* FontAwesome5_Regular.ttf in Resources */,
250 | 2B8CB29061D543679C42F985 /* FontAwesome5_Solid.ttf in Resources */,
251 | FB1339EB77A54AAB815FBD9B /* Fontisto.ttf in Resources */,
252 | 53EE07014AF3471E8E160613 /* Foundation.ttf in Resources */,
253 | 8BC2CD20F4284A1485B1B7EF /* Ionicons.ttf in Resources */,
254 | 11AD68340CCE4A90BFD48693 /* MaterialCommunityIcons.ttf in Resources */,
255 | ABED05F72FCC4BE3B16E8172 /* MaterialIcons.ttf in Resources */,
256 | D0CEC8F837D8460ABBDE4B74 /* Octicons.ttf in Resources */,
257 | 1C367872933F4B07954367A0 /* SimpleLineIcons.ttf in Resources */,
258 | 4CABB942464E4CDF8EEF3A37 /* Zocial.ttf in Resources */,
259 | );
260 | runOnlyForDeploymentPostprocessing = 0;
261 | };
262 | /* End PBXResourcesBuildPhase section */
263 |
264 | /* Begin PBXShellScriptBuildPhase section */
265 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
266 | isa = PBXShellScriptBuildPhase;
267 | buildActionMask = 2147483647;
268 | files = (
269 | );
270 | inputPaths = (
271 | );
272 | name = "Bundle React Native code and images";
273 | outputPaths = (
274 | );
275 | runOnlyForDeploymentPostprocessing = 0;
276 | shellPath = /bin/sh;
277 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n../node_modules/expo-constants/scripts/get-app-config-ios.sh\n../node_modules/expo-updates/scripts/create-manifest-ios.sh\n";
278 | };
279 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = {
280 | isa = PBXShellScriptBuildPhase;
281 | buildActionMask = 2147483647;
282 | files = (
283 | );
284 | inputFileListPaths = (
285 | );
286 | inputPaths = (
287 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
288 | "${PODS_ROOT}/Manifest.lock",
289 | );
290 | name = "[CP] Check Pods Manifest.lock";
291 | outputFileListPaths = (
292 | );
293 | outputPaths = (
294 | "$(DERIVED_FILE_DIR)/Pods-ONA-checkManifestLockResult.txt",
295 | );
296 | runOnlyForDeploymentPostprocessing = 0;
297 | shellPath = /bin/sh;
298 | 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";
299 | showEnvVarsInLog = 0;
300 | };
301 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = {
302 | isa = PBXShellScriptBuildPhase;
303 | buildActionMask = 2147483647;
304 | files = (
305 | );
306 | inputPaths = (
307 | "${PODS_ROOT}/Target Support Files/Pods-ONA/Pods-ONA-resources.sh",
308 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
309 | );
310 | name = "[CP] Copy Pods Resources";
311 | outputPaths = (
312 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
313 | );
314 | runOnlyForDeploymentPostprocessing = 0;
315 | shellPath = /bin/sh;
316 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ONA/Pods-ONA-resources.sh\"\n";
317 | showEnvVarsInLog = 0;
318 | };
319 | FD10A7F022414F080027D42C /* Start Packager */ = {
320 | isa = PBXShellScriptBuildPhase;
321 | buildActionMask = 2147483647;
322 | files = (
323 | );
324 | inputFileListPaths = (
325 | );
326 | inputPaths = (
327 | );
328 | name = "Start Packager";
329 | outputFileListPaths = (
330 | );
331 | outputPaths = (
332 | );
333 | runOnlyForDeploymentPostprocessing = 0;
334 | shellPath = /bin/sh;
335 | 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";
336 | showEnvVarsInLog = 0;
337 | };
338 | /* End PBXShellScriptBuildPhase section */
339 |
340 | /* Begin PBXSourcesBuildPhase section */
341 | 13B07F871A680F5B00A75B9A /* Sources */ = {
342 | isa = PBXSourcesBuildPhase;
343 | buildActionMask = 2147483647;
344 | files = (
345 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
346 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
347 | );
348 | runOnlyForDeploymentPostprocessing = 0;
349 | };
350 | /* End PBXSourcesBuildPhase section */
351 |
352 | /* Begin PBXVariantGroup section */
353 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
354 | isa = PBXVariantGroup;
355 | children = (
356 | 13B07FB21A68108700A75B9A /* Base */,
357 | );
358 | name = LaunchScreen.xib;
359 | path = ONA;
360 | sourceTree = "";
361 | };
362 | /* End PBXVariantGroup section */
363 |
364 | /* Begin XCBuildConfiguration section */
365 | 13B07F941A680F5B00A75B9A /* Debug */ = {
366 | isa = XCBuildConfiguration;
367 | baseConfigurationReference = 6C2E3173556A471DD304B334 /* Pods-ONA.debug.xcconfig */;
368 | buildSettings = {
369 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
370 | CLANG_ENABLE_MODULES = YES;
371 | CURRENT_PROJECT_VERSION = 1;
372 | ENABLE_BITCODE = NO;
373 | GCC_PREPROCESSOR_DEFINITIONS = (
374 | "$(inherited)",
375 | "FB_SONARKIT_ENABLED=1",
376 | );
377 | INFOPLIST_FILE = ONA/Info.plist;
378 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
379 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
380 | OTHER_LDFLAGS = (
381 | "$(inherited)",
382 | "-ObjC",
383 | "-lc++",
384 | );
385 | PRODUCT_BUNDLE_IDENTIFIER = org.name.ONA;
386 | PRODUCT_NAME = ONA;
387 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
388 | SWIFT_VERSION = 5.0;
389 | VERSIONING_SYSTEM = "apple-generic";
390 | };
391 | name = Debug;
392 | };
393 | 13B07F951A680F5B00A75B9A /* Release */ = {
394 | isa = XCBuildConfiguration;
395 | baseConfigurationReference = 7A4D352CD337FB3A3BF06240 /* Pods-ONA.release.xcconfig */;
396 | buildSettings = {
397 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
398 | CLANG_ENABLE_MODULES = YES;
399 | CURRENT_PROJECT_VERSION = 1;
400 | INFOPLIST_FILE = ONA/Info.plist;
401 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
402 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
403 | OTHER_LDFLAGS = (
404 | "$(inherited)",
405 | "-ObjC",
406 | "-lc++",
407 | );
408 | PRODUCT_BUNDLE_IDENTIFIER = org.name.ONA;
409 | PRODUCT_NAME = ONA;
410 | SWIFT_VERSION = 5.0;
411 | VERSIONING_SYSTEM = "apple-generic";
412 | };
413 | name = Release;
414 | };
415 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
416 | isa = XCBuildConfiguration;
417 | buildSettings = {
418 | ALWAYS_SEARCH_USER_PATHS = NO;
419 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
420 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
421 | CLANG_CXX_LIBRARY = "libc++";
422 | CLANG_ENABLE_MODULES = YES;
423 | CLANG_ENABLE_OBJC_ARC = YES;
424 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
425 | CLANG_WARN_BOOL_CONVERSION = YES;
426 | CLANG_WARN_COMMA = YES;
427 | CLANG_WARN_CONSTANT_CONVERSION = YES;
428 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
429 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
430 | CLANG_WARN_EMPTY_BODY = YES;
431 | CLANG_WARN_ENUM_CONVERSION = YES;
432 | CLANG_WARN_INFINITE_RECURSION = YES;
433 | CLANG_WARN_INT_CONVERSION = YES;
434 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
435 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
436 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
437 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
438 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
439 | CLANG_WARN_STRICT_PROTOTYPES = YES;
440 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
441 | CLANG_WARN_UNREACHABLE_CODE = YES;
442 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
443 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
444 | COPY_PHASE_STRIP = NO;
445 | ENABLE_STRICT_OBJC_MSGSEND = YES;
446 | ENABLE_TESTABILITY = YES;
447 | GCC_C_LANGUAGE_STANDARD = gnu99;
448 | GCC_DYNAMIC_NO_PIC = NO;
449 | GCC_NO_COMMON_BLOCKS = YES;
450 | GCC_OPTIMIZATION_LEVEL = 0;
451 | GCC_PREPROCESSOR_DEFINITIONS = (
452 | "DEBUG=1",
453 | "$(inherited)",
454 | );
455 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
456 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
457 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
458 | GCC_WARN_UNDECLARED_SELECTOR = YES;
459 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
460 | GCC_WARN_UNUSED_FUNCTION = YES;
461 | GCC_WARN_UNUSED_VARIABLE = YES;
462 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
463 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
464 | LIBRARY_SEARCH_PATHS = (
465 | "\"$(inherited)\"",
466 | );
467 | MTL_ENABLE_DEBUG_INFO = YES;
468 | ONLY_ACTIVE_ARCH = YES;
469 | SDKROOT = iphoneos;
470 | };
471 | name = Debug;
472 | };
473 | 83CBBA211A601CBA00E9B192 /* Release */ = {
474 | isa = XCBuildConfiguration;
475 | buildSettings = {
476 | ALWAYS_SEARCH_USER_PATHS = NO;
477 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
478 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
479 | CLANG_CXX_LIBRARY = "libc++";
480 | CLANG_ENABLE_MODULES = YES;
481 | CLANG_ENABLE_OBJC_ARC = YES;
482 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
483 | CLANG_WARN_BOOL_CONVERSION = YES;
484 | CLANG_WARN_COMMA = YES;
485 | CLANG_WARN_CONSTANT_CONVERSION = YES;
486 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
487 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
488 | CLANG_WARN_EMPTY_BODY = YES;
489 | CLANG_WARN_ENUM_CONVERSION = YES;
490 | CLANG_WARN_INFINITE_RECURSION = YES;
491 | CLANG_WARN_INT_CONVERSION = YES;
492 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
493 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
494 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
495 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
496 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
497 | CLANG_WARN_STRICT_PROTOTYPES = YES;
498 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
499 | CLANG_WARN_UNREACHABLE_CODE = YES;
500 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
501 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
502 | COPY_PHASE_STRIP = YES;
503 | ENABLE_NS_ASSERTIONS = NO;
504 | ENABLE_STRICT_OBJC_MSGSEND = YES;
505 | GCC_C_LANGUAGE_STANDARD = gnu99;
506 | GCC_NO_COMMON_BLOCKS = YES;
507 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
508 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
509 | GCC_WARN_UNDECLARED_SELECTOR = YES;
510 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
511 | GCC_WARN_UNUSED_FUNCTION = YES;
512 | GCC_WARN_UNUSED_VARIABLE = YES;
513 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
514 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
515 | LIBRARY_SEARCH_PATHS = (
516 | "\"$(inherited)\"",
517 | );
518 | MTL_ENABLE_DEBUG_INFO = NO;
519 | SDKROOT = iphoneos;
520 | VALIDATE_PRODUCT = YES;
521 | };
522 | name = Release;
523 | };
524 | /* End XCBuildConfiguration section */
525 |
526 | /* Begin XCConfigurationList section */
527 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ONA" */ = {
528 | isa = XCConfigurationList;
529 | buildConfigurations = (
530 | 13B07F941A680F5B00A75B9A /* Debug */,
531 | 13B07F951A680F5B00A75B9A /* Release */,
532 | );
533 | defaultConfigurationIsVisible = 0;
534 | defaultConfigurationName = Release;
535 | };
536 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ONA" */ = {
537 | isa = XCConfigurationList;
538 | buildConfigurations = (
539 | 83CBBA201A601CBA00E9B192 /* Debug */,
540 | 83CBBA211A601CBA00E9B192 /* Release */,
541 | );
542 | defaultConfigurationIsVisible = 0;
543 | defaultConfigurationName = Release;
544 | };
545 | /* End XCConfigurationList section */
546 | };
547 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
548 | }
549 |
--------------------------------------------------------------------------------