From bd847d1c3bcd30a0a4fa8fea9f3437a21cacfd8f Mon Sep 17 00:00:00 2001 From: ShivaniKhaire Date: Mon, 26 Oct 2026 11:33:15 +0530 Subject: [PATCH 1/2] fix(renderers): hide alternative name card on extra ordinary vessels detail --- .../details/ExtraOrdinaryVesselsDetailRenderer.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/features/content/renderers/details/ExtraOrdinaryVesselsDetailRenderer.tsx b/src/features/content/renderers/details/ExtraOrdinaryVesselsDetailRenderer.tsx index 2534569..9d33453 100644 --- a/src/features/content/renderers/details/ExtraOrdinaryVesselsDetailRenderer.tsx +++ b/src/features/content/renderers/details/ExtraOrdinaryVesselsDetailRenderer.tsx @@ -29,6 +29,8 @@ const RESERVED_KEYS = new Set([ "title", "sub_title", "subtitle", + "alt_name", + "alternative_names", "code", "sort_order", "link", @@ -61,7 +63,9 @@ export function ExtraOrdinaryVesselsDetailRenderer({ const subtitle = asString(data.sub_title) || asString(data.subtitle) || - undefined; + (asStringArray(data.alt_name).length > 0 + ? asStringArray(data.alt_name).join(", ") + : undefined); const mediaValue = data.images ?? data.media ?? data.point_images; const media = Array.isArray(mediaValue) -- 2.34.1 From 2f5581800f42ca91be5edc8b02d507461125fc90 Mon Sep 17 00:00:00 2001 From: ShivaniKhaire Date: Mon, 26 Oct 2026 13:51:19 +0530 Subject: [PATCH 2/2] fix(android): fix MainApplication ReactHost setup and enable release signing --- android/app/build.gradle | 4 +-- .../com/anonymous/acupedia/MainApplication.kt | 26 ++++++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index e95b789..9145116 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -123,9 +123,7 @@ android { signingConfig signingConfigs.debug } release { - // Caution! In production, you need to generate your own keystore file. - // see https://reactnative.dev/docs/signed-apk-android. - signingConfig signingConfigs.debug + signingConfig (keystorePropertiesFile.exists() ? signingConfigs.release : signingConfigs.debug) def enableShrinkResources = findProperty('android.enableShrinkResourcesInReleaseBuilds') ?: 'false' shrinkResources enableShrinkResources.toBoolean() minifyEnabled enableMinifyInReleaseBuilds diff --git a/android/app/src/main/java/com/anonymous/acupedia/MainApplication.kt b/android/app/src/main/java/com/anonymous/acupedia/MainApplication.kt index c732caa..51f0543 100644 --- a/android/app/src/main/java/com/anonymous/acupedia/MainApplication.kt +++ b/android/app/src/main/java/com/anonymous/acupedia/MainApplication.kt @@ -6,26 +6,38 @@ import android.content.res.Configuration import com.facebook.react.PackageList import com.facebook.react.ReactApplication import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative +import com.facebook.react.ReactNativeHost import com.facebook.react.ReactPackage import com.facebook.react.ReactHost import com.facebook.react.common.ReleaseLevel import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint +import com.facebook.react.defaults.DefaultReactNativeHost import expo.modules.ApplicationLifecycleDispatcher -import expo.modules.ExpoReactHostFactory +import expo.modules.ReactNativeHostWrapper class MainApplication : Application(), ReactApplication { - override val reactHost: ReactHost by lazy { - ExpoReactHostFactory.getDefaultReactHost( - context = applicationContext, - packageList = + override val reactNativeHost: ReactNativeHost = ReactNativeHostWrapper( + this, + object : DefaultReactNativeHost(this) { + override fun getPackages(): List = PackageList(this).packages.apply { // Packages that cannot be autolinked yet can be added manually here, for example: // add(MyReactNativePackage()) } - ) - } + + override fun getJSMainModuleName(): String = ".expo/.virtual-metro-entry" + + override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG + + override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED + override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED + } + ) + + override val reactHost: ReactHost + get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost) override fun onCreate() { super.onCreate() -- 2.34.1