Skip to content

feat: Mapeo for ICCAs#447

Merged
gmaclennan merged 10 commits intodevelopfrom
feat/mapeo-for-iccas
Aug 6, 2020
Merged

feat: Mapeo for ICCAs#447
gmaclennan merged 10 commits intodevelopfrom
feat/mapeo-for-iccas

Conversation

@gmaclennan
Copy link
Copy Markdown
Member

Adapt the React/Gradle build scripts so that the custom code for the Mapeo for ICCAs variant (intro screens and custom presets) is included at build time rather than run time. This means that there is no redundant data shipped in the APK of each variant (e.g. previously the general Mapeo APK also included the presets and intro screen images for Mapeo for ICCAs).

With these new build scripts it is possible to add new variants without any additional cost, other than slightly longer build times.

Use Metro build config to conditionally include ICCA screens so that
ICCA resouces are not included in the main Mapeo build. This avoids the
images used in the ICCAs intro screens increasing the file size of the
main Mapeo APK.
Choose the presets that are included in the apk at build time instead of
runtime. This reduces the apk size and removes runtime code for
conditionally running code based on app variant.
Adds the app variant name as an environment variable in the gradle build
script so that metro bundler can package JS files according to variant
by using the `sourceExts` option.
@gmaclennan gmaclennan merged commit c7df1fd into develop Aug 6, 2020
@gmaclennan gmaclennan deleted the feat/mapeo-for-iccas branch August 6, 2020 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant