Подробности среды
Версия React Native: 0.79.5
Apollo Версия клиента: "@apollo/client": "^3.6.9",
Инструменты сборки Android: 36.0.0
Целевая платформа: Android
JavaScript Engine: Hermes (включено по умолчанию)
Минификация: пробовал оба minifyEnabled: true и false
Конфигурация кода
android/app/build.gradle:
Код: Выделить всё
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled false // Tried both true and false
shrinkResources false
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
Код: Выделить всё
hermesEnabled=true
Вывод Logcat:
Код: Выделить всё
ReactNativeJS: 'Error updating user status:', [ApolloError: undefined is not a function]
console.error: Error updating user status: ApolloError: undefined is not a function, js engine: hermes, stack:
_construct@1:401614
Wrapper@1:401260
_callSuper@1:399088
SyntheticError@1:400748
reactConsoleErrorHandler@1:400363
anonymous@1:1387912
anonymous@1:6930464
tryCallOne@1:1899493
anonymous@1:1900178
anonymous@1:393307
Почему один и тот же AAB работает локально, но ломается при распространении через Google Play Store? Связано ли это с:
Процессом повторной подписи приложения Play App, влияющим на байт-код Hermes?
Совместимостью движка Hermes с клиентом Apollo в среде Play Store?
Оптимизацией AAB в Google Play, которая отличается от локальной обработки?
Кто-нибудь сталкивался с подобными проблемами с Apollo Client + Hermes + Play Распространение в магазине?
Подробнее здесь: https://stackoverflow.com/questions/797 ... -undefined
Мобильная версия