/node_modules/react-native/Libraries/Image/RelativeImageStub'
39 |
40 | suppress_type=$FlowIssue
41 | suppress_type=$FlowFixMe
42 | suppress_type=$FlowFixMeProps
43 | suppress_type=$FlowFixMeState
44 |
45 | [lints]
46 | sketchy-null-number=warn
47 | sketchy-null-mixed=warn
48 | sketchy-number=warn
49 | untyped-type-import=warn
50 | nonstrict-import=warn
51 | deprecated-type=warn
52 | unsafe-getters-setters=warn
53 | unnecessary-invariant=warn
54 | signature-verification-failure=warn
55 |
56 | [strict]
57 | deprecated-type
58 | nonstrict-import
59 | sketchy-null
60 | unclear-type
61 | unsafe-getters-setters
62 | untyped-import
63 | untyped-type-import
64 |
65 | [version]
66 | ^0.137.0
67 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/.gitattributes:
--------------------------------------------------------------------------------
1 | # Windows files should use crlf line endings
2 | # https://help.github.com/articles/dealing-with-line-endings/
3 | *.bat text eol=crlf
4 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 |
24 | # Android/IntelliJ
25 | #
26 | build/
27 | .idea
28 | .gradle
29 | local.properties
30 | *.iml
31 |
32 | # node.js
33 | #
34 | node_modules/
35 | npm-debug.log
36 | yarn-error.log
37 |
38 | # BUCK
39 | buck-out/
40 | \.buckd/
41 | *.keystore
42 | !debug.keystore
43 |
44 | # fastlane
45 | #
46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
47 | # screenshots whenever they are needed.
48 | # For more information about the recommended setup visit:
49 | # https://docs.fastlane.tools/best-practices/source-control/
50 |
51 | */fastlane/report.xml
52 | */fastlane/Preview.html
53 | */fastlane/screenshots
54 |
55 | # Bundle artifact
56 | *.jsbundle
57 |
58 | # CocoaPods
59 | /ios/Pods/
60 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/.prettierrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | bracketSpacing: false,
3 | jsxBracketSameLine: true,
4 | singleQuote: true,
5 | trailingComma: 'all',
6 | arrowParens: 'avoid',
7 | };
8 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/App.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | *
5 | * @format
6 | * @flow strict-local
7 | */
8 |
9 | import React from 'react';
10 | import type {Node} from 'react';
11 | import {
12 | Image,
13 | SafeAreaView,
14 | ScrollView,
15 | StatusBar,
16 | StyleSheet,
17 | Text,
18 | useColorScheme,
19 | View,
20 | } from 'react-native';
21 |
22 | import {
23 | Colors,
24 | DebugInstructions,
25 | Header,
26 | LearnMoreLinks,
27 | ReloadInstructions,
28 | } from 'react-native/Libraries/NewAppScreen';
29 |
30 | const approvedIcon = require('./src/images/approved.png');
31 |
32 | const Section = ({children, title}): Node => {
33 | const isDarkMode = useColorScheme() === 'dark';
34 | return (
35 |
36 |
43 | {title}
44 |
45 |
52 | {children}
53 |
54 |
55 | );
56 | };
57 |
58 | const App: () => Node = () => {
59 | const isDarkMode = useColorScheme() === 'dark';
60 |
61 | const backgroundStyle = {
62 | backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
63 | };
64 |
65 | return (
66 |
67 |
68 |
71 | Approved icon:
72 |
73 |
74 |
75 | Learniti icon:
76 |
80 | This is a normal Text
81 | This is a semi bold Text
82 | This is a bold Text
83 |
84 | phone-24x7 {String.fromCharCode(0xe900)}
85 |
86 |
87 | alarm-bell {String.fromCharCode(0xe903)}
88 |
89 |
90 | double-bed {String.fromCharCode(0xe912)}
91 |
92 |
93 | briefcase {String.fromCharCode(0xe917)}
94 |
95 |
96 | airport {String.fromCharCode(0xe902)}
97 |
98 |
99 |
103 |
104 | Edit App.js to change this
105 | screen and then come back to see your edits.
106 |
107 |
110 |
113 |
114 | Read the docs to discover what to do next:
115 |
116 |
117 |
118 |
119 |
120 | );
121 | };
122 |
123 | const styles = StyleSheet.create({
124 | sectionContainer: {
125 | marginTop: 32,
126 | paddingHorizontal: 24,
127 | },
128 | sectionTitle: {
129 | fontSize: 24,
130 | fontWeight: '600',
131 | },
132 | sectionDescription: {
133 | marginTop: 8,
134 | fontSize: 18,
135 | fontWeight: '400',
136 | },
137 | highlight: {
138 | fontWeight: '700',
139 | },
140 | semiBold: {
141 | fontFamily: 'Roboto-Medium'
142 | },
143 | bold: {
144 | fontWeight: 'bold'
145 | },
146 | happyHotels: {
147 | fontFamily: 'happyHotels',
148 | fontSize: 48
149 | }
150 | });
151 |
152 | export default App;
153 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/__tests__/App-test.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | */
4 |
5 | import 'react-native';
6 | import React from 'react';
7 | import App from '../App';
8 |
9 | // Note: test renderer must be required after react-native.
10 | import renderer from 'react-test-renderer';
11 |
12 | it('renders correctly', () => {
13 | renderer.create();
14 | });
15 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/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.ingornaltacco",
39 | )
40 |
41 | android_resource(
42 | name = "res",
43 | package = "com.ingornaltacco",
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 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation. If none specified and
19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is
20 | * // default. Can be overridden with ENTRY_FILE environment variable.
21 | * entryFile: "index.android.js",
22 | *
23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format
24 | * bundleCommand: "ram-bundle",
25 | *
26 | * // whether to bundle JS and assets in debug mode
27 | * bundleInDebug: false,
28 | *
29 | * // whether to bundle JS and assets in release mode
30 | * bundleInRelease: true,
31 | *
32 | * // whether to bundle JS and assets in another build variant (if configured).
33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
34 | * // The configuration property can be in the following formats
35 | * // 'bundleIn${productFlavor}${buildType}'
36 | * // 'bundleIn${buildType}'
37 | * // bundleInFreeDebug: true,
38 | * // bundleInPaidRelease: true,
39 | * // bundleInBeta: true,
40 | *
41 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
42 | * // for example: to disable dev mode in the staging build type (if configured)
43 | * devDisabledInStaging: true,
44 | * // The configuration property can be in the following formats
45 | * // 'devDisabledIn${productFlavor}${buildType}'
46 | * // 'devDisabledIn${buildType}'
47 | *
48 | * // the root of your project, i.e. where "package.json" lives
49 | * root: "../../",
50 | *
51 | * // where to put the JS bundle asset in debug mode
52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
53 | *
54 | * // where to put the JS bundle asset in release mode
55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
56 | *
57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
58 | * // require('./image.png')), in debug mode
59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
60 | *
61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
62 | * // require('./image.png')), in release mode
63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
64 | *
65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
69 | * // for example, you might want to remove it from here.
70 | * inputExcludes: ["android/**", "ios/**"],
71 | *
72 | * // override which node gets called and with what additional arguments
73 | * nodeExecutableAndArgs: ["node"],
74 | *
75 | * // supply additional arguments to the packager
76 | * extraPackagerArgs: []
77 | * ]
78 | */
79 |
80 | project.ext.react = [
81 | enableHermes: false, // clean and rebuild if changing
82 | ]
83 |
84 | apply from: "../../node_modules/react-native/react.gradle"
85 |
86 | /**
87 | * Set this to true to create two separate APKs instead of one:
88 | * - An APK that only works on ARM devices
89 | * - An APK that only works on x86 devices
90 | * The advantage is the size of the APK is reduced by about 4MB.
91 | * Upload all the APKs to the Play Store and people will download
92 | * the correct one based on the CPU architecture of their device.
93 | */
94 | def enableSeparateBuildPerCPUArchitecture = false
95 |
96 | /**
97 | * Run Proguard to shrink the Java bytecode in release builds.
98 | */
99 | def enableProguardInReleaseBuilds = false
100 |
101 | /**
102 | * The preferred build flavor of JavaScriptCore.
103 | *
104 | * For example, to use the international variant, you can use:
105 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
106 | *
107 | * The international variant includes ICU i18n library and necessary data
108 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
109 | * give correct results when using with locales other than en-US. Note that
110 | * this variant is about 6MiB larger per architecture than default.
111 | */
112 | def jscFlavor = 'org.webkit:android-jsc:+'
113 |
114 | /**
115 | * Whether to enable the Hermes VM.
116 | *
117 | * This should be set on project.ext.react and mirrored here. If it is not set
118 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
119 | * and the benefits of using Hermes will therefore be sharply reduced.
120 | */
121 | def enableHermes = project.ext.react.get("enableHermes", false);
122 |
123 | android {
124 | ndkVersion rootProject.ext.ndkVersion
125 |
126 | compileSdkVersion rootProject.ext.compileSdkVersion
127 |
128 | compileOptions {
129 | sourceCompatibility JavaVersion.VERSION_1_8
130 | targetCompatibility JavaVersion.VERSION_1_8
131 | }
132 |
133 | defaultConfig {
134 | applicationId "com.ingornaltacco"
135 | minSdkVersion rootProject.ext.minSdkVersion
136 | targetSdkVersion rootProject.ext.targetSdkVersion
137 | versionCode 1
138 | versionName "1.0"
139 | }
140 | splits {
141 | abi {
142 | reset()
143 | enable enableSeparateBuildPerCPUArchitecture
144 | universalApk false // If true, also generate a universal APK
145 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
146 | }
147 | }
148 | signingConfigs {
149 | debug {
150 | storeFile file('debug.keystore')
151 | storePassword 'android'
152 | keyAlias 'androiddebugkey'
153 | keyPassword 'android'
154 | }
155 | }
156 | buildTypes {
157 | debug {
158 | signingConfig signingConfigs.debug
159 | }
160 | release {
161 | // Caution! In production, you need to generate your own keystore file.
162 | // see https://reactnative.dev/docs/signed-apk-android.
163 | signingConfig signingConfigs.debug
164 | minifyEnabled enableProguardInReleaseBuilds
165 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
166 | }
167 | }
168 |
169 | // applicationVariants are e.g. debug, release
170 | applicationVariants.all { variant ->
171 | variant.outputs.each { output ->
172 | // For each separate APK per architecture, set a unique version code as described here:
173 | // https://developer.android.com/studio/build/configure-apk-splits.html
174 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
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 | defaultConfig.versionCode * 1000 + versionCodes.get(abi)
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 |
191 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
192 |
193 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
194 | exclude group:'com.facebook.fbjni'
195 | }
196 |
197 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
198 | exclude group:'com.facebook.flipper'
199 | exclude group:'com.squareup.okhttp3', module:'okhttp'
200 | }
201 |
202 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
203 | exclude group:'com.facebook.flipper'
204 | }
205 |
206 | if (enableHermes) {
207 | def hermesPath = "../../node_modules/hermes-engine/android/";
208 | debugImplementation files(hermesPath + "hermes-debug.aar")
209 | releaseImplementation files(hermesPath + "hermes-release.aar")
210 | } else {
211 | implementation jscFlavor
212 | }
213 | }
214 |
215 | // Run this once to be able to run the application with BUCK
216 | // puts all compile dependencies into folder libs for BUCK to use
217 | task copyDownloadableDepsToLibs(type: Copy) {
218 | from configurations.compile
219 | into 'libs'
220 | }
221 |
222 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
223 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/build_defs.bzl:
--------------------------------------------------------------------------------
1 | """Helper definitions to glob .aar and .jar targets"""
2 |
3 | def create_aar_targets(aarfiles):
4 | for aarfile in aarfiles:
5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
6 | lib_deps.append(":" + name)
7 | android_prebuilt_aar(
8 | name = name,
9 | aar = aarfile,
10 | )
11 |
12 | def create_jar_targets(jarfiles):
13 | for jarfile in jarfiles:
14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
15 | lib_deps.append(":" + name)
16 | prebuilt_jar(
17 | name = name,
18 | binary_jar = jarfile,
19 | )
20 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/debug.keystore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/app/debug.keystore
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/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 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/debug/java/com/ingornaltacco/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.ingornaltacco;
8 |
9 | import android.content.Context;
10 | import com.facebook.flipper.android.AndroidFlipperClient;
11 | import com.facebook.flipper.android.utils.FlipperUtils;
12 | import com.facebook.flipper.core.FlipperClient;
13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
22 | import com.facebook.react.ReactInstanceManager;
23 | import com.facebook.react.bridge.ReactContext;
24 | import com.facebook.react.modules.network.NetworkingModule;
25 | import okhttp3.OkHttpClient;
26 |
27 | public class ReactNativeFlipper {
28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
29 | if (FlipperUtils.shouldEnableFlipper(context)) {
30 | final FlipperClient client = AndroidFlipperClient.getInstance(context);
31 |
32 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
33 | client.addPlugin(new ReactFlipperPlugin());
34 | client.addPlugin(new DatabasesFlipperPlugin(context));
35 | client.addPlugin(new SharedPreferencesFlipperPlugin(context));
36 | client.addPlugin(CrashReporterPlugin.getInstance());
37 |
38 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
39 | NetworkingModule.setCustomClientBuilder(
40 | new NetworkingModule.CustomClientBuilder() {
41 | @Override
42 | public void apply(OkHttpClient.Builder builder) {
43 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
44 | }
45 | });
46 | client.addPlugin(networkFlipperPlugin);
47 | client.start();
48 |
49 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
50 | // Hence we run if after all native modules have been initialized
51 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
52 | if (reactContext == null) {
53 | reactInstanceManager.addReactInstanceEventListener(
54 | new ReactInstanceManager.ReactInstanceEventListener() {
55 | @Override
56 | public void onReactContextInitialized(ReactContext reactContext) {
57 | reactInstanceManager.removeReactInstanceEventListener(this);
58 | reactContext.runOnNativeModulesQueueThread(
59 | new Runnable() {
60 | @Override
61 | public void run() {
62 | client.addPlugin(new FrescoFlipperPlugin());
63 | }
64 | });
65 | }
66 | });
67 | } else {
68 | client.addPlugin(new FrescoFlipperPlugin());
69 | }
70 | }
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
13 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/assets/fonts/Roboto-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/app/src/main/assets/fonts/Roboto-Medium.ttf
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/assets/fonts/happyHotels.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/app/src/main/assets/fonts/happyHotels.ttf
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/java/com/ingornaltacco/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.ingornaltacco;
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. This is used to schedule
9 | * rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "IngoRnAltAcco";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/java/com/ingornaltacco/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.ingornaltacco;
2 |
3 | import android.app.Application;
4 | import android.content.Context;
5 | import com.facebook.react.PackageList;
6 | import com.facebook.react.ReactApplication;
7 | import com.facebook.react.ReactInstanceManager;
8 | import com.facebook.react.ReactNativeHost;
9 | import com.facebook.react.ReactPackage;
10 | import com.facebook.soloader.SoLoader;
11 | import java.lang.reflect.InvocationTargetException;
12 | import java.util.List;
13 |
14 | public class MainApplication extends Application implements ReactApplication {
15 |
16 | private final ReactNativeHost mReactNativeHost =
17 | new ReactNativeHost(this) {
18 | @Override
19 | public boolean getUseDeveloperSupport() {
20 | return BuildConfig.DEBUG;
21 | }
22 |
23 | @Override
24 | protected List getPackages() {
25 | @SuppressWarnings("UnnecessaryLocalVariable")
26 | List packages = new PackageList(this).getPackages();
27 | // Packages that cannot be autolinked yet can be added manually here, for example:
28 | // packages.add(new MyReactNativePackage());
29 | return packages;
30 | }
31 |
32 | @Override
33 | protected String getJSMainModuleName() {
34 | return "index";
35 | }
36 | };
37 |
38 | @Override
39 | public ReactNativeHost getReactNativeHost() {
40 | return mReactNativeHost;
41 | }
42 |
43 | @Override
44 | public void onCreate() {
45 | super.onCreate();
46 | SoLoader.init(this, /* native exopackage */ false);
47 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
48 | }
49 |
50 | /**
51 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like
52 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
53 | *
54 | * @param context
55 | * @param reactInstanceManager
56 | */
57 | private static void initializeFlipper(
58 | Context context, ReactInstanceManager reactInstanceManager) {
59 | if (BuildConfig.DEBUG) {
60 | try {
61 | /*
62 | We use reflection here to pick up the class that initializes Flipper,
63 | since Flipper library is not available in release mode
64 | */
65 | Class> aClass = Class.forName("com.ingornaltacco.ReactNativeFlipper");
66 | aClass
67 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
68 | .invoke(null, context, reactInstanceManager);
69 | } catch (ClassNotFoundException e) {
70 | e.printStackTrace();
71 | } catch (NoSuchMethodException e) {
72 | e.printStackTrace();
73 | } catch (IllegalAccessException e) {
74 | e.printStackTrace();
75 | } catch (InvocationTargetException e) {
76 | e.printStackTrace();
77 | }
78 | }
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | IngoRnAltAcco
3 |
4 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext {
5 | buildToolsVersion = "29.0.3"
6 | minSdkVersion = 21
7 | compileSdkVersion = 29
8 | targetSdkVersion = 29
9 | ndkVersion = "20.1.5948944"
10 | }
11 | repositories {
12 | google()
13 | jcenter()
14 | }
15 | dependencies {
16 | classpath("com.android.tools.build:gradle:4.1.0")
17 | // NOTE: Do not place your application dependencies here; they belong
18 | // in the individual module build.gradle files
19 | }
20 | }
21 |
22 | allprojects {
23 | repositories {
24 | mavenLocal()
25 | maven {
26 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
27 | url("$rootDir/../node_modules/react-native/android")
28 | }
29 | maven {
30 | // Android JSC is installed from npm
31 | url("$rootDir/../node_modules/jsc-android/dist")
32 | }
33 |
34 | google()
35 | jcenter()
36 | maven { url 'https://www.jitpack.io' }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | # AndroidX package structure to make it clearer which packages are bundled with the
21 | # Android operating system, and which are packaged with your app's APK
22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
23 | android.useAndroidX=true
24 | # Automatically convert third-party libraries to use AndroidX
25 | android.enableJetifier=true
26 |
27 | # Version of flipper SDK to use with React Native
28 | FLIPPER_VERSION=0.75.1
29 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | #
4 | # Copyright 2015 the original author or authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | ##
21 | ## Gradle start up script for UN*X
22 | ##
23 | ##############################################################################
24 |
25 | # Attempt to set APP_HOME
26 | # Resolve links: $0 may be a link
27 | PRG="$0"
28 | # Need this for relative symlinks.
29 | while [ -h "$PRG" ] ; do
30 | ls=`ls -ld "$PRG"`
31 | link=`expr "$ls" : '.*-> \(.*\)$'`
32 | if expr "$link" : '/.*' > /dev/null; then
33 | PRG="$link"
34 | else
35 | PRG=`dirname "$PRG"`"/$link"
36 | fi
37 | done
38 | SAVED="`pwd`"
39 | cd "`dirname \"$PRG\"`/" >/dev/null
40 | APP_HOME="`pwd -P`"
41 | cd "$SAVED" >/dev/null
42 |
43 | APP_NAME="Gradle"
44 | APP_BASE_NAME=`basename "$0"`
45 |
46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48 |
49 | # Use the maximum available, or set MAX_FD != -1 to use that value.
50 | MAX_FD="maximum"
51 |
52 | warn () {
53 | echo "$*"
54 | }
55 |
56 | die () {
57 | echo
58 | echo "$*"
59 | echo
60 | exit 1
61 | }
62 |
63 | # OS specific support (must be 'true' or 'false').
64 | cygwin=false
65 | msys=false
66 | darwin=false
67 | nonstop=false
68 | case "`uname`" in
69 | CYGWIN* )
70 | cygwin=true
71 | ;;
72 | Darwin* )
73 | darwin=true
74 | ;;
75 | MINGW* )
76 | msys=true
77 | ;;
78 | NONSTOP* )
79 | nonstop=true
80 | ;;
81 | esac
82 |
83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84 |
85 |
86 | # Determine the Java command to use to start the JVM.
87 | if [ -n "$JAVA_HOME" ] ; then
88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
89 | # IBM's JDK on AIX uses strange locations for the executables
90 | JAVACMD="$JAVA_HOME/jre/sh/java"
91 | else
92 | JAVACMD="$JAVA_HOME/bin/java"
93 | fi
94 | if [ ! -x "$JAVACMD" ] ; then
95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96 |
97 | Please set the JAVA_HOME variable in your environment to match the
98 | location of your Java installation."
99 | fi
100 | else
101 | JAVACMD="java"
102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103 |
104 | Please set the JAVA_HOME variable in your environment to match the
105 | location of your Java installation."
106 | fi
107 |
108 | # Increase the maximum file descriptors if we can.
109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
110 | MAX_FD_LIMIT=`ulimit -H -n`
111 | if [ $? -eq 0 ] ; then
112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
113 | MAX_FD="$MAX_FD_LIMIT"
114 | fi
115 | ulimit -n $MAX_FD
116 | if [ $? -ne 0 ] ; then
117 | warn "Could not set maximum file descriptor limit: $MAX_FD"
118 | fi
119 | else
120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
121 | fi
122 | fi
123 |
124 | # For Darwin, add options to specify how the application appears in the dock
125 | if $darwin; then
126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
127 | fi
128 |
129 | # For Cygwin or MSYS, switch paths to Windows format before running java
130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133 |
134 | JAVACMD=`cygpath --unix "$JAVACMD"`
135 |
136 | # We build the pattern for arguments to be converted via cygpath
137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
138 | SEP=""
139 | for dir in $ROOTDIRSRAW ; do
140 | ROOTDIRS="$ROOTDIRS$SEP$dir"
141 | SEP="|"
142 | done
143 | OURCYGPATTERN="(^($ROOTDIRS))"
144 | # Add a user-defined pattern to the cygpath arguments
145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
147 | fi
148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
149 | i=0
150 | for arg in "$@" ; do
151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
153 |
154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
156 | else
157 | eval `echo args$i`="\"$arg\""
158 | fi
159 | i=`expr $i + 1`
160 | done
161 | case $i in
162 | 0) set -- ;;
163 | 1) set -- "$args0" ;;
164 | 2) set -- "$args0" "$args1" ;;
165 | 3) set -- "$args0" "$args1" "$args2" ;;
166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
172 | esac
173 | fi
174 |
175 | # Escape application args
176 | save () {
177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
178 | echo " "
179 | }
180 | APP_ARGS=`save "$@"`
181 |
182 | # Collect all arguments for the java command, following the shell quoting and substitution rules
183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184 |
185 | exec "$JAVACMD" "$@"
186 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'IngoRnAltAcco'
2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3 | include ':app'
4 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "IngoRnAltAcco",
3 | "displayName": "IngoRnAltAcco"
4 | }
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: ['module:metro-react-native-babel-preset'],
3 | };
4 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | */
4 |
5 | import {AppRegistry} from 'react-native';
6 | import App from './App';
7 | import {name as appName} from './app.json';
8 |
9 | AppRegistry.registerComponent(appName, () => App);
10 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/ios/IngoRnAltAcco.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 54;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00E356F31AD99517003FC87E /* IngoRnAltAccoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* IngoRnAltAccoTests.m */; };
11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
14 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
15 | AA6B489643D2420084192225 /* Roboto-Medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CAC59CBF84B648CF8890333D /* Roboto-Medium.ttf */; };
16 | 2C931E99FF5648C098C93DE2 /* happyHotels.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9FCB7A15504041ECA9F2F2E3 /* happyHotels.ttf */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXContainerItemProxy section */
20 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
21 | isa = PBXContainerItemProxy;
22 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
23 | proxyType = 1;
24 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
25 | remoteInfo = IngoRnAltAcco;
26 | };
27 | /* End PBXContainerItemProxy section */
28 |
29 | /* Begin PBXFileReference section */
30 | 00E356EE1AD99517003FC87E /* IngoRnAltAccoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = IngoRnAltAccoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
31 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
32 | 00E356F21AD99517003FC87E /* IngoRnAltAccoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = IngoRnAltAccoTests.m; sourceTree = ""; };
33 | 13B07F961A680F5B00A75B9A /* IngoRnAltAcco.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IngoRnAltAcco.app; sourceTree = BUILT_PRODUCTS_DIR; };
34 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = IngoRnAltAcco/AppDelegate.h; sourceTree = ""; };
35 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = IngoRnAltAcco/AppDelegate.m; sourceTree = ""; };
36 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = IngoRnAltAcco/Images.xcassets; sourceTree = ""; };
37 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = IngoRnAltAcco/Info.plist; sourceTree = ""; };
38 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = IngoRnAltAcco/main.m; sourceTree = ""; };
39 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = IngoRnAltAcco/LaunchScreen.storyboard; sourceTree = ""; };
40 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
41 | CAC59CBF84B648CF8890333D /* Roboto-Medium.ttf */ = {isa = PBXFileReference; name = "Roboto-Medium.ttf"; path = "../src/assets/fonts/Roboto-Medium.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
42 | 9FCB7A15504041ECA9F2F2E3 /* happyHotels.ttf */ = {isa = PBXFileReference; name = "happyHotels.ttf"; path = "../src/assets/fonts/happyHotels.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
43 | /* End PBXFileReference section */
44 |
45 | /* Begin PBXFrameworksBuildPhase section */
46 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
47 | isa = PBXFrameworksBuildPhase;
48 | buildActionMask = 2147483647;
49 | files = (
50 | );
51 | runOnlyForDeploymentPostprocessing = 0;
52 | };
53 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | );
58 | runOnlyForDeploymentPostprocessing = 0;
59 | };
60 | /* End PBXFrameworksBuildPhase section */
61 |
62 | /* Begin PBXGroup section */
63 | 00E356EF1AD99517003FC87E /* IngoRnAltAccoTests */ = {
64 | isa = PBXGroup;
65 | children = (
66 | 00E356F21AD99517003FC87E /* IngoRnAltAccoTests.m */,
67 | 00E356F01AD99517003FC87E /* Supporting Files */,
68 | );
69 | path = IngoRnAltAccoTests;
70 | sourceTree = "";
71 | };
72 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
73 | isa = PBXGroup;
74 | children = (
75 | 00E356F11AD99517003FC87E /* Info.plist */,
76 | );
77 | name = "Supporting Files";
78 | sourceTree = "";
79 | };
80 | 13B07FAE1A68108700A75B9A /* IngoRnAltAcco */ = {
81 | isa = PBXGroup;
82 | children = (
83 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
84 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
85 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
86 | 13B07FB61A68108700A75B9A /* Info.plist */,
87 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
88 | 13B07FB71A68108700A75B9A /* main.m */,
89 | );
90 | name = IngoRnAltAcco;
91 | sourceTree = "";
92 | };
93 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
94 | isa = PBXGroup;
95 | children = (
96 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
97 | );
98 | name = Frameworks;
99 | sourceTree = "";
100 | };
101 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
102 | isa = PBXGroup;
103 | children = (
104 | );
105 | name = Libraries;
106 | sourceTree = "";
107 | };
108 | 83CBB9F61A601CBA00E9B192 = {
109 | isa = PBXGroup;
110 | children = (
111 | 13B07FAE1A68108700A75B9A /* IngoRnAltAcco */,
112 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
113 | 00E356EF1AD99517003FC87E /* IngoRnAltAccoTests */,
114 | 83CBBA001A601CBA00E9B192 /* Products */,
115 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
116 | 37F65BE0F18044719832D46F /* Resources */,
117 | );
118 | indentWidth = 2;
119 | sourceTree = "";
120 | tabWidth = 2;
121 | usesTabs = 0;
122 | };
123 | 83CBBA001A601CBA00E9B192 /* Products */ = {
124 | isa = PBXGroup;
125 | children = (
126 | 13B07F961A680F5B00A75B9A /* IngoRnAltAcco.app */,
127 | 00E356EE1AD99517003FC87E /* IngoRnAltAccoTests.xctest */,
128 | );
129 | name = Products;
130 | sourceTree = "";
131 | };
132 | 37F65BE0F18044719832D46F /* Resources */ = {
133 | isa = "PBXGroup";
134 | children = (
135 | CAC59CBF84B648CF8890333D /* Roboto-Medium.ttf */,
136 | 9FCB7A15504041ECA9F2F2E3 /* happyHotels.ttf */,
137 | );
138 | name = Resources;
139 | sourceTree = "";
140 | path = "";
141 | };
142 | /* End PBXGroup section */
143 |
144 | /* Begin PBXNativeTarget section */
145 | 00E356ED1AD99517003FC87E /* IngoRnAltAccoTests */ = {
146 | isa = PBXNativeTarget;
147 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "IngoRnAltAccoTests" */;
148 | buildPhases = (
149 | 00E356EA1AD99517003FC87E /* Sources */,
150 | 00E356EB1AD99517003FC87E /* Frameworks */,
151 | 00E356EC1AD99517003FC87E /* Resources */,
152 | );
153 | buildRules = (
154 | );
155 | dependencies = (
156 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
157 | );
158 | name = IngoRnAltAccoTests;
159 | productName = IngoRnAltAccoTests;
160 | productReference = 00E356EE1AD99517003FC87E /* IngoRnAltAccoTests.xctest */;
161 | productType = "com.apple.product-type.bundle.unit-test";
162 | };
163 | 13B07F861A680F5B00A75B9A /* IngoRnAltAcco */ = {
164 | isa = PBXNativeTarget;
165 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "IngoRnAltAcco" */;
166 | buildPhases = (
167 | FD10A7F022414F080027D42C /* Start Packager */,
168 | 13B07F871A680F5B00A75B9A /* Sources */,
169 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
170 | 13B07F8E1A680F5B00A75B9A /* Resources */,
171 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
172 | );
173 | buildRules = (
174 | );
175 | dependencies = (
176 | );
177 | name = IngoRnAltAcco;
178 | productName = IngoRnAltAcco;
179 | productReference = 13B07F961A680F5B00A75B9A /* IngoRnAltAcco.app */;
180 | productType = "com.apple.product-type.application";
181 | };
182 | /* End PBXNativeTarget section */
183 |
184 | /* Begin PBXProject section */
185 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
186 | isa = PBXProject;
187 | attributes = {
188 | LastUpgradeCheck = 1210;
189 | TargetAttributes = {
190 | 00E356ED1AD99517003FC87E = {
191 | CreatedOnToolsVersion = 6.2;
192 | TestTargetID = 13B07F861A680F5B00A75B9A;
193 | };
194 | 13B07F861A680F5B00A75B9A = {
195 | LastSwiftMigration = 1120;
196 | };
197 | };
198 | };
199 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "IngoRnAltAcco" */;
200 | compatibilityVersion = "Xcode 12.0";
201 | developmentRegion = en;
202 | hasScannedForEncodings = 0;
203 | knownRegions = (
204 | en,
205 | Base,
206 | );
207 | mainGroup = 83CBB9F61A601CBA00E9B192;
208 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
209 | projectDirPath = "";
210 | projectRoot = "";
211 | targets = (
212 | 13B07F861A680F5B00A75B9A /* IngoRnAltAcco */,
213 | 00E356ED1AD99517003FC87E /* IngoRnAltAccoTests */,
214 | );
215 | };
216 | /* End PBXProject section */
217 |
218 | /* Begin PBXResourcesBuildPhase section */
219 | 00E356EC1AD99517003FC87E /* Resources */ = {
220 | isa = PBXResourcesBuildPhase;
221 | buildActionMask = 2147483647;
222 | files = (
223 | );
224 | runOnlyForDeploymentPostprocessing = 0;
225 | };
226 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
227 | isa = PBXResourcesBuildPhase;
228 | buildActionMask = 2147483647;
229 | files = (
230 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
231 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
232 | AA6B489643D2420084192225 /* Roboto-Medium.ttf in Resources */,
233 | 2C931E99FF5648C098C93DE2 /* happyHotels.ttf in Resources */,
234 | );
235 | runOnlyForDeploymentPostprocessing = 0;
236 | };
237 | /* End PBXResourcesBuildPhase section */
238 |
239 | /* Begin PBXShellScriptBuildPhase section */
240 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
241 | isa = PBXShellScriptBuildPhase;
242 | buildActionMask = 2147483647;
243 | files = (
244 | );
245 | inputPaths = (
246 | );
247 | name = "Bundle React Native code and images";
248 | outputPaths = (
249 | );
250 | runOnlyForDeploymentPostprocessing = 0;
251 | shellPath = /bin/sh;
252 | shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n";
253 | };
254 | FD10A7F022414F080027D42C /* Start Packager */ = {
255 | isa = PBXShellScriptBuildPhase;
256 | buildActionMask = 2147483647;
257 | files = (
258 | );
259 | inputFileListPaths = (
260 | );
261 | inputPaths = (
262 | );
263 | name = "Start Packager";
264 | outputFileListPaths = (
265 | );
266 | outputPaths = (
267 | );
268 | runOnlyForDeploymentPostprocessing = 0;
269 | shellPath = /bin/sh;
270 | 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";
271 | showEnvVarsInLog = 0;
272 | };
273 | /* End PBXShellScriptBuildPhase section */
274 |
275 | /* Begin PBXSourcesBuildPhase section */
276 | 00E356EA1AD99517003FC87E /* Sources */ = {
277 | isa = PBXSourcesBuildPhase;
278 | buildActionMask = 2147483647;
279 | files = (
280 | 00E356F31AD99517003FC87E /* IngoRnAltAccoTests.m in Sources */,
281 | );
282 | runOnlyForDeploymentPostprocessing = 0;
283 | };
284 | 13B07F871A680F5B00A75B9A /* Sources */ = {
285 | isa = PBXSourcesBuildPhase;
286 | buildActionMask = 2147483647;
287 | files = (
288 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
289 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
290 | );
291 | runOnlyForDeploymentPostprocessing = 0;
292 | };
293 | /* End PBXSourcesBuildPhase section */
294 |
295 | /* Begin PBXTargetDependency section */
296 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
297 | isa = PBXTargetDependency;
298 | target = 13B07F861A680F5B00A75B9A /* IngoRnAltAcco */;
299 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
300 | };
301 | /* End PBXTargetDependency section */
302 |
303 | /* Begin XCBuildConfiguration section */
304 | 00E356F61AD99517003FC87E /* Debug */ = {
305 | isa = XCBuildConfiguration;
306 | buildSettings = {
307 | BUNDLE_LOADER = "$(TEST_HOST)";
308 | GCC_PREPROCESSOR_DEFINITIONS = (
309 | "DEBUG=1",
310 | "$(inherited)",
311 | );
312 | INFOPLIST_FILE = IngoRnAltAccoTests/Info.plist;
313 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
314 | LD_RUNPATH_SEARCH_PATHS = (
315 | "$(inherited)",
316 | "@executable_path/Frameworks",
317 | "@loader_path/Frameworks",
318 | );
319 | OTHER_LDFLAGS = (
320 | "-ObjC",
321 | "-lc++",
322 | "$(inherited)",
323 | );
324 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
325 | PRODUCT_NAME = "$(TARGET_NAME)";
326 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IngoRnAltAcco.app/IngoRnAltAcco";
327 | };
328 | name = Debug;
329 | };
330 | 00E356F71AD99517003FC87E /* Release */ = {
331 | isa = XCBuildConfiguration;
332 | buildSettings = {
333 | BUNDLE_LOADER = "$(TEST_HOST)";
334 | COPY_PHASE_STRIP = NO;
335 | INFOPLIST_FILE = IngoRnAltAccoTests/Info.plist;
336 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
337 | LD_RUNPATH_SEARCH_PATHS = (
338 | "$(inherited)",
339 | "@executable_path/Frameworks",
340 | "@loader_path/Frameworks",
341 | );
342 | OTHER_LDFLAGS = (
343 | "-ObjC",
344 | "-lc++",
345 | "$(inherited)",
346 | );
347 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
348 | PRODUCT_NAME = "$(TARGET_NAME)";
349 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/IngoRnAltAcco.app/IngoRnAltAcco";
350 | };
351 | name = Release;
352 | };
353 | 13B07F941A680F5B00A75B9A /* Debug */ = {
354 | isa = XCBuildConfiguration;
355 | buildSettings = {
356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
357 | CLANG_ENABLE_MODULES = YES;
358 | CURRENT_PROJECT_VERSION = 1;
359 | ENABLE_BITCODE = NO;
360 | INFOPLIST_FILE = IngoRnAltAcco/Info.plist;
361 | LD_RUNPATH_SEARCH_PATHS = (
362 | "$(inherited)",
363 | "@executable_path/Frameworks",
364 | );
365 | OTHER_LDFLAGS = (
366 | "$(inherited)",
367 | "-ObjC",
368 | "-lc++",
369 | );
370 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
371 | PRODUCT_NAME = IngoRnAltAcco;
372 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
373 | SWIFT_VERSION = 5.0;
374 | VERSIONING_SYSTEM = "apple-generic";
375 | };
376 | name = Debug;
377 | };
378 | 13B07F951A680F5B00A75B9A /* Release */ = {
379 | isa = XCBuildConfiguration;
380 | buildSettings = {
381 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
382 | CLANG_ENABLE_MODULES = YES;
383 | CURRENT_PROJECT_VERSION = 1;
384 | INFOPLIST_FILE = IngoRnAltAcco/Info.plist;
385 | LD_RUNPATH_SEARCH_PATHS = (
386 | "$(inherited)",
387 | "@executable_path/Frameworks",
388 | );
389 | OTHER_LDFLAGS = (
390 | "$(inherited)",
391 | "-ObjC",
392 | "-lc++",
393 | );
394 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
395 | PRODUCT_NAME = IngoRnAltAcco;
396 | SWIFT_VERSION = 5.0;
397 | VERSIONING_SYSTEM = "apple-generic";
398 | };
399 | name = Release;
400 | };
401 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
402 | isa = XCBuildConfiguration;
403 | buildSettings = {
404 | ALWAYS_SEARCH_USER_PATHS = NO;
405 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
406 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
407 | CLANG_CXX_LIBRARY = "libc++";
408 | CLANG_ENABLE_MODULES = YES;
409 | CLANG_ENABLE_OBJC_ARC = YES;
410 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
411 | CLANG_WARN_BOOL_CONVERSION = YES;
412 | CLANG_WARN_COMMA = YES;
413 | CLANG_WARN_CONSTANT_CONVERSION = YES;
414 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
415 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
416 | CLANG_WARN_EMPTY_BODY = YES;
417 | CLANG_WARN_ENUM_CONVERSION = YES;
418 | CLANG_WARN_INFINITE_RECURSION = YES;
419 | CLANG_WARN_INT_CONVERSION = YES;
420 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
421 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
422 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
423 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
424 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
425 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
426 | CLANG_WARN_STRICT_PROTOTYPES = YES;
427 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
428 | CLANG_WARN_UNREACHABLE_CODE = YES;
429 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
430 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
431 | COPY_PHASE_STRIP = NO;
432 | ENABLE_STRICT_OBJC_MSGSEND = YES;
433 | ENABLE_TESTABILITY = YES;
434 | GCC_C_LANGUAGE_STANDARD = gnu99;
435 | GCC_DYNAMIC_NO_PIC = NO;
436 | GCC_NO_COMMON_BLOCKS = YES;
437 | GCC_OPTIMIZATION_LEVEL = 0;
438 | GCC_PREPROCESSOR_DEFINITIONS = (
439 | "DEBUG=1",
440 | "$(inherited)",
441 | );
442 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
443 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
444 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
445 | GCC_WARN_UNDECLARED_SELECTOR = YES;
446 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
447 | GCC_WARN_UNUSED_FUNCTION = YES;
448 | GCC_WARN_UNUSED_VARIABLE = YES;
449 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
450 | LD_RUNPATH_SEARCH_PATHS = (
451 | /usr/lib/swift,
452 | "$(inherited)",
453 | );
454 | LIBRARY_SEARCH_PATHS = (
455 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
456 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
457 | "\"$(inherited)\"",
458 | );
459 | MTL_ENABLE_DEBUG_INFO = YES;
460 | ONLY_ACTIVE_ARCH = YES;
461 | SDKROOT = iphoneos;
462 | };
463 | name = Debug;
464 | };
465 | 83CBBA211A601CBA00E9B192 /* Release */ = {
466 | isa = XCBuildConfiguration;
467 | buildSettings = {
468 | ALWAYS_SEARCH_USER_PATHS = NO;
469 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
470 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
471 | CLANG_CXX_LIBRARY = "libc++";
472 | CLANG_ENABLE_MODULES = YES;
473 | CLANG_ENABLE_OBJC_ARC = YES;
474 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
475 | CLANG_WARN_BOOL_CONVERSION = YES;
476 | CLANG_WARN_COMMA = YES;
477 | CLANG_WARN_CONSTANT_CONVERSION = YES;
478 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
479 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
480 | CLANG_WARN_EMPTY_BODY = YES;
481 | CLANG_WARN_ENUM_CONVERSION = YES;
482 | CLANG_WARN_INFINITE_RECURSION = YES;
483 | CLANG_WARN_INT_CONVERSION = YES;
484 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
485 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
486 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
487 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
488 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
489 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
490 | CLANG_WARN_STRICT_PROTOTYPES = YES;
491 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
492 | CLANG_WARN_UNREACHABLE_CODE = YES;
493 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
494 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
495 | COPY_PHASE_STRIP = YES;
496 | ENABLE_NS_ASSERTIONS = NO;
497 | ENABLE_STRICT_OBJC_MSGSEND = YES;
498 | GCC_C_LANGUAGE_STANDARD = gnu99;
499 | GCC_NO_COMMON_BLOCKS = YES;
500 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
501 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
502 | GCC_WARN_UNDECLARED_SELECTOR = YES;
503 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
504 | GCC_WARN_UNUSED_FUNCTION = YES;
505 | GCC_WARN_UNUSED_VARIABLE = YES;
506 | IPHONEOS_DEPLOYMENT_TARGET = 10.0;
507 | LD_RUNPATH_SEARCH_PATHS = (
508 | /usr/lib/swift,
509 | "$(inherited)",
510 | );
511 | LIBRARY_SEARCH_PATHS = (
512 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
513 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
514 | "\"$(inherited)\"",
515 | );
516 | MTL_ENABLE_DEBUG_INFO = NO;
517 | SDKROOT = iphoneos;
518 | VALIDATE_PRODUCT = YES;
519 | };
520 | name = Release;
521 | };
522 | /* End XCBuildConfiguration section */
523 |
524 | /* Begin XCConfigurationList section */
525 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "IngoRnAltAccoTests" */ = {
526 | isa = XCConfigurationList;
527 | buildConfigurations = (
528 | 00E356F61AD99517003FC87E /* Debug */,
529 | 00E356F71AD99517003FC87E /* Release */,
530 | );
531 | defaultConfigurationIsVisible = 0;
532 | defaultConfigurationName = Release;
533 | };
534 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "IngoRnAltAcco" */ = {
535 | isa = XCConfigurationList;
536 | buildConfigurations = (
537 | 13B07F941A680F5B00A75B9A /* Debug */,
538 | 13B07F951A680F5B00A75B9A /* Release */,
539 | );
540 | defaultConfigurationIsVisible = 0;
541 | defaultConfigurationName = Release;
542 | };
543 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "IngoRnAltAcco" */ = {
544 | isa = XCConfigurationList;
545 | buildConfigurations = (
546 | 83CBBA201A601CBA00E9B192 /* Debug */,
547 | 83CBBA211A601CBA00E9B192 /* Release */,
548 | );
549 | defaultConfigurationIsVisible = 0;
550 | defaultConfigurationName = Release;
551 | };
552 | /* End XCConfigurationList section */
553 | };
554 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
555 | }
556 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/ios/IngoRnAltAcco.xcodeproj/xcshareddata/xcschemes/IngoRnAltAcco.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 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/ios/IngoRnAltAcco/AppDelegate.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface AppDelegate : UIResponder
5 |
6 | @property (nonatomic, strong) UIWindow *window;
7 |
8 | @end
9 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/ios/IngoRnAltAcco/AppDelegate.m:
--------------------------------------------------------------------------------
1 | #import "AppDelegate.h"
2 |
3 | #import
4 | #import
5 | #import
6 |
7 | #ifdef FB_SONARKIT_ENABLED
8 | #import
9 | #import
10 | #import
11 | #import
12 | #import
13 | #import
14 |
15 | static void InitializeFlipper(UIApplication *application) {
16 | FlipperClient *client = [FlipperClient sharedClient];
17 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
18 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
19 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
20 | [client addPlugin:[FlipperKitReactPlugin new]];
21 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
22 | [client start];
23 | }
24 | #endif
25 |
26 | @implementation AppDelegate
27 |
28 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
29 | {
30 | #ifdef FB_SONARKIT_ENABLED
31 | InitializeFlipper(application);
32 | #endif
33 |
34 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
35 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
36 | moduleName:@"IngoRnAltAcco"
37 | initialProperties:nil];
38 |
39 | if (@available(iOS 13.0, *)) {
40 | rootView.backgroundColor = [UIColor systemBackgroundColor];
41 | } else {
42 | rootView.backgroundColor = [UIColor whiteColor];
43 | }
44 |
45 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
46 | UIViewController *rootViewController = [UIViewController new];
47 | rootViewController.view = rootView;
48 | self.window.rootViewController = rootViewController;
49 | [self.window makeKeyAndVisible];
50 | return YES;
51 | }
52 |
53 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
54 | {
55 | #if DEBUG
56 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
57 | #else
58 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
59 | #endif
60 | }
61 |
62 | @end
63 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/ios/IngoRnAltAcco/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 | }
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/ios/IngoRnAltAcco/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/ios/IngoRnAltAcco/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | IngoRnAltAcco
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1
25 | LSRequiresIPhoneOS
26 |
27 | NSAppTransportSecurity
28 |
29 | NSExceptionDomains
30 |
31 | localhost
32 |
33 | NSExceptionAllowsInsecureHTTPLoads
34 |
35 |
36 |
37 |
38 | NSLocationWhenInUseUsageDescription
39 |
40 | UILaunchStoryboardName
41 | LaunchScreen
42 | UIRequiredDeviceCapabilities
43 |
44 | armv7
45 |
46 | UISupportedInterfaceOrientations
47 |
48 | UIInterfaceOrientationPortrait
49 | UIInterfaceOrientationLandscapeLeft
50 | UIInterfaceOrientationLandscapeRight
51 |
52 | UIViewControllerBasedStatusBarAppearance
53 |
54 | UIAppFonts
55 |
56 | Roboto-Medium.ttf
57 | happyHotels.ttf
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/ios/IngoRnAltAcco/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
24 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/ios/IngoRnAltAcco/main.m:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | #import "AppDelegate.h"
4 |
5 | int main(int argc, char * argv[]) {
6 | @autoreleasepool {
7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/ios/IngoRnAltAccoTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/ios/IngoRnAltAccoTests/IngoRnAltAccoTests.m:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | #import
5 | #import
6 |
7 | #define TIMEOUT_SECONDS 600
8 | #define TEXT_TO_LOOK_FOR @"Welcome to React"
9 |
10 | @interface IngoRnAltAccoTests : XCTestCase
11 |
12 | @end
13 |
14 | @implementation IngoRnAltAccoTests
15 |
16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
17 | {
18 | if (test(view)) {
19 | return YES;
20 | }
21 | for (UIView *subview in [view subviews]) {
22 | if ([self findSubviewInView:subview matching:test]) {
23 | return YES;
24 | }
25 | }
26 | return NO;
27 | }
28 |
29 | - (void)testRendersWelcomeScreen
30 | {
31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
33 | BOOL foundElement = NO;
34 |
35 | __block NSString *redboxError = nil;
36 | #ifdef DEBUG
37 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
38 | if (level >= RCTLogLevelError) {
39 | redboxError = message;
40 | }
41 | });
42 | #endif
43 |
44 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
45 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
46 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
47 |
48 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
49 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
50 | return YES;
51 | }
52 | return NO;
53 | }];
54 | }
55 |
56 | #ifdef DEBUG
57 | RCTSetLogFunction(RCTDefaultLogFunction);
58 | #endif
59 |
60 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
61 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
62 | }
63 |
64 |
65 | @end
66 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/ios/Podfile:
--------------------------------------------------------------------------------
1 | require_relative '../node_modules/react-native/scripts/react_native_pods'
2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3 |
4 | platform :ios, '10.0'
5 |
6 | target 'IngoRnAltAcco' do
7 | config = use_native_modules!
8 |
9 | use_react_native!(
10 | :path => config[:reactNativePath],
11 | # to enable hermes on iOS, change `false` to `true` and then install pods
12 | :hermes_enabled => false
13 | )
14 |
15 | target 'IngoRnAltAccoTests' do
16 | inherit! :complete
17 | # Pods for testing
18 | end
19 |
20 | # Enables Flipper.
21 | #
22 | # Note that if you have use_frameworks! enabled, Flipper will not work and
23 | # you should disable the next line.
24 | use_flipper!()
25 |
26 | post_install do |installer|
27 | react_native_post_install(installer)
28 | end
29 | end
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/metro.config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Metro configuration for React Native
3 | * https://github.com/facebook/react-native
4 | *
5 | * @format
6 | */
7 |
8 | module.exports = {
9 | transformer: {
10 | getTransformOptions: async () => ({
11 | transform: {
12 | experimentalImportSupport: false,
13 | inlineRequires: true,
14 | },
15 | }),
16 | },
17 | };
18 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ingornaltacco",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "android": "react-native run-android",
7 | "ios": "react-native run-ios",
8 | "start": "react-native start",
9 | "test": "jest",
10 | "lint": "eslint .",
11 | "android-js-bundle": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output ../ingornaltacco/src/main/assets/index.android.bundle --assets-dest ../ingornaltacco/src/main/res"
12 | },
13 | "dependencies": {
14 | "react": "17.0.1",
15 | "react-native": "0.64.1"
16 | },
17 | "devDependencies": {
18 | "@babel/core": "^7.12.9",
19 | "@babel/runtime": "^7.12.5",
20 | "@react-native-community/eslint-config": "^2.0.0",
21 | "babel-jest": "^26.6.3",
22 | "eslint": "7.14.0",
23 | "jest": "^26.6.3",
24 | "metro-react-native-babel-preset": "^0.64.0",
25 | "react-test-renderer": "17.0.1"
26 | },
27 | "jest": {
28 | "preset": "react-native"
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/react-native.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | assets: ['./src/assets/fonts']
3 | };
4 |
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/src/assets/fonts/Roboto-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/src/assets/fonts/Roboto-Medium.ttf
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/src/assets/fonts/happyHotels.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/src/assets/fonts/happyHotels.ttf
--------------------------------------------------------------------------------
/INGO-RN-AltAccoJS/src/images/approved.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/INGO-RN-AltAccoJS/src/images/approved.png
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 Varun kumar
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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # dynamic-feature-delivery-react-native
2 | Android POC: dynamically loading react-native app in native app using Play Feature Delivery
3 |
4 | ## Screenshots
5 |
6 |
7 |
8 |
9 |
10 | ## Folder structure
11 |
12 | 1. app: Base module
13 | 2. ingornaltacco: Dynamic module that will be installed on demand. This module is using react-native
14 | 3. INGO-RN-AltAccoJS: React native app created by react-native CLI. This is used by ingornaltacco
15 |
16 | ## Local testing of app
17 |
18 | Docs: https://developer.android.com/guide/playcore/feature-delivery/on-demand#local-testing
19 |
20 | #### Steps
21 |
22 | 1. Download & install bundletool https://github.com/google/bundletool/releases
23 | 2. Generate signed bundle from Android studio
24 | 3. Create apks
25 | ```
26 | java -jar bundletool-all-1.6.1.jar build-apks --local-testing --bundle ~/Desktop/github/DynamicFeatureDeliveryReactNative/app/release/app-release.aab --output my_app.apks
27 | ```
28 | 4. Install apks
29 | ```
30 | java -jar bundletool-all-1.6.1.jar install-apks --apks my_app.apks
31 | ```
32 |
33 | ## Production testing
34 |
35 | Install app from PlayStore: https://play.google.com/store/apps/details?id=varunon9.me.dynamicfeature
36 |
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'com.android.application'
3 | }
4 |
5 | android {
6 | signingConfigs {
7 | release {
8 | storeFile file(POCAPP_RELEASE_STORE_FILE)
9 | storePassword POCAPP_RELEASE_STORE_PASSWORD
10 | keyAlias POCAPP_RELEASE_KEY_ALIAS
11 | keyPassword POCAPP_RELEASE_KEY_PASSWORD
12 | }
13 | }
14 | compileSdkVersion 29
15 | buildToolsVersion "29.0.3"
16 |
17 | defaultConfig {
18 | applicationId "varunon9.me.dynamicfeature"
19 | minSdkVersion 21
20 | targetSdkVersion 29
21 | versionCode 14
22 | versionName "1.14"
23 |
24 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
25 | signingConfig signingConfigs.release
26 | }
27 |
28 | buildTypes {
29 | release {
30 | minifyEnabled false
31 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
32 | }
33 | }
34 | compileOptions {
35 | sourceCompatibility JavaVersion.VERSION_1_8
36 | targetCompatibility JavaVersion.VERSION_1_8
37 | }
38 | dynamicFeatures = [':ingornaltacco']
39 | }
40 |
41 | dependencies {
42 |
43 | implementation 'androidx.appcompat:appcompat:1.2.0'
44 | implementation 'com.google.android.material:material:1.3.0'
45 | implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
46 | testImplementation 'junit:junit:4.+'
47 | androidTestImplementation 'androidx.test.ext:junit:1.1.2'
48 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
49 |
50 | // needed to implement the on demand install functionality of ingornaltacco module
51 | // using api so that it is accessible in dynamic modules
52 | api 'com.google.android.play:core:1.10.0'
53 | }
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/app/src/androidTest/java/varunon9/me/dynamicfeature/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package varunon9.me.dynamicfeature;
2 |
3 | import android.content.Context;
4 |
5 | import androidx.test.platform.app.InstrumentationRegistry;
6 | import androidx.test.ext.junit.runners.AndroidJUnit4;
7 |
8 | import org.junit.Test;
9 | import org.junit.runner.RunWith;
10 |
11 | import static org.junit.Assert.*;
12 |
13 | /**
14 | * Instrumented test, which will execute on an Android device.
15 | *
16 | * @see Testing documentation
17 | */
18 | @RunWith(AndroidJUnit4.class)
19 | public class ExampleInstrumentedTest {
20 | @Test
21 | public void useAppContext() {
22 | // Context of the app under test.
23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 | assertEquals("varunon9.me.dynamicfeature", appContext.getPackageName());
25 | }
26 | }
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/app/src/main/React Native Dynamic Delivery-feature-graphic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/app/src/main/React Native Dynamic Delivery-feature-graphic.png
--------------------------------------------------------------------------------
/app/src/main/ic_launcher-playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/app/src/main/ic_launcher-playstore.png
--------------------------------------------------------------------------------
/app/src/main/java/varunon9/me/dynamicfeature/MainActivity.java:
--------------------------------------------------------------------------------
1 | package varunon9.me.dynamicfeature;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.app.ProgressDialog;
6 | import android.content.Context;
7 | import android.content.Intent;
8 | import android.content.IntentSender;
9 | import android.os.Bundle;
10 | import android.view.View;
11 |
12 | import com.google.android.play.core.splitcompat.SplitCompat;
13 | import com.google.android.play.core.splitinstall.SplitInstallManager;
14 | import com.google.android.play.core.splitinstall.SplitInstallManagerFactory;
15 | import com.google.android.play.core.splitinstall.SplitInstallRequest;
16 | import com.google.android.play.core.splitinstall.SplitInstallSessionState;
17 | import com.google.android.play.core.splitinstall.SplitInstallStateUpdatedListener;
18 | import com.google.android.play.core.splitinstall.model.SplitInstallSessionStatus;
19 |
20 | // Docs: https://developer.android.com/guide/playcore/feature-delivery/on-demand
21 | public class MainActivity extends AppCompatActivity {
22 |
23 | // to use in onActivityResult
24 | private static final int ALT_ACCO_REQUEST_CODE = 0;
25 | // Initializes a variable to later track the session ID for a given request.
26 | int altAccoSessionId = 0;
27 | SplitInstallManager splitInstallManager;
28 | SplitInstallStateUpdatedListener listener;
29 | private static final String ALT_ACCO_MODULE = "ingornaltacco";
30 |
31 | // to show progress
32 | private ProgressDialog dialog;
33 |
34 | @Override
35 | protected void onCreate(Bundle savedInstanceState) {
36 | super.onCreate(savedInstanceState);
37 | setContentView(R.layout.activity_main);
38 | dialog = new ProgressDialog(this);
39 | dialog.setCancelable(false);
40 | dialog.setCanceledOnTouchOutside(false);
41 | }
42 |
43 | public void onVisitHostAppClick(View view) {
44 | checkAndDownloadAltAccoModule();
45 | }
46 |
47 | private void checkAndDownloadAltAccoModule() {
48 | // Creates an instance of SplitInstallManager.
49 | splitInstallManager =
50 | SplitInstallManagerFactory.create(this);
51 | if (!splitInstallManager.getInstalledModules().contains(ALT_ACCO_MODULE)) {
52 | dialog.setTitle("Downloading host app dynamically");
53 | dialog.show();
54 |
55 | // Creates a request to install a module.
56 | SplitInstallRequest request =
57 | SplitInstallRequest
58 | .newBuilder()
59 | // You can download multiple on demand modules per
60 | // request by invoking the following method for each
61 | // module you want to install.
62 | .addModule(ALT_ACCO_MODULE)
63 | .build();
64 |
65 | // Creates a listener for request status updates.
66 | listener = state -> {
67 | if (state.sessionId() == altAccoSessionId) {
68 | // Read the status of the request to handle the state update.
69 | onAltAccoModuleStateUpdate(state);
70 | }
71 | };
72 |
73 | splitInstallManager
74 | // Submits the request to install the module through the
75 | // asynchronous startInstall() task. Your app needs to be
76 | // in the foreground to submit the request.
77 | .startInstall(request)
78 | // You should also be able to gracefully handle
79 | // request state changes and errors. To learn more, go to
80 | // the section about how to Monitor the request state.
81 | .addOnSuccessListener(sessionId -> {
82 | // should not launch activity here, as success doesn't mean the module is installed
83 | // listen to SplitInstallStateUpdatedListener event instead
84 | altAccoSessionId = sessionId;
85 | })
86 | .addOnFailureListener(exception -> {
87 | exception.printStackTrace();
88 | dialog.setMessage("Error addOnFailureListener: " + exception.getMessage());
89 | });
90 | // Registers the listener.
91 | splitInstallManager.registerListener(listener);
92 | } else {
93 | switchToHostApp();
94 | }
95 | }
96 |
97 | @Override
98 | protected void attachBaseContext(Context newBase) {
99 | super.attachBaseContext(newBase);
100 |
101 | // Emulates installation of future on demand modules using SplitCompat.
102 | // Necessary to access AltAccoActivity once ingornaltacco module is downloaded
103 | // Docs: https://developer.android.com/guide/playcore/feature-delivery/on-demand#access_downloaded_modules
104 | SplitCompat.installActivity(this);
105 | }
106 |
107 | private void onAltAccoModuleStateUpdate(SplitInstallSessionState state) {
108 | switch (state.status()) {
109 | case SplitInstallSessionStatus.DOWNLOADING:
110 | long totalKiloBytes = state.totalBytesToDownload() / 1024;
111 | long kiloBytesDownloaded = state.bytesDownloaded() / 1024;
112 | long progressPercentage = kiloBytesDownloaded * 100 / totalKiloBytes;
113 | // Update progress bar.
114 | String progressMessage = String.format("Total size: %dKB, Progress: %d%%", totalKiloBytes, progressPercentage);
115 | System.out.println("totalKiloBytes: " + totalKiloBytes + ", kiloBytesDownloaded: " + kiloBytesDownloaded);
116 | System.out.println(progressMessage);
117 | dialog.setMessage(progressMessage);
118 | break;
119 |
120 | case SplitInstallSessionStatus.REQUIRES_USER_CONFIRMATION:
121 | // Displays a confirmation for the user to confirm the request.
122 | try {
123 | splitInstallManager.startConfirmationDialogForResult(
124 | state,
125 | /* activity = */ this,
126 | // You use this request code to later retrieve the user's decision.
127 | /* requestCode = */ ALT_ACCO_REQUEST_CODE);
128 | } catch (IntentSender.SendIntentException e) {
129 | e.printStackTrace();
130 | }
131 | break;
132 |
133 | case SplitInstallSessionStatus.INSTALLED:
134 | // After a module is installed, you can start accessing its content or
135 | // fire an intent to start an activity in the installed module.
136 | // For other use cases, see access code and resources from installed modules.
137 |
138 | // If the request is an on demand module for an Android Instant App
139 | // running on Android 8.0 (API level 26) or higher, you need to
140 | // update the app context using the SplitInstallHelper API.
141 | splitInstallManager.unregisterListener(listener);
142 | switchToHostApp();
143 | break;
144 | case SplitInstallSessionStatus.DOWNLOADED:
145 | System.out.println("Download successful");
146 | dialog.setMessage("Download successful");
147 | splitInstallManager.unregisterListener(listener);
148 | switchToHostApp();
149 | break;
150 | case SplitInstallSessionStatus.FAILED:
151 | System.out.println("Failed to download host app, error code: " + state.errorCode());
152 | dialog.setMessage("Failed to download host app, error code: " + state.errorCode());
153 | splitInstallManager.unregisterListener(listener);
154 | break;
155 |
156 | case SplitInstallSessionStatus.PENDING:
157 | System.out.println("Waiting for the download to begin");
158 | dialog.setMessage("Waiting for the download to begin");
159 | break;
160 |
161 | case SplitInstallSessionStatus.INSTALLING:
162 | System.out.println("Installing host app...");
163 | dialog.setMessage("Installing host app...");
164 | break;
165 |
166 | default:
167 | dialog.setMessage("Failed to download, unknown error occurred. Status code: " + state.status() + ", Error code: " + state.errorCode());
168 | splitInstallManager.unregisterListener(listener);
169 | }
170 | }
171 |
172 | private void switchToHostApp() {
173 | if (splitInstallManager.getInstalledModules().contains(ALT_ACCO_MODULE)) {
174 | if (dialog.isShowing()) {
175 | dialog.dismiss();
176 | }
177 | Intent intent = new Intent();
178 | intent.setClassName(BuildConfig.APPLICATION_ID, "com.ingoibibo.ingornaltacco.AltAccoActivity");
179 | startActivity(intent);
180 | } else {
181 | dialog.setMessage("Host app is not installed");
182 | }
183 | }
184 | }
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
12 |
13 |
15 |
17 |
19 |
21 |
23 |
25 |
27 |
29 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
20 |
21 |
33 |
34 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | DynamicFeatureDeliveryReactNative
3 | HostApp
4 |
--------------------------------------------------------------------------------
/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/app/src/test/java/varunon9/me/dynamicfeature/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package varunon9.me.dynamicfeature;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | buildscript {
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath "com.android.tools.build:gradle:4.1.3"
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | jcenter()
19 |
20 | // needed for react-native: https://reactnative.dev/docs/0.61/integration-with-existing-apps
21 | maven {
22 | // All of React Native (JS, Android binaries) is installed from npm
23 | url "$rootDir/INGO-RN-AltAccoJS/node_modules/react-native/android"
24 | }
25 | maven {
26 | // Android JSC is installed from npm
27 | url("$rootDir/INGO-RN-AltAccoJS/node_modules/jsc-android/dist")
28 | }
29 |
30 | // https://github.com/facebook/SoLoader/issues/19
31 | flatDir {
32 | dirs 'src/main/libs/'
33 | }
34 | }
35 | }
36 |
37 | task clean(type: Delete) {
38 | delete rootProject.buildDir
39 | }
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app"s APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Automatically convert third-party libraries to use AndroidX
19 | android.enableJetifier=true
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sat May 22 20:02:59 IST 2021
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-6.5-bin.zip
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/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 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
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 Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/ingornaltacco/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/ingornaltacco/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'com.android.dynamic-feature'
3 | }
4 |
5 | project.ext.react = [
6 | entryFile: "index.js",
7 | root: "$rootDir/INGO-RN-AltAccoJS/",
8 | bundleInDebug: false,
9 | cliPath: "$rootDir/INGO-RN-AltAccoJS/node_modules/react-native/cli.js",
10 | hermesCommand: "$rootDir/INGO-RN-AltAccoJS/node_modules/hermes-engine/%OS-BIN%/hermesc",
11 | enableHermes: true // clean and rebuild if changing
12 | ]
13 |
14 | apply from: "$rootDir/INGO-RN-AltAccoJS/node_modules/react-native/react.gradle"
15 |
16 | /**
17 | * The preferred build flavor of JavaScriptCore.
18 | *
19 | * For example, to use the international variant, you can use:
20 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
21 | *
22 | * The international variant includes ICU i18n library and necessary data
23 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
24 | * give correct results when using with locales other than en-US. Note that
25 | * this variant is about 6MiB larger per architecture than default.
26 | */
27 | def jscFlavor = "org.webkit:android-jsc:+"
28 |
29 | /**
30 | * Whether to enable the Hermes VM.
31 | * This should be set on project.ext.react and mirrored here. If it is not set
32 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
33 | * and the benefits of using Hermes will therefore be sharply reduced.
34 | */
35 | def enableHermes = project.ext.react.get("enableHermes", false);
36 |
37 | android {
38 | signingConfigs {
39 | release {
40 | storeFile file(POCAPP_RELEASE_STORE_FILE)
41 | storePassword POCAPP_RELEASE_STORE_PASSWORD
42 | keyAlias POCAPP_RELEASE_KEY_ALIAS
43 | keyPassword POCAPP_RELEASE_KEY_PASSWORD
44 | }
45 | }
46 | compileSdkVersion 30
47 |
48 | compileOptions {
49 | sourceCompatibility JavaVersion.VERSION_1_8
50 | targetCompatibility JavaVersion.VERSION_1_8
51 | }
52 |
53 | defaultConfig {
54 | applicationId "com.ingoibibo.ingornaltacco"
55 | minSdkVersion 21
56 | targetSdkVersion 30
57 | versionCode 1
58 | versionName "1.0"
59 |
60 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
61 | signingConfig signingConfigs.release
62 | }
63 |
64 | buildTypes {
65 | release {
66 | shrinkResources false
67 | minifyEnabled false
68 | //proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
69 | }
70 | }
71 | }
72 |
73 | dependencies {
74 | implementation project(":app")
75 | implementation 'androidx.appcompat:appcompat:1.2.0'
76 | implementation 'com.google.android.material:material:1.2.1'
77 | implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
78 | testImplementation 'junit:junit:4.+'
79 | androidTestImplementation 'androidx.test.ext:junit:1.1.2'
80 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
81 | androidTestImplementation 'androidx.annotation:annotation:1.1.0'
82 |
83 | // react-native: https://reactnative.dev/docs/integration-with-existing-apps
84 | //implementation 'com.facebook.react:react-native:+' // From node_modules
85 |
86 | // https://github.com/facebook/SoLoader/issues/19
87 | implementation ('com.facebook.react:react-native:+') {
88 | exclude group: 'com.facebook.soloader', module: 'soloader'
89 | }
90 | implementation name: 'soloader-0.8.2-voize', ext: 'aar'
91 |
92 | if (enableHermes) {
93 | def hermesPath = "$rootDir/INGO-RN-AltAccoJS/node_modules/hermes-engine/android/";
94 | debugImplementation files(hermesPath + "hermes-debug.aar")
95 | releaseImplementation files(hermesPath + "hermes-release.aar")
96 | } else {
97 | implementation jscFlavor
98 | }
99 | implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
100 | }
--------------------------------------------------------------------------------
/ingornaltacco/src/androidTest/java/com/ingoibibo/ingornaltacco/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.ingoibibo.ingornaltacco;
2 |
3 | import android.content.Context;
4 |
5 | import androidx.test.platform.app.InstrumentationRegistry;
6 | import androidx.test.ext.junit.runners.AndroidJUnit4;
7 |
8 | import org.junit.Test;
9 | import org.junit.runner.RunWith;
10 |
11 | import static org.junit.Assert.*;
12 |
13 | /**
14 | * Instrumented test, which will execute on an Android device.
15 | *
16 | * @see Testing documentation
17 | */
18 | @RunWith(AndroidJUnit4.class)
19 | public class ExampleInstrumentedTest {
20 | @Test
21 | public void useAppContext() {
22 | // Context of the app under test.
23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 | assertEquals("com.ingoibibo.ingornaltacco", appContext.getPackageName());
25 | }
26 | }
--------------------------------------------------------------------------------
/ingornaltacco/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/ingornaltacco/src/main/assets/fonts/Roboto-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/ingornaltacco/src/main/assets/fonts/Roboto-Medium.ttf
--------------------------------------------------------------------------------
/ingornaltacco/src/main/assets/fonts/happyHotels.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/ingornaltacco/src/main/assets/fonts/happyHotels.ttf
--------------------------------------------------------------------------------
/ingornaltacco/src/main/java/com/ingoibibo/ingornaltacco/AltAccoActivity.java:
--------------------------------------------------------------------------------
1 | package com.ingoibibo.ingornaltacco;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 |
5 | import android.content.Context;
6 | import android.content.Intent;
7 | import android.net.Uri;
8 | import android.os.Build;
9 | import android.os.Bundle;
10 | import android.provider.Settings;
11 | import android.view.KeyEvent;
12 |
13 | import com.facebook.react.ReactInstanceManager;
14 | import com.facebook.react.ReactPackage;
15 | import com.facebook.react.ReactRootView;
16 | import com.facebook.react.common.LifecycleState;
17 | import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;
18 | import com.facebook.react.shell.MainReactPackage;
19 | import com.facebook.soloader.SoLoader;
20 | import com.google.android.play.core.splitcompat.SplitCompat;
21 |
22 | import java.util.Arrays;
23 |
24 | public class AltAccoActivity extends AppCompatActivity implements DefaultHardwareBackBtnHandler {
25 |
26 | private ReactRootView mReactRootView;
27 | private final int OVERLAY_PERMISSION_REQ_CODE = 1;
28 |
29 | private ReactInstanceManager mReactInstanceManager;
30 |
31 | @Override
32 | protected void onCreate(Bundle savedInstanceState) {
33 | super.onCreate(savedInstanceState);
34 | setContentView(R.layout.activity_alt_acco);
35 | //checkAndAskForOverlayPermission();
36 | loadReactNativeApp();
37 | }
38 |
39 | private void checkAndAskForOverlayPermission() {
40 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
41 | if (!Settings.canDrawOverlays(this)) {
42 | Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION,
43 | Uri.parse("package:" + getPackageName()));
44 | startActivityForResult(intent, OVERLAY_PERMISSION_REQ_CODE);
45 | }
46 | }
47 | }
48 |
49 | @Override
50 | public void invokeDefaultOnBackPressed() {
51 | super.onBackPressed();
52 | }
53 |
54 | @Override
55 | protected void onPause() {
56 | super.onPause();
57 |
58 | if (mReactInstanceManager != null) {
59 | mReactInstanceManager.onHostPause(this);
60 | }
61 | }
62 |
63 | @Override
64 | protected void onResume() {
65 | super.onResume();
66 |
67 | if (mReactInstanceManager != null) {
68 | mReactInstanceManager.onHostResume(this, this);
69 | }
70 | }
71 |
72 | @Override
73 | protected void onDestroy() {
74 | super.onDestroy();
75 |
76 | if (mReactInstanceManager != null) {
77 | mReactInstanceManager.onHostDestroy(this);
78 | }
79 | if (mReactRootView != null) {
80 | mReactRootView.unmountReactApplication();
81 | }
82 | }
83 |
84 | @Override
85 | protected void attachBaseContext(Context newBase) {
86 | super.attachBaseContext(newBase);
87 | // Emulates installation of on demand modules using SplitCompat.
88 | SplitCompat.installActivity(this);
89 | }
90 |
91 | @Override
92 | public void onBackPressed() {
93 | if (mReactInstanceManager != null) {
94 | mReactInstanceManager.onBackPressed();
95 | } else {
96 | super.onBackPressed();
97 | }
98 | }
99 |
100 | @Override
101 | public boolean onKeyUp(int keyCode, KeyEvent event) {
102 | if (keyCode == KeyEvent.KEYCODE_MENU && mReactInstanceManager != null) {
103 | mReactInstanceManager.showDevOptionsDialog();
104 | return true;
105 | }
106 | return super.onKeyUp(keyCode, event);
107 | }
108 |
109 | private void loadReactNativeApp() {
110 | SoLoader.init(this, false);
111 |
112 | System.out.println("loading RN app");
113 |
114 | mReactRootView = new ReactRootView(this);
115 | // Remember to include them in `settings.gradle` and `app/build.gradle` too.
116 |
117 | mReactInstanceManager = ReactInstanceManager.builder()
118 | .setApplication(getApplication())
119 | .setCurrentActivity(this)
120 | .setBundleAssetName("index.android.bundle")
121 | .setJSMainModulePath("index")
122 | .setJSBundleFile("assets://index.android.bundle")
123 | .addPackages(Arrays.asList(
124 | new MainReactPackage()
125 | ))
126 | .setUseDeveloperSupport(BuildConfig.DEBUG)
127 | .setInitialLifecycleState(LifecycleState.RESUMED)
128 | .build();
129 | // The string here (e.g. "IngoRnAltAcco") has to match
130 | // the string in AppRegistry.registerComponent() in index.js
131 | mReactRootView.startReactApplication(mReactInstanceManager, "IngoRnAltAcco", null);
132 |
133 | setContentView(mReactRootView);
134 | }
135 | }
--------------------------------------------------------------------------------
/ingornaltacco/src/main/libs/soloader-0.8.2-voize.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/ingornaltacco/src/main/libs/soloader-0.8.2-voize.aar
--------------------------------------------------------------------------------
/ingornaltacco/src/main/res/layout/activity_alt_acco.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
19 |
--------------------------------------------------------------------------------
/ingornaltacco/src/test/java/com/ingoibibo/ingornaltacco/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.ingoibibo.ingornaltacco;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/screenshots/app-MainActivity.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/screenshots/app-MainActivity.jpeg
--------------------------------------------------------------------------------
/screenshots/app-size-after-install.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/screenshots/app-size-after-install.jpeg
--------------------------------------------------------------------------------
/screenshots/app-size-after-module-download.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/screenshots/app-size-after-module-download.jpeg
--------------------------------------------------------------------------------
/screenshots/create-on-demand-module-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/screenshots/create-on-demand-module-1.png
--------------------------------------------------------------------------------
/screenshots/create-on-demand-module-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/screenshots/create-on-demand-module-2.png
--------------------------------------------------------------------------------
/screenshots/ingornaltacco-module-download-progress.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/screenshots/ingornaltacco-module-download-progress.jpeg
--------------------------------------------------------------------------------
/screenshots/ingornaltacco-module-downloading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/screenshots/ingornaltacco-module-downloading.png
--------------------------------------------------------------------------------
/screenshots/ingornaltacco-react-native-app.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/varunon9/dynamic-feature-delivery-react-native/8b3928bc74ed1e3a7167fcde1e46469b5e0e2c9e/screenshots/ingornaltacco-react-native-app.png
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | rootProject.name = "DynamicFeatureDeliveryReactNative"
3 | include ':ingornaltacco'
4 |
--------------------------------------------------------------------------------