Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
9c7dcd5
migrate to Expo 55
SteRiccio Apr 2, 2026
fbadee2
fixing app config
SteRiccio Apr 2, 2026
245f039
fixing app config
SteRiccio Apr 3, 2026
af50ca4
Merge branch 'master' of https://github.com/openforis/arena-mobile in…
SteRiccio Apr 5, 2026
5364fa1
Merge branch 'feat/geo-experiments' of https://github.com/openforis/a…
SteRiccio Apr 5, 2026
fcb0837
fixing app.config
SteRiccio Apr 6, 2026
9aa28a1
Merge branch 'master' of https://github.com/openforis/arena-mobile in…
SteRiccio Apr 9, 2026
cb37861
updated build number
SteRiccio Apr 9, 2026
586eb42
code cleanup
SteRiccio Apr 9, 2026
8118da0
Merge branch 'master' of https://github.com/openforis/arena-mobile in…
SteRiccio Apr 21, 2026
129997f
update dependencies
SteRiccio May 4, 2026
5ea7e44
Merge branch 'master' of https://github.com/openforis/arena-mobile in…
SteRiccio May 5, 2026
0773f19
fixed app config
SteRiccio May 5, 2026
95fc1ad
github actions: use jdk 21
SteRiccio May 5, 2026
ab5f84c
trying to fix apk build
SteRiccio May 5, 2026
c4a6cd7
revert react-native-zip-archive
SteRiccio May 5, 2026
38fca53
reverted react-native-zip-archive
SteRiccio May 5, 2026
a60ee51
code cleanup
SteRiccio May 7, 2026
7b3b9c2
Merge branch 'master' of https://github.com/openforis/arena-mobile in…
SteRiccio Jun 12, 2026
e44c4cb
migrate to expo 56
SteRiccio Jun 12, 2026
1235c0e
migrate to latest yarn version
SteRiccio Jun 12, 2026
9d4bce1
fixing maestro tests
SteRiccio Jun 12, 2026
35b7f6c
Revert "fixing maestro tests"
SteRiccio Jun 13, 2026
5b70560
Revert "migrate to latest yarn version"
SteRiccio Jun 13, 2026
10edf53
Fix Maestro Android CI build by skipping Gradle clean
Copilot Jun 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .yarn/install-state.gz
Binary file not shown.
134 changes: 121 additions & 13 deletions app.config.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,140 @@
/// <reference types="node" />
import { ExpoConfig } from "expo/config";

const { expo } = require("./app.json") as { expo: ExpoConfig };
const upsertPlugin = (
plugins: ExpoConfig["plugins"] = [],

Check warning on line 5 in app.config.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Default parameters should be last.

See more on https://sonarcloud.io/project/issues?id=openforis_arena-mobile2&issues=AZ1xegsZk6QWaN7LFBmj&open=AZ1xegsZk6QWaN7LFBmj&pullRequest=148
pluginName: string,
pluginConfig: Record<string, unknown>,
): ExpoConfig["plugins"] => {
const nextPlugins = [...plugins];
const index = nextPlugins.findIndex((plugin) =>
Array.isArray(plugin) ? plugin[0] === pluginName : plugin === pluginName,
);

const nextPluginEntry: NonNullable<ExpoConfig["plugins"]>[number] = [
pluginName,
pluginConfig,
];

if (index >= 0) {
nextPlugins[index] = nextPluginEntry;
} else {
nextPlugins.push(nextPluginEntry);
}

return nextPlugins;
};

const basePlugins: ExpoConfig["plugins"] = [
["expo-asset", { assets: ["assets"] }],
[
"expo-build-properties",
{
ios: { deploymentTarget: "15.5" },
},
],
[
"expo-image-picker",
{
photosPermission:
"Please allow $(PRODUCT_NAME) access to your photos to attach them to your records.",
},
],
[
"./plugins/modifyAndroidManifestAttributes",
{
application: {
"android:hardwareAccelerated": "true",
"android:largeHeap": "true",
},
},
],
"expo-asset",
Comment thread
SteRiccio marked this conversation as resolved.
Outdated
"expo-audio",
"expo-localization",
"expo-secure-store",
"expo-sharing",
"expo-sqlite",
"expo-web-browser",
"@react-native-community/datetimepicker",
];

const config = (): ExpoConfig => {
const googleMapsApiKeyAndroid = process.env.GOOGLE_MAPS_API_KEY_ANDROID;
const googleMapsApiKeyIOS = process.env.GOOGLE_MAPS_API_KEY_IOS;
const androidGoogleMapsApiKey = process.env.GOOGLE_MAPS_API_KEY_ANDROID;
const iosGoogleMapsApiKey = process.env.GOOGLE_MAPS_API_KEY_IOS;

const plugins =
androidGoogleMapsApiKey && iosGoogleMapsApiKey
? upsertPlugin(basePlugins, "react-native-maps", {
androidGoogleMapsApiKey,
iosGoogleMapsApiKey,
})
: basePlugins;

return {
...expo,
name: "Arena Mobile",
slug: "arena-mobile",
owner: "openforis",
version: "2.5.0",
icon: "./assets/logo/icon_with_margin.png",
userInterfaceStyle: "automatic",
splash: {
image: "./assets/splash.png",
resizeMode: "contain",
backgroundColor: "#ffffff",
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ["**/*"],
android: {
...expo.android,
adaptiveIcon: {
foregroundImage: "./assets/logo/adaptive_icon_with_margin.png",
backgroundColor: "#FFFFFF",
},
package: "org.openforis.arena_mobile",
versionCode: 82,
permissions: [
"android.permission.ACCESS_MEDIA_LOCATION",
"android.permission.RECORD_AUDIO",
],
config: {
...expo.android?.config,
googleMaps: {
...expo.android?.config?.googleMaps,
apiKey:
googleMapsApiKeyAndroid ?? expo.android?.config?.googleMaps?.apiKey,
apiKey: androidGoogleMapsApiKey,
},
},
Comment thread
SteRiccio marked this conversation as resolved.
},
ios: {
...expo.ios,
buildNumber: "82",
bundleIdentifier: "org.openforis.arena-mobile",
config: {
...expo.ios?.config,
googleMapsApiKey:
googleMapsApiKeyIOS ?? expo.ios?.config?.googleMapsApiKey,
usesNonExemptEncryption: false,
googleMapsApiKey: iosGoogleMapsApiKey,
},
Comment thread
SteRiccio marked this conversation as resolved.
infoPlist: {
LSMinimumSystemVersion: "13.0",
NSCameraUsageDescription:
"Camera is used only when collecting images in file attributes (if defined in your survey).",
NSLocationWhenInUseUsageDescription:
"Location is used only when collecting coordinates in coordinate attributes (if defined in your survey).",
NSMicrophoneUsageDescription:
"Microphone is used only when recording audio or video in file attributes (if defined in your survey).",
NSMotionUsageDescription:
"Devices's acceleraometer is used only when using the 'navigator' in coordinate attributes (if defined in your survey).",
Comment thread
SteRiccio marked this conversation as resolved.
Outdated
NSPhotoLibraryUsageDescription:
"Access to the photo library is required only when selecting images to be used in file attributes (if defined in your survey).",
},
supportsTablet: true,
},
web: {
favicon: "./assets/logo/favicon.png",
},
extra: {
eas: {
projectId: "adc829ff-2bf8-4733-9e03-051d16d0f9ca",
},
},
plugins,
};
};

Expand Down
93 changes: 0 additions & 93 deletions app.json

This file was deleted.

Loading