Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.53k stars 2.88k forks source link

[HybridApp] Remove `jcenter` from Android codebase #47355

Closed AndrewGable closed 2 months ago

AndrewGable commented 2 months ago

Problem

We've seen Android HybridApp builds fail with a 502, this is because jcenter is being officially turned off August 15th. https://jfrog.com/blog/jcenter-sunset/

Solution

We need to migrate to mavenCentral, however, we need to also upgrade a few dependencies to their latest versions since they did not back port all versions.

AndrewGable commented 2 months ago

Example: https://github.com/Expensify/Mobile-Deploy/actions/runs/10361798303/job/28682826522

* What went wrong:
Could not determine the dependencies of task ':buildReleasePreBundle'.
> Could not resolve all task dependencies for configuration ':releaseRuntimeClasspath'.
   > Could not resolve io.realm:realm-android:0.87.4.
     Required by:
         project :
      > Could not resolve io.realm:realm-android:0.87.4.
         > Could not get resource 'https://jcenter.bintray.com/io/realm/realm-android/0.87.4/realm-android-0.87.4.pom'.
            > Could not GET 'https://jcenter.bintray.com/io/realm/realm-android/0.87.4/realm-android-0.87.4.pom'. Received status code 502 from server: Bad Gateway
   > Could not resolve io.branch.sdk.android:library:2.19.3.
     Required by:
         project :
      > Could not resolve io.branch.sdk.android:library:2.19.3.
         > Could not get resource 'https://jcenter.bintray.com/io/branch/sdk/android/library/2.19.3/library-2.19.3.pom'.
            > Could not GET 'https://jcenter.bintray.com/io/branch/sdk/android/library/2.19.3/library-2.19.3.pom'. Received status code 502 from server: Bad Gateway
   > Could not resolve pl.charmas.android:android-reactive-location2:2.0.
     Required by:
         project :
      > Could not resolve pl.charmas.android:android-reactive-location2:2.0.
         > Could not get resource 'https://jcenter.bintray.com/pl/charmas/android/android-reactive-location2/2.0/android-reactive-location2-2.0.pom'.
            > Could not GET 'https://jcenter.bintray.com/pl/charmas/android/android-reactive-location2/2.0/android-reactive-location2-2.0.pom'. Received status code 502 from server: Bad Gateway