MushroomObserver / mushroom-observer-mobile

Mushroom Observer's mobile application
5 stars 2 forks source link

Upgrade Toolchain #72

Closed mo-nathan closed 3 months ago

mo-nathan commented 7 months ago
mo-nathan commented 6 months ago

Created https://docs.google.com/spreadsheets/d/1I2CyR0abOWtx8p61W2EAlhHg86Bn0NuUgG4mL82UYrk/edit#gid=1526662613 as an upgrade plan.

mo-nathan commented 6 months ago

Used https://react-native-community.github.io/upgrade-helper to attempt to upgrade from 0.67 to 0.68. It got most of the way, but I still had to do the following:

1) Reapply the maven-publish edit and the uploadArchives edits to the code base. 2) Change nativeArchitectures to reactNativeArchitectures in android/app/build.gradle. 3) Apply the following diff:

% diff node_modules/@react-native-community/blur/android/build.gradle*
11a12
>             jcenter()
39,40c40
< 
<     maven { url 'https://jitpack.io' }
---
>     jcenter()
46c46
<     implementation 'com.github.Dimezis:BlurView:version-1.6.6'
---
>     implementation 'com.eightbitlab:blurview:1.6.3'

4) Explicitly switch to Kotlin version: 1.8.22.

Then after Invalidating the caches and rebuilding the project, I got it to fly. Presumably due to various experimentation, I had to delete node_modules once and rebuild it using npm install.

mo-nathan commented 6 months ago

The above comment is relative to the Android Studio build. The Xcode build had it's own issues. 1) I had to muck around with bundle and pod. I had to do a pod update to break the final log jam. 2) Apparently I missed updating ios/MushroomObserver.xcodeproj/project.pbxproj and even after getting the new updated version, I had to edit it replacing all occurrences of “RnDiffApp” with “MushroomObserver”. 3) Had to re-update the "Current Project Version" and the "Marketing Version".

mo-nathan commented 6 months ago

Adding expo with npm install expo seemed to help quite a bit. I'm also loosening up versions in the package.json by putting in "*" when things complain. This approach got the app running again in Xcode, but now it's throwing some errors when I just go to the "Settings Page" after logging in. Here's what I'm seeing at the moment in the Apple simulator:

mo-nathan commented 3 months ago

These issues have been resolved and the build is working with updated NPM packages.