├── src
├── actions
│ ├── types.js
│ └── index.js
├── reducers
│ ├── index.js
│ └── data_reducer.js
├── index.js
├── EZNetApp.js
├── api
│ └── dummy_api.js
└── components
│ ├── common
│ ├── TwoColumnView.js
│ └── BoxItem.js
│ ├── DetailScreen.js
│ └── App.js
├── app.json
├── img
├── logo.png
├── Banner.png
├── derana.png
├── divaina.png
├── rivira.png
├── unknown.png
├── දිවයින.jpg
├── ලංකාදීප.jpg
├── lankadeepa.png
├── login_logo.png
├── card-showcase.jpg
├── card-showcase.png
├── news-papers.png
└── index.js
├── debug.keystore.enc
├── android
├── app
│ ├── src
│ │ └── main
│ │ │ ├── res
│ │ │ ├── values
│ │ │ │ ├── strings.xml
│ │ │ │ ├── styles.xml
│ │ │ │ └── com_crashlytics_export_strings.xml
│ │ │ ├── drawable-mdpi
│ │ │ │ ├── img_.jpg
│ │ │ │ ├── img_derana.png
│ │ │ │ ├── img_rivira.png
│ │ │ │ ├── img_divaina.png
│ │ │ │ ├── img_unknown.png
│ │ │ │ ├── img_lankadeepa.png
│ │ │ │ ├── img_newspapers.png
│ │ │ │ ├── node_modules_reactnavigation_src_views_assets_backicon.png
│ │ │ │ └── node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png
│ │ │ ├── mipmap-hdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── node_modules_reactnavigation_src_views_assets_backicon.png
│ │ │ │ └── node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png
│ │ │ ├── drawable-xhdpi
│ │ │ │ ├── node_modules_reactnavigation_src_views_assets_backicon.png
│ │ │ │ └── node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png
│ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── node_modules_reactnavigation_src_views_assets_backicon.png
│ │ │ │ └── node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png
│ │ │ └── drawable-xxxhdpi
│ │ │ │ ├── node_modules_reactnavigation_src_views_assets_backicon.png
│ │ │ │ └── node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png
│ │ │ ├── assets
│ │ │ ├── fonts
│ │ │ │ ├── Arial.ttf
│ │ │ │ ├── Skia.ttf
│ │ │ │ ├── Entypo.ttf
│ │ │ │ ├── Georgia.ttf
│ │ │ │ ├── Ionicons.ttf
│ │ │ │ ├── Octicons.ttf
│ │ │ │ ├── Roboto.ttf
│ │ │ │ ├── Zocial.ttf
│ │ │ │ ├── EvilIcons.ttf
│ │ │ │ ├── Foundation.ttf
│ │ │ │ ├── Rubik-Bold.ttf
│ │ │ │ ├── Andale Mono.ttf
│ │ │ │ ├── Arial Black.ttf
│ │ │ │ ├── Comic Sans MS.ttf
│ │ │ │ ├── Courier New.ttf
│ │ │ │ ├── FontAwesome.ttf
│ │ │ │ ├── MaterialIcons.ttf
│ │ │ │ ├── Roboto_medium.ttf
│ │ │ │ ├── Rubik-Black.ttf
│ │ │ │ ├── Rubik-Italic.ttf
│ │ │ │ ├── Rubik-Light.ttf
│ │ │ │ ├── Rubik-Medium.ttf
│ │ │ │ ├── Rubik-Regular.ttf
│ │ │ │ ├── SanFrancisco.ttf
│ │ │ │ ├── SimpleLineIcons.ttf
│ │ │ │ ├── Times New Roman.ttf
│ │ │ │ ├── Rubik-BlackItalic.ttf
│ │ │ │ ├── Rubik-BoldItalic.ttf
│ │ │ │ ├── Rubik-LightItalic.ttf
│ │ │ │ ├── Rubik-MediumItalic.ttf
│ │ │ │ ├── SF-UI-Text-Regular.otf
│ │ │ │ ├── SanFranciscoBold.ttf
│ │ │ │ ├── SanFranciscoThin.ttf
│ │ │ │ ├── rubicon-icon-font.ttf
│ │ │ │ └── Microsoft Sans Serif.ttf
│ │ │ ├── index.android.bundle.meta
│ │ │ └── crashlytics-build.properties
│ │ │ ├── java
│ │ │ └── org
│ │ │ │ └── gdgsrilanka
│ │ │ │ └── codelanka
│ │ │ │ └── eznet
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── MainApplication.java
│ │ │ └── AndroidManifest.xml
│ ├── google-services.json
│ ├── BUCK
│ ├── proguard-rules.pro
│ └── build.gradle
├── yarn.lock
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── keystores
│ ├── debug.keystore.properties
│ └── BUCK
├── settings.gradle
├── build.gradle
├── gradle.properties
├── gradlew.bat
└── gradlew
├── index.android.js
├── index.ios.js
├── .eslintrc
├── __tests__
├── index.ios.js
└── index.android.js
├── ios
├── EZNet
│ ├── AppDelegate.h
│ ├── main.m
│ ├── Images.xcassets
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── AppDelegate.m
│ ├── Info.plist
│ └── Base.lproj
│ │ └── LaunchScreen.xib
├── EZNetTests
│ ├── Info.plist
│ └── EZNetTests.m
├── EZNet-tvOSTests
│ └── Info.plist
├── EZNet-tvOS
│ └── Info.plist
└── EZNet.xcodeproj
│ ├── xcshareddata
│ └── xcschemes
│ │ ├── EZNet.xcscheme
│ │ └── EZNet-tvOS.xcscheme
│ └── project.pbxproj
├── components
├── Drawer.js
└── SideBar.js
├── LICENSE.txt
├── package.json
├── README.md
├── .gitignore
├── Privacy-Policy.md
├── Privacy-Policy.html
└── .travis.yml
/src/actions/types.js:
--------------------------------------------------------------------------------
1 | export const FETCH_DATA = 'fetch_data';
2 |
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "EZNetApp",
3 | "displayName": "EZNetApp"
4 | }
5 |
--------------------------------------------------------------------------------
/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/img/logo.png
--------------------------------------------------------------------------------
/img/Banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/img/Banner.png
--------------------------------------------------------------------------------
/img/derana.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/img/derana.png
--------------------------------------------------------------------------------
/img/divaina.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/img/divaina.png
--------------------------------------------------------------------------------
/img/rivira.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/img/rivira.png
--------------------------------------------------------------------------------
/img/unknown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/img/unknown.png
--------------------------------------------------------------------------------
/img/දිවයින.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/img/දිවයින.jpg
--------------------------------------------------------------------------------
/img/ලංකාදීප.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/img/ලංකාදීප.jpg
--------------------------------------------------------------------------------
/debug.keystore.enc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/debug.keystore.enc
--------------------------------------------------------------------------------
/img/lankadeepa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/img/lankadeepa.png
--------------------------------------------------------------------------------
/img/login_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/img/login_logo.png
--------------------------------------------------------------------------------
/img/card-showcase.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/img/card-showcase.jpg
--------------------------------------------------------------------------------
/img/card-showcase.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/img/card-showcase.png
--------------------------------------------------------------------------------
/img/news-papers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/img/news-papers.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | EZNet
3 |
4 |
--------------------------------------------------------------------------------
/android/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Arial.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Arial.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Skia.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Skia.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Entypo.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Entypo.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Georgia.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Georgia.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Ionicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Ionicons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Octicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Octicons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Roboto.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Roboto.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Zocial.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Zocial.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/EvilIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/EvilIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Foundation.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Foundation.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Rubik-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Rubik-Bold.ttf
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/img_.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-mdpi/img_.jpg
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Andale Mono.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Andale Mono.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Arial Black.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Arial Black.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Comic Sans MS.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Comic Sans MS.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Courier New.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Courier New.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/FontAwesome.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/FontAwesome.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/MaterialIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/MaterialIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Roboto_medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Roboto_medium.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Rubik-Black.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Rubik-Black.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Rubik-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Rubik-Italic.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Rubik-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Rubik-Light.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Rubik-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Rubik-Medium.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Rubik-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Rubik-Regular.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/SanFrancisco.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/SanFrancisco.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/SimpleLineIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/SimpleLineIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Times New Roman.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Times New Roman.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/index.android.bundle.meta:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/index.android.bundle.meta
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/img_derana.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-mdpi/img_derana.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/img_rivira.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-mdpi/img_rivira.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Rubik-BlackItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Rubik-BlackItalic.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Rubik-BoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Rubik-BoldItalic.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Rubik-LightItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Rubik-LightItalic.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Rubik-MediumItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Rubik-MediumItalic.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/SF-UI-Text-Regular.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/SF-UI-Text-Regular.otf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/SanFranciscoBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/SanFranciscoBold.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/SanFranciscoThin.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/SanFranciscoThin.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/rubicon-icon-font.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/rubicon-icon-font.ttf
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/img_divaina.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-mdpi/img_divaina.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/img_unknown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-mdpi/img_unknown.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Microsoft Sans Serif.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/assets/fonts/Microsoft Sans Serif.ttf
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/img_lankadeepa.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-mdpi/img_lankadeepa.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/img_newspapers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-mdpi/img_newspapers.png
--------------------------------------------------------------------------------
/index.android.js:
--------------------------------------------------------------------------------
1 | import {
2 | AppRegistry,
3 | } from 'react-native';
4 |
5 | import Root from './src';
6 |
7 | AppRegistry.registerComponent('EZNet', () => Root);
8 |
--------------------------------------------------------------------------------
/index.ios.js:
--------------------------------------------------------------------------------
1 | import {
2 | AppRegistry,
3 | } from 'react-native';
4 |
5 | import Root from './src';
6 |
7 | AppRegistry.registerComponent('EZNet', () => Root);
8 |
--------------------------------------------------------------------------------
/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = 'debug',
3 | store = 'debug.keystore',
4 | properties = 'debug.keystore.properties',
5 | visibility = [
6 | 'PUBLIC',
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/src/reducers/index.js:
--------------------------------------------------------------------------------
1 | import { combineReducers } from 'redux';
2 |
3 | import dataReducer from './data_reducer';
4 |
5 | export default combineReducers({
6 | data: dataReducer,
7 | });
8 |
--------------------------------------------------------------------------------
/src/actions/index.js:
--------------------------------------------------------------------------------
1 | import { FETCH_DATA } from './types';
2 |
3 | import { categories as data } from './../api/dummy_api';
4 |
5 | export const actionFetchData = () => ({
6 | type: FETCH_DATA,
7 | payload: data,
8 | });
9 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-hdpi/node_modules_reactnavigation_src_views_assets_backicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-hdpi/node_modules_reactnavigation_src_views_assets_backicon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/node_modules_reactnavigation_src_views_assets_backicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-mdpi/node_modules_reactnavigation_src_views_assets_backicon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xhdpi/node_modules_reactnavigation_src_views_assets_backicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-xhdpi/node_modules_reactnavigation_src_views_assets_backicon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnavigation_src_views_assets_backicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnavigation_src_views_assets_backicon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxxhdpi/node_modules_reactnavigation_src_views_assets_backicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-xxxhdpi/node_modules_reactnavigation_src_views_assets_backicon.png
--------------------------------------------------------------------------------
/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "airbnb",
3 | "parser": "babel-eslint",
4 | "rules": {
5 | "strict": 0,
6 | "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
7 | "import/prefer-default-export": "off"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Tue May 23 09:59:03 IST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-hdpi/node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-hdpi/node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-mdpi/node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xhdpi/node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-xhdpi/node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxxhdpi/node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeLanka/ez-net-app/HEAD/android/app/src/main/res/drawable-xxxhdpi/node_modules_reactnative_libraries_customcomponents_navigationexperimental_assets_backicon.png
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { Provider } from 'react-redux';
3 | import { createStore } from 'redux';
4 | import reducers from './reducers';
5 |
6 | import EZNetApp from './EZNetApp';
7 |
8 | export default () => (
9 |
10 |
11 |
12 | );
13 |
--------------------------------------------------------------------------------
/__tests__/index.ios.js:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 | import React from 'react';
3 | import Index from '../index.ios.js';
4 |
5 | // Note: test renderer must be required after react-native.
6 | import renderer from 'react-test-renderer';
7 |
8 | it('renders correctly', () => {
9 | const tree = renderer.create(
10 |
11 | );
12 | });
13 |
--------------------------------------------------------------------------------
/src/reducers/data_reducer.js:
--------------------------------------------------------------------------------
1 | import { FETCH_DATA } from './../actions/types';
2 |
3 | const InitialState = [];
4 |
5 | export default (state = InitialState, action) => {
6 | switch (action.type) {
7 | case FETCH_DATA:
8 | {
9 | return action.payload;
10 | }
11 | default:
12 | return state;
13 | }
14 | };
15 |
--------------------------------------------------------------------------------
/__tests__/index.android.js:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 | import React from 'react';
3 | import Index from '../index.android.js';
4 |
5 | // Note: test renderer must be required after react-native.
6 | import renderer from 'react-test-renderer';
7 |
8 | it('renders correctly', () => {
9 | const tree = renderer.create(
10 |
11 | );
12 | });
13 |
--------------------------------------------------------------------------------
/src/EZNetApp.js:
--------------------------------------------------------------------------------
1 | import { StackNavigator } from 'react-navigation';
2 |
3 | import ReactNativeProject from './components/App';
4 | import DetailScreen from './components/DetailScreen';
5 |
6 |
7 | const EZNetApp = StackNavigator({
8 | Home: { screen: ReactNativeProject },
9 | Detail: { screen: DetailScreen },
10 | });
11 |
12 | export default EZNetApp;
13 |
--------------------------------------------------------------------------------
/img/index.js:
--------------------------------------------------------------------------------
1 | export const UNKNOWN = require('./unknown.png');
2 |
3 | export const CATEGORY_NEWSPAPERS = require('./news-papers.png');
4 |
5 | export const NEWSPAPERS_DIVAINA = require('./divaina.png');
6 | export const NEWSPAPERS_LANKADEEPA = require('./lankadeepa.png');
7 | export const NEWSPAPERS_RIVIRA = require('./rivira.png');
8 | export const NEWSPAPERS_DERANA = require('./derana.png');
9 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'EZNet'
2 | include ':react-native-vector-icons'
3 | project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
4 | include ':react-native-firebase'
5 | project(':react-native-firebase').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase/android')
6 |
7 | include ':app'
8 |
--------------------------------------------------------------------------------
/android/app/src/main/assets/crashlytics-build.properties:
--------------------------------------------------------------------------------
1 | #This file is automatically generated by Crashlytics to uniquely
2 | #identify individual builds of your Android application.
3 | #
4 | #Do NOT modify, delete, or commit to source control!
5 | #
6 | #Tue Jun 27 21:50:05 IST 2017
7 | version_name=1.0
8 | package_name=com.reactnativeproject
9 | build_id=660a34d1-4ff3-4d4b-9696-a79103517463
10 | version_code=1
11 | app_name=ReactNativeProject
12 |
--------------------------------------------------------------------------------
/android/app/src/main/java/org/gdgsrilanka/codelanka/eznet/MainActivity.java:
--------------------------------------------------------------------------------
1 | package org.gdgsrilanka.codelanka.eznet;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "EZNet";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/ios/EZNet/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (nonatomic, strong) UIWindow *window;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/com_crashlytics_export_strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 | 660a34d1-4ff3-4d4b-9696-a79103517463
10 |
11 |
--------------------------------------------------------------------------------
/ios/EZNet/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | #import "AppDelegate.h"
13 |
14 | int main(int argc, char * argv[]) {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/components/Drawer.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import { Drawer } from 'native-base';
3 | import SideBar from './SideBar';
4 |
5 | export default class MainDrawer extends Component {
6 |
7 | closeDrawer = () => {
8 | console.log("Open Drawer");
9 | };
10 |
11 | openDrawer = () => {
12 | console.log("Open Drawer");
13 | };
14 |
15 | render() {
16 |
17 | return (
18 | { this._drawer = ref; }}
20 | content={}
21 | onClose={() => this.closeDrawer()}
22 | >
23 | // Main View
24 |
25 | );
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/ios/EZNet/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/src/api/dummy_api.js:
--------------------------------------------------------------------------------
1 | export const categories = [
2 | {
3 | id: '1',
4 | title: 'පුවත් පත්',
5 | thumbnail: 'CATEGORY_NEWSPAPERS',
6 | items: [
7 | {
8 | id: '1_1',
9 | title: 'දිවයින',
10 | thumbnail: 'NEWSPAPERS_DIVAINA',
11 | url: 'http://www.divaina.com/',
12 | },
13 | {
14 | id: '1_2',
15 | title: 'ලංකාදීප',
16 | thumbnail: 'NEWSPAPERS_LANKADEEPA',
17 | url: 'http://www.lankadeepa.lk/',
18 | },
19 | {
20 | id: '1_3',
21 | title: 'රිවිර',
22 | thumbnail: 'NEWSPAPERS_RIVIRA',
23 | url: 'http://www.rivira.lk/online/',
24 | },
25 | {
26 | id: '1_4',
27 | title: 'දෙරණ',
28 | thumbnail: 'NEWSPAPERS_DERANA',
29 | url: 'http://www.adaderana.lk/',
30 | },
31 | ],
32 | },
33 | ];
34 |
--------------------------------------------------------------------------------
/ios/EZNetTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ios/EZNet-tvOSTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.3'
9 | classpath 'com.google.gms:google-services:3.0.0'
10 |
11 | classpath 'com.google.firebase:firebase-plugins:1.1.0'
12 |
13 | // NOTE: Do not place your application dependencies here; they belong
14 | // in the individual module build.gradle files
15 | }
16 | }
17 |
18 | allprojects {
19 | repositories {
20 | mavenLocal()
21 | jcenter()
22 | maven {
23 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
24 | url "$rootDir/../node_modules/react-native/android"
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/components/SideBar.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import {
3 | AppRegistry,
4 | StyleSheet,
5 | Image,
6 | TextInput,
7 | View
8 | } from 'react-native';
9 | import { Container, Header, Title, Content, Card, CardItem, Left, Right, Thumbnail, Body, Text, Button, Icon } from 'native-base';
10 |
11 |
12 | export default class SideBar extends Component {
13 | render() {
14 | return (
15 |
16 |
17 |
18 |
21 |
22 |
23 | Header
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | );
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/components/common/TwoColumnView.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { StyleSheet, View } from 'react-native';
3 | import PropTypes from 'prop-types';
4 |
5 | const styles = StyleSheet.create({
6 | layout: {
7 | flex: 1,
8 | flexDirection: 'row',
9 | justifyContent: 'space-between',
10 | },
11 | });
12 |
13 | const TwoColumnView = (props) => {
14 | const { children } = props;
15 |
16 | if (!Array.isArray(children)) {
17 | console.log('Children to the TwoColumnView is not an array')
18 | return null;
19 | }
20 |
21 | const left = [];
22 | const right = [];
23 |
24 | children.forEach((child, index) => {
25 | if (index % 2 === 0) { // even
26 | left.push(child);
27 | } else {
28 | right.push(child);
29 | }
30 | });
31 |
32 | return (
33 |
34 |
35 | {left}
36 |
37 |
38 | {right}
39 |
40 |
41 | );
42 | };
43 |
44 | TwoColumnView.propTypes = {
45 | children: PropTypes.arrayOf(PropTypes.node).isRequired,
46 | };
47 |
48 | export default TwoColumnView;
49 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 CodeLanka Initiative
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/src/components/common/BoxItem.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import PropTypes from 'prop-types';
3 | import { StyleSheet, TouchableHighlight, View } from 'react-native';
4 | import ResponsiveImage from 'react-native-responsive-image';
5 |
6 | import * as staticImages from './../../../img';
7 |
8 | const styles = StyleSheet.create({
9 | box: {
10 | padding: 20,
11 | backgroundColor: 'rgba(0,0,0,0.05)',
12 | margin: 10,
13 | },
14 | });
15 |
16 | class Item extends Component {
17 | static defaultProps = {
18 | thumbnail: 'UNKNOWN',
19 | onPress: () => {},
20 | };
21 |
22 | static propTypes = {
23 | thumbnail: PropTypes.string,
24 | onPress: PropTypes.func,
25 | };
26 |
27 | render() {
28 | const { thumbnail, onPress } = this.props;
29 |
30 | return (
31 |
32 |
33 |
38 |
39 |
40 | );
41 | }
42 | }
43 |
44 | export default Item;
45 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "EZNet",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest"
8 | },
9 | "dependencies": {
10 | "native-base": "^2.2.0",
11 | "prop-types": "^15.5.10",
12 | "react": "16.0.0-alpha.12",
13 | "react-burger-menu": "^2.1.3",
14 | "react-burger-nav": "^2.0.2",
15 | "react-native": "0.45.1",
16 | "react-native-firebase": "^2.0.2",
17 | "react-native-material-ui": "^1.12.0",
18 | "react-native-responsive-image": "^2.1.0",
19 | "react-navigation": "^1.0.0-beta.11",
20 | "react-redux": "^5.0.5",
21 | "redux": "^3.7.1"
22 | },
23 | "devDependencies": {
24 | "babel-eslint": "^7.2.3",
25 | "babel-jest": "20.0.3",
26 | "babel-preset-react-native": "2.0.0",
27 | "eslint": "^3.19.0",
28 | "eslint-config-airbnb": "^15.0.1",
29 | "eslint-plugin-import": "^2.2.0",
30 | "eslint-plugin-jsx-a11y": "^5.0.1",
31 | "eslint-plugin-react": "^7.0.1",
32 | "jest": "20.0.4",
33 | "react-test-renderer": "16.0.0-alpha.12"
34 | },
35 | "jest": {
36 | "preset": "react-native"
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/ios/EZNet/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import "AppDelegate.h"
11 |
12 | #import
13 | #import
14 |
15 | @implementation AppDelegate
16 |
17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
18 | {
19 | NSURL *jsCodeLocation;
20 |
21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
22 |
23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
24 | moduleName:@"EZNet"
25 | initialProperties:nil
26 | launchOptions:launchOptions];
27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
28 |
29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
30 | UIViewController *rootViewController = [UIViewController new];
31 | rootViewController.view = rootView;
32 | self.window.rootViewController = rootViewController;
33 | [self.window makeKeyAndVisible];
34 | return YES;
35 | }
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/src/components/DetailScreen.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import {
3 | StyleSheet,
4 | Linking,
5 | } from 'react-native';
6 | import { Container, Content } from 'native-base';
7 | import PropTypes from 'prop-types';
8 |
9 | import TwoColumnView from './common/TwoColumnView';
10 | import BoxItem from './common/BoxItem';
11 |
12 | const styles = StyleSheet.create({
13 | container: {
14 | flex: 1,
15 | },
16 | layout: {
17 | flex: 1,
18 | flexDirection: 'row',
19 | justifyContent: 'center',
20 | alignItems: 'center',
21 | },
22 | box: {
23 | padding: 20,
24 | backgroundColor: 'rgba(0,0,0,0.05)',
25 | margin: 10,
26 | },
27 | });
28 |
29 | export default class DetailScreen extends Component {
30 |
31 | static propTypes = {
32 | navigation: PropTypes.object.isRequired,
33 | };
34 |
35 | static navigationOptions = ({ navigation }) => ({
36 | title: `${navigation.state.params.title}`,
37 | });
38 |
39 | renderDetails() {
40 | const { items } = this.props.navigation.state.params;
41 | const details = items.map(item => (
42 | Linking.openURL(item.url)}
45 | {...item}
46 | />
47 | ));
48 | return (
49 |
50 | {details}
51 |
52 | );
53 | }
54 |
55 | render() {
56 | return (
57 |
58 |
59 | {this.renderDetails()}
60 |
61 |
62 | );
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/android/app/google-services.json:
--------------------------------------------------------------------------------
1 | {
2 | "project_info": {
3 | "project_number": "502584752547",
4 | "firebase_url": "https://project-7593821828655173684.firebaseio.com",
5 | "project_id": "project-7593821828655173684",
6 | "storage_bucket": "project-7593821828655173684.appspot.com"
7 | },
8 | "client": [
9 | {
10 | "client_info": {
11 | "mobilesdk_app_id": "1:502584752547:android:e3d7a6ebd70b1482",
12 | "android_client_info": {
13 | "package_name": "org.gdgsrilanka.codelanka.eznet"
14 | }
15 | },
16 | "oauth_client": [
17 | {
18 | "client_id": "502584752547-ofmc6qbtfmbvsthbn5pj8ih3kg3ddsrd.apps.googleusercontent.com",
19 | "client_type": 1,
20 | "android_info": {
21 | "package_name": "org.gdgsrilanka.codelanka.eznet",
22 | "certificate_hash": "031b3fda8372c21778b1bf9e5f12974d7dc95fd0"
23 | }
24 | },
25 | {
26 | "client_id": "502584752547-oq47kki31psm060pn8r7fbs87a2n7jef.apps.googleusercontent.com",
27 | "client_type": 3
28 | }
29 | ],
30 | "api_key": [
31 | {
32 | "current_key": "AIzaSyDXV-ym30hM8mMLzhBOc6JudoOjdqhUPJ4"
33 | }
34 | ],
35 | "services": {
36 | "analytics_service": {
37 | "status": 1
38 | },
39 | "appinvite_service": {
40 | "status": 2,
41 | "other_platform_oauth_client": [
42 | {
43 | "client_id": "502584752547-oq47kki31psm060pn8r7fbs87a2n7jef.apps.googleusercontent.com",
44 | "client_type": 3
45 | }
46 | ]
47 | },
48 | "ads_service": {
49 | "status": 2
50 | }
51 | }
52 | }
53 | ],
54 | "configuration_version": "1"
55 | }
--------------------------------------------------------------------------------
/src/components/App.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react';
2 | import {
3 | StyleSheet,
4 | View,
5 | } from 'react-native';
6 | import { Container, Content } from 'native-base';
7 | import PropTypes from 'prop-types';
8 | import { connect } from 'react-redux';
9 |
10 | import TwoColumnView from './common/TwoColumnView';
11 | import BoxItem from './common/BoxItem';
12 |
13 | import * as actions from './../actions';
14 |
15 | const styles = StyleSheet.create({
16 | container: {
17 | flex: 1,
18 | },
19 | });
20 |
21 | class Categories extends Component {
22 | static propTypes = {
23 | actionFetchData: PropTypes.func.isRequired,
24 | categoryData: PropTypes.array.isRequired,
25 | navigation: PropTypes.object.isRequired,
26 | };
27 |
28 | static navigationOptions = {
29 | title: 'අන්තර්ජාල නැබ',
30 | };
31 |
32 | componentWillMount() {
33 | this.props.actionFetchData();
34 | }
35 |
36 | renderCategories() {
37 | const { navigate } = this.props.navigation;
38 |
39 | const nodes = this.props.categoryData.map(category => (
40 | navigate('Detail', { title: category.title, items: category.items })}
43 | {...category}
44 | />
45 | ));
46 |
47 | return (
48 |
49 | {nodes}
50 |
51 | );
52 | }
53 |
54 | render() {
55 | return (
56 |
57 |
58 |
59 | {this.renderCategories()}
60 |
61 |
62 |
63 | );
64 | }
65 | }
66 |
67 | const mapStateToProps = ({ data }) => ({
68 | categoryData: data,
69 | });
70 |
71 | export default connect(mapStateToProps, actions)(Categories);
72 |
--------------------------------------------------------------------------------
/android/app/src/main/java/org/gdgsrilanka/codelanka/eznet/MainApplication.java:
--------------------------------------------------------------------------------
1 | package org.gdgsrilanka.codelanka.eznet;
2 |
3 | import android.app.Application;
4 | import android.util.Log;
5 |
6 | import com.facebook.react.ReactApplication;
7 | import com.oblador.vectoricons.VectorIconsPackage;
8 | import com.facebook.react.ReactInstanceManager;
9 | import com.facebook.react.ReactNativeHost;
10 | import com.facebook.react.ReactPackage;
11 | import com.facebook.react.shell.MainReactPackage;
12 | import com.facebook.soloader.SoLoader;
13 | import java.util.Arrays;
14 | import java.util.List;
15 |
16 | import io.invertase.firebase.RNFirebasePackage;
17 | import io.invertase.firebase.analytics.RNFirebaseAnalyticsPackage;
18 | import io.invertase.firebase.crash.RNFirebaseCrashPackage;
19 | import io.invertase.firebase.perf.RNFirebasePerformancePackage;
20 |
21 | public class MainApplication extends Application implements ReactApplication {
22 |
23 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
24 | @Override
25 | public boolean getUseDeveloperSupport() {
26 | return BuildConfig.DEBUG;
27 | }
28 |
29 | @Override
30 | protected List getPackages() {
31 | return Arrays.asList(
32 | new MainReactPackage(),
33 | new RNFirebasePackage(),
34 | new RNFirebaseAnalyticsPackage(),
35 | new RNFirebaseCrashPackage(),
36 | new RNFirebasePerformancePackage(),
37 | new VectorIconsPackage()
38 | );
39 | }
40 | };
41 |
42 | @Override
43 | public ReactNativeHost getReactNativeHost() {
44 | return mReactNativeHost;
45 | }
46 |
47 | @Override
48 | public void onCreate() {
49 | super.onCreate();
50 | SoLoader.init(this, /* native exopackage */ false);
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/android/app/BUCK:
--------------------------------------------------------------------------------
1 | import re
2 |
3 | # To learn about Buck see [Docs](https://buckbuild.com/).
4 | # To run your application with Buck:
5 | # - install Buck
6 | # - `npm start` - to start the packager
7 | # - `cd android`
8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
10 | # - `buck install -r android/app` - compile, install and run application
11 | #
12 |
13 | lib_deps = []
14 | for jarfile in glob(['libs/*.jar']):
15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile)
16 | lib_deps.append(':' + name)
17 | prebuilt_jar(
18 | name = name,
19 | binary_jar = jarfile,
20 | )
21 |
22 | for aarfile in glob(['libs/*.aar']):
23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile)
24 | lib_deps.append(':' + name)
25 | android_prebuilt_aar(
26 | name = name,
27 | aar = aarfile,
28 | )
29 |
30 | android_library(
31 | name = 'all-libs',
32 | exported_deps = lib_deps
33 | )
34 |
35 | android_library(
36 | name = 'app-code',
37 | srcs = glob([
38 | 'src/main/java/**/*.java',
39 | ]),
40 | deps = [
41 | ':all-libs',
42 | ':build_config',
43 | ':res',
44 | ],
45 | )
46 |
47 | android_build_config(
48 | name = 'build_config',
49 | package = 'org.gdgsrilanka.codelanka.eznet',
50 | )
51 |
52 | android_resource(
53 | name = 'res',
54 | res = 'src/main/res',
55 | package = 'org.gdgsrilanka.codelanka.eznet',
56 | )
57 |
58 | android_binary(
59 | name = 'app',
60 | package_type = 'debug',
61 | manifest = 'src/main/AndroidManifest.xml',
62 | keystore = '//android/keystores:debug',
63 | deps = [
64 | ':app-code',
65 | ],
66 | )
67 |
--------------------------------------------------------------------------------
/ios/EZNet-tvOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UIViewControllerBasedStatusBarAppearance
38 |
39 | NSLocationWhenInUseUsageDescription
40 |
41 | NSAppTransportSecurity
42 |
43 |
44 | NSExceptionDomains
45 |
46 | localhost
47 |
48 | NSExceptionAllowsInsecureHTTPLoads
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/ios/EZNet/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | EZNet
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UIViewControllerBasedStatusBarAppearance
40 |
41 | NSLocationWhenInUseUsageDescription
42 |
43 | NSAppTransportSecurity
44 |
45 | NSExceptionDomains
46 |
47 | localhost
48 |
49 | NSExceptionAllowsInsecureHTTPLoads
50 |
51 |
52 |
53 |
54 | UIAppFonts
55 |
56 | Entypo.ttf
57 | EvilIcons.ttf
58 | FontAwesome.ttf
59 | Foundation.ttf
60 | Ionicons.ttf
61 | MaterialIcons.ttf
62 | Octicons.ttf
63 | Roboto_medium.ttf
64 | Roboto.ttf
65 | rubicon-icon-font.ttf
66 | SimpleLineIcons.ttf
67 | Zocial.ttf
68 |
69 |
70 |
71 |
--------------------------------------------------------------------------------
/ios/EZNetTests/EZNetTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 | #import
12 |
13 | #import
14 | #import
15 |
16 | #define TIMEOUT_SECONDS 600
17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
18 |
19 | @interface EZNetTests : XCTestCase
20 |
21 | @end
22 |
23 | @implementation EZNetTests
24 |
25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
26 | {
27 | if (test(view)) {
28 | return YES;
29 | }
30 | for (UIView *subview in [view subviews]) {
31 | if ([self findSubviewInView:subview matching:test]) {
32 | return YES;
33 | }
34 | }
35 | return NO;
36 | }
37 |
38 | - (void)testRendersWelcomeScreen
39 | {
40 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
42 | BOOL foundElement = NO;
43 |
44 | __block NSString *redboxError = nil;
45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
46 | if (level >= RCTLogLevelError) {
47 | redboxError = message;
48 | }
49 | });
50 |
51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
54 |
55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
57 | return YES;
58 | }
59 | return NO;
60 | }];
61 | }
62 |
63 | RCTSetLogFunction(RCTDefaultLogFunction);
64 |
65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
67 | }
68 |
69 |
70 | @end
71 |
--------------------------------------------------------------------------------
/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Disabling obfuscation is useful if you collect stack traces from production crashes
20 | # (unless you are using a system that supports de-obfuscate the stack traces).
21 | -dontobfuscate
22 |
23 | # React Native
24 |
25 | # Keep our interfaces so they can be used by other ProGuard rules.
26 | # See http://sourceforge.net/p/proguard/bugs/466/
27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
30 |
31 | # Do not strip any method/class that is annotated with @DoNotStrip
32 | -keep @com.facebook.proguard.annotations.DoNotStrip class *
33 | -keep @com.facebook.common.internal.DoNotStrip class *
34 | -keepclassmembers class * {
35 | @com.facebook.proguard.annotations.DoNotStrip *;
36 | @com.facebook.common.internal.DoNotStrip *;
37 | }
38 |
39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
40 | void set*(***);
41 | *** get*();
42 | }
43 |
44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; }
46 | -keepclassmembers,includedescriptorclasses class * { native ; }
47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; }
49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; }
50 |
51 | -dontwarn com.facebook.react.**
52 |
53 | # okhttp
54 |
55 | -keepattributes Signature
56 | -keepattributes *Annotation*
57 | -keep class okhttp3.** { *; }
58 | -keep interface okhttp3.** { *; }
59 | -dontwarn okhttp3.**
60 |
61 | # okio
62 |
63 | -keep class sun.misc.Unsafe { *; }
64 | -dontwarn java.nio.file.*
65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
66 | -dontwarn okio.**
67 |
--------------------------------------------------------------------------------
/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/ios/EZNet/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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # EZNet App [](https://travis-ci.org/CodeLanka/ez-net-app) [](https://www.codacy.com/app/agentmilindu/ez-net-app?utm_source=github.com&utm_medium=referral&utm_content=CodeLanka/ez-net-app&utm_campaign=Badge_Grade) [](https://www.codetriage.com/codelanka/ez-net-app)
2 |
3 |
4 | 
5 |
6 | ## Overview
7 | EZ Net is an application developed for rural internet users which are not tech savy and shows interest in the internet and the resources it has.
8 |
9 | It contains simple images to assist the user to open a webpage by clicking through app pages. This app is supposed to help the user familiarize with the web, and it would serve its purpose for users who are also new to the smartphone.
10 |
11 | ### Idea
12 | We would have a main page with several icons of title type
13 | e.g. News Papers, TV/Radio, Recipies, Religious material etc.
14 |
15 | When the user clicks one category, webpages related to that category open up. There should be a few notably easy ones to click, and then maybe a "more..." button which shows more links. The idea is to have all as icons with their usual logos.
16 |
17 | When the user clicks the logo, the link should open up in the default browser. We need not complicate this app with browser capabilities.
18 |
19 | ### Design examples
20 | You may use the following as a guideline to build
21 |
22 |
23 |
24 |
25 |
26 | ## Where did this start?
27 | This project is done to assist a sustainability project done by Dialog Axiata to help out bridge the gender gap in internet users in Sri Lanka.
28 | The need for this app arose when sustainability initiatives saw that most users like to browse the net, but are reluctant or is uneasy to type using the on screen soft keyboard of the mobile phone.
29 |
30 | Therefore we decided we would pitch in and help users to start their internet experience and help them get familiarized with webpages in their first stages of accessing the internet.
31 |
32 | ## Why is Codelanka and GDG doing this? Isn't this some company's problem?
33 | The reasons this project was taken up by codelanka are;
34 | - If a commercial organization got this project they will try to earn money out of this and display paid ad-type links in the app
35 | - Even if paid ad-type links are probable, it would be hard for someone to monetize this app, making it nonsensible for a for-profit venture
36 | - Making the app will help a lot of people
37 |
38 | Codelanka's core is to make software which help people but doesn't make any sense when it comes to monetization.
39 |
40 | ## What can I do?
41 | Fork, take up an issue, and then work on it. Then create pull requests. The usual deal. We want everyone who are interested to come and pitch in to bring our rural communities to the internet and the possibilities it offer.
42 |
43 | ## Uh, wait, this is in React Native! I don't know React Native. (Can't we just use Java and Swift?)
44 | Fantastic. You're exactly whom we're looking for! Me, the README writer even don't know the language. Isn't it great? You now have a real world problem to solve while learning something new.! You'll be able to learn React Native AND help a lot of people. Wouldn't that be fun?
45 |
46 | ## How to start
47 |
48 | This is a React Native app, thus you have to have tools neede for React and React native like NodeJS, NPM, ( Yarn ), etc. Android tools if you are building on Android. ( And iOS tools if you are building on iOS. )
49 |
50 | Issue a `yarn` or `npm install` to get all the dependencies. Run with `yarn start` or `npm start`. You should have an Android virtual Device running.
51 |
52 | Look at `App.js` as a starting point. ;)
53 |
54 | ## Licensing
55 | This application is licensed under the MIT license
56 |
57 | Lets work together and make this possible.
58 |
59 |
60 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # Created by https://www.gitignore.io/api/reactnative
3 |
4 | ### ReactNative ###
5 | # React Native Stack Base
6 | ### ReactNative.Buck Stack ###
7 | buck-out/
8 | .buckconfig.local
9 | .buckd/
10 | .buckversion
11 | .fakebuckversion
12 |
13 | ### ReactNative.macOS Stack ###
14 | *.DS_Store
15 | .AppleDouble
16 | .LSOverride
17 |
18 | # Icon must end with two \r
19 | Icon
20 |
21 |
22 | # Thumbnails
23 | ._*
24 |
25 | # Files that might appear in the root of a volume
26 | .DocumentRevisions-V100
27 | .fseventsd
28 | .Spotlight-V100
29 | .TemporaryItems
30 | .Trashes
31 | .VolumeIcon.icns
32 | .com.apple.timemachine.donotpresent
33 |
34 | # Directories potentially created on remote AFP share
35 | .AppleDB
36 | .AppleDesktop
37 | Network Trash Folder
38 | Temporary Items
39 | .apdisk
40 |
41 | ### ReactNative.Android Stack ###
42 | # Built application files
43 | *.apk
44 | *.ap_
45 |
46 | # Files for the ART/Dalvik VM
47 | *.dex
48 |
49 | # Java class files
50 | *.class
51 |
52 | # Generated files
53 | bin/
54 | gen/
55 | out/
56 |
57 | # Gradle files
58 | .gradle/
59 | build/
60 |
61 | # Local configuration file (sdk path, etc)
62 | local.properties
63 |
64 | # Proguard folder generated by Eclipse
65 | proguard/
66 |
67 | # Log Files
68 | *.log
69 |
70 | # Android Studio Navigation editor temp files
71 | .navigation/
72 |
73 | # Android Studio captures folder
74 | captures/
75 |
76 | # Intellij
77 | *.iml
78 | .idea/workspace.xml
79 | .idea/tasks.xml
80 | .idea/gradle.xml
81 | .idea/dictionaries
82 | .idea/libraries
83 |
84 | # External native build folder generated in Android Studio 2.2 and later
85 | .externalNativeBuild
86 |
87 | # Freeline
88 | freeline.py
89 | freeline/
90 | freeline_project_description.json
91 |
92 | ### ReactNative.Gradle Stack ###
93 | .gradle
94 | **/build/
95 |
96 | # Ignore Gradle GUI config
97 | gradle-app.setting
98 |
99 | # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
100 | !gradle-wrapper.jar
101 |
102 | # Cache of project
103 | .gradletasknamecache
104 |
105 | # # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
106 | # gradle/wrapper/gradle-wrapper.properties
107 |
108 | ### ReactNative.Xcode Stack ###
109 | # Xcode
110 | #
111 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
112 |
113 | ## Build generated
114 | DerivedData/
115 |
116 | ## Various settings
117 | *.pbxuser
118 | !default.pbxuser
119 | *.mode1v3
120 | !default.mode1v3
121 | *.mode2v3
122 | !default.mode2v3
123 | *.perspectivev3
124 | !default.perspectivev3
125 | xcuserdata/
126 |
127 | ## Other
128 | *.moved-aside
129 | *.xccheckout
130 | *.xcscmblueprint
131 |
132 | ### ReactNative.Linux Stack ###
133 | *~
134 |
135 | # temporary files which can be created if a process still has a handle open of a deleted file
136 | .fuse_hidden*
137 |
138 | # KDE directory preferences
139 | .directory
140 |
141 | # Linux trash folder which might appear on any partition or disk
142 | .Trash-*
143 |
144 | # .nfs files are created when an open file is removed but is still being accessed
145 | .nfs*
146 |
147 | ### ReactNative.Node Stack ###
148 | # Logs
149 | logs
150 | npm-debug.log*
151 | yarn-debug.log*
152 | yarn-error.log*
153 |
154 | # Runtime data
155 | pids
156 | *.pid
157 | *.seed
158 | *.pid.lock
159 |
160 | # Directory for instrumented libs generated by jscoverage/JSCover
161 | lib-cov
162 |
163 | # Coverage directory used by tools like istanbul
164 | coverage
165 |
166 | # nyc test coverage
167 | .nyc_output
168 |
169 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
170 | .grunt
171 |
172 | # Bower dependency directory (https://bower.io/)
173 | bower_components
174 |
175 | # node-waf configuration
176 | .lock-wscript
177 |
178 | # Compiled binary addons (http://nodejs.org/api/addons.html)
179 | build/Release
180 |
181 | # Dependency directories
182 | node_modules/
183 | jspm_packages/
184 |
185 | # Typescript v1 declaration files
186 | typings/
187 |
188 | # Optional npm cache directory
189 | .npm
190 |
191 | # Optional eslint cache
192 | .eslintcache
193 |
194 | # Optional REPL history
195 | .node_repl_history
196 |
197 | # Output of 'npm pack'
198 | *.tgz
199 |
200 | # Yarn Integrity file
201 | .yarn-integrity
202 |
203 | # dotenv environment variables file
204 | .env
205 |
206 |
207 | # End of https://www.gitignore.io/api/reactnative
208 |
--------------------------------------------------------------------------------
/Privacy-Policy.md:
--------------------------------------------------------------------------------
1 | ## Privacy Policy
2 |
3 | GDG Sri Lanka built the EZNet app as an Open Source app. This SERVICE is provided by GDG Sri Lanka at no cost and is intended for use as is.
4 |
5 | This page is used to inform website visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.
6 |
7 | If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.
8 |
9 | The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at EZNet unless otherwise defined in this Privacy Policy.
10 |
11 | **Information Collection and Use**
12 |
13 | For a better experience, while using our Service, we may require you to provide us with certain personally identifiable information. The information that we request is will be retained by us and used as described in this privacy policy.
14 |
15 | The app does use third party services that may collect information used to identify you.
16 |
17 |
18 |
19 | Link to privacy policy of third party service providers used by the app
20 |
21 | * [Google Play Services](https://www.google.com/policies/privacy/)
22 | * [Firebase Analytics](https://firebase.google.com/policies/analytics)
23 |
24 |
25 |
26 | **Log Data**
27 |
28 | We want to inform you that whenever you use our Service, in a case of an error in the app we collect data and information (through third party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing our Service, the time and date of your use of the Service, and other statistics.
29 |
30 | **Cookies**
31 |
32 | Cookies are files with small amount of data that is commonly used an anonymous unique identifier. These are sent to your browser from the website that you visit and are stored on your device internal memory.
33 |
34 | This Service does not use these “cookies” explicitly. However, the app may use third party code and libraries that use “cookies” to collection information and to improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service.
35 |
36 | **Service Providers**
37 |
38 | We may employ third-party companies and individuals due to the following reasons:
39 |
40 | * To facilitate our Service;
41 | * To provide the Service on our behalf;
42 | * To perform Service-related services; or
43 | * To assist us in analyzing how our Service is used.
44 |
45 | We want to inform users of this Service that these third parties have access to your Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.
46 |
47 | **Security**
48 |
49 | We value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and we cannot guarantee its absolute security.
50 |
51 | **Links to Other Sites**
52 |
53 | This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by us. Therefore, we strongly advise you to review the Privacy Policy of these websites. We have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.
54 |
55 | **Children’s Privacy**
56 |
57 | These Services do not address anyone under the age of 13\. We do not knowingly collect personally identifiable information from children under 13\. In the case we discover that a child under 13 has provided us with personal information, we immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us so that we will be able to do necessary actions.
58 |
59 | **Changes to This Privacy Policy**
60 |
61 | We may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. We will notify you of any changes by posting the new Privacy Policy on this page. These changes are effective immediately after they are posted on this page.
62 |
63 | **Contact Us**
64 |
65 | If you have any questions or suggestions about our Privacy Policy, do not hesitate to contact us.
66 |
67 | This privacy policy page was created at [privacypolicytemplate.net](https://privacypolicytemplate.net) and modified/generated by [App Privacy Policy Generator](https://app-privacy-policy-generator.firebaseapp.com/)
68 |
--------------------------------------------------------------------------------
/Privacy-Policy.html:
--------------------------------------------------------------------------------
1 | Privacy Policy
Privacy Policy
GDG Sri Lanka built the EZNet app as an Open Source app. This SERVICE is provided by GDG Sri Lanka at no cost and is intended for use as is.
This page is used to inform website visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.
If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at EZNet unless otherwise defined in this Privacy Policy.
Information Collection and Use
For a better experience, while using our Service, we may require you to provide us with certain personally identifiable information. The information that we request is will be retained by us and used as described in this privacy policy.
The app does use third party services that may collect information used to identify you.
Link to privacy policy of third party service providers used by the app
We want to inform you that whenever you use our Service, in a case of an error in the app we collect data and information (through third party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing our Service, the time and date of your use of the Service, and other statistics.
Cookies
Cookies are files with small amount of data that is commonly used an anonymous unique identifier. These are sent to your browser from the website that you visit and are stored on your device internal memory.
This Service does not use these “cookies” explicitly. However, the app may use third party code and libraries that use “cookies” to collection information and to improve their services. You have the option to either accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to refuse our cookies, you may not be able to use some portions of this Service.
Service Providers
We may employ third-party companies and individuals due to the following reasons:
To facilitate our Service;
To provide the Service on our behalf;
To perform Service-related services; or
To assist us in analyzing how our Service is used.
We want to inform users of this Service that these third parties have access to your Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.
Security
We value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and we cannot guarantee its absolute security.
Links to Other Sites
This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by us. Therefore, we strongly advise you to review the Privacy Policy of these websites. We have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.
Children’s Privacy
These Services do not address anyone under the age of 13. We do not knowingly collect personally identifiable information from children under 13. In the case we discover that a child under 13 has provided us with personal information, we immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact us so that we will be able to do necessary actions.
Changes to This Privacy Policy
We may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. We will notify you of any changes by posting the new Privacy Policy on this page. These changes are effective immediately after they are posted on this page.
Contact Us
If you have any questions or suggestions about our Privacy Policy, do not hesitate to contact us.