Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean rn 0.76 upgrade #6887

Merged
merged 56 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
994c425
package upgrades
haileyok Dec 1, 2024
fb0897b
upgrade system ui
haileyok Dec 1, 2024
510f94a
update patches
haileyok Dec 1, 2024
37b20fe
rename patch
haileyok Dec 1, 2024
3d87a27
rm
haileyok Dec 1, 2024
3f81d26
use .set/.set
haileyok Dec 2, 2024
408d9ce
Merge branch 'hailey/rm-masked-view' into hailey/upgrade-clean
haileyok Dec 2, 2024
d0a67ec
resolve yarnlock
haileyok Dec 2, 2024
1662205
fix accidentally removed package
haileyok Dec 2, 2024
273f294
fix use permissions hook
haileyok Dec 2, 2024
04ccdd8
fix some type errors
haileyok Dec 2, 2024
1831167
type fixes
haileyok Dec 2, 2024
c7b0af6
more tweaking
haileyok Dec 2, 2024
662ad55
clean
haileyok Dec 2, 2024
84b2a15
Discard changes to src/screens/Onboarding/StepProfile/index.tsx
haileyok Dec 2, 2024
d04654d
oops
haileyok Dec 2, 2024
9d05393
fix splash
haileyok Dec 2, 2024
9f60657
use ios/android in config
haileyok Dec 3, 2024
f7d0c69
Merge branch 'main' into hailey/upgrade-clean
haileyok Dec 3, 2024
698be92
Merge remote-tracking branch 'origin/main' into hailey/upgrade-clean
haileyok Dec 3, 2024
d4e5dc4
Fix tests
gaearon Dec 3, 2024
e8cfb64
Merge branch 'main' into hailey/upgrade-clean
gaearon Dec 3, 2024
06195fb
add back patch
haileyok Dec 3, 2024
4716d2c
add to rn patch
haileyok Dec 3, 2024
eec36db
fullscreen?
haileyok Dec 3, 2024
45183f8
Revert "add to rn patch"
haileyok Dec 3, 2024
75bdd56
try this
gaearon Dec 3, 2024
7eda696
test with revert
haileyok Dec 3, 2024
7da20b5
test
haileyok Dec 3, 2024
67c7204
maybe this
haileyok Dec 3, 2024
8289101
fix config
haileyok Dec 3, 2024
607c5d7
Merge branch 'main' into hailey/upgrade-clean
gaearon Dec 4, 2024
9d59acb
Bump @react-native-picker/picker
gaearon Dec 4, 2024
c0ae44a
Bump some packages
gaearon Dec 4, 2024
f90e80c
Rm unused
gaearon Dec 4, 2024
db1bdad
Update lockfile
gaearon Dec 4, 2024
043a975
Rename expo-notifications+0.29.8.patch.md to expo-notifications+0.29.…
gaearon Dec 4, 2024
99eecd9
Update react-native+0.76.3.patch.md
gaearon Dec 4, 2024
8df158a
Update react-native+0.76.3.patch.md
gaearon Dec 4, 2024
d05988b
Inline splash configs
gaearon Dec 4, 2024
9442e87
Start fixing Android splash
gaearon Dec 4, 2024
5641ff8
Downgrade compressor
gaearon Dec 5, 2024
c43eb89
Make Android splash empty for now
gaearon Dec 5, 2024
e5f1499
Work around a bug
gaearon Dec 5, 2024
551f332
Bump the compressor
gaearon Dec 5, 2024
0416694
Bump again
gaearon Dec 5, 2024
00a3890
Include splash fixes
gaearon Dec 5, 2024
b304a10
Try updating
gaearon Dec 5, 2024
c121aca
No custom Android splash
gaearon Dec 6, 2024
70e2156
Revert to using icons
gaearon Dec 6, 2024
4acc6d8
welp
gaearon Dec 6, 2024
36d317b
Fix sizes
gaearon Dec 6, 2024
dd09fcc
Merge branch 'main' into hailey/upgrade-clean
gaearon Dec 6, 2024
691f9aa
Make sizing work
gaearon Dec 6, 2024
2d8b989
Bump size
gaearon Dec 6, 2024
e5b895d
Merge branch 'main' into hailey/upgrade-clean
gaearon Dec 6, 2024
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
32 changes: 17 additions & 15 deletions app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ module.exports = function (config) {
orientation: 'portrait',
icon: './assets/app-icons/ios_icon_default_light.png',
userInterfaceStyle: 'automatic',
splash: SPLASH_CONFIG,
// hsl(211, 99%, 53%), same as palette.default.brandText
primaryColor: '#1083fe',
ios: {
supportsTablet: false,
Expand Down Expand Up @@ -124,10 +122,6 @@ module.exports = function (config) {
],
},
associatedDomains: ASSOCIATED_DOMAINS,
splash: {
...SPLASH_CONFIG,
dark: DARK_SPLASH_CONFIG,
},
entitlements: {
'com.apple.developer.kernel.increased-memory-limit': true,
'com.apple.developer.kernel.extended-virtual-addressing': true,
Expand Down Expand Up @@ -193,10 +187,6 @@ module.exports = function (config) {
category: ['BROWSABLE', 'DEFAULT'],
},
],
splash: {
...SPLASH_CONFIG_ANDROID,
dark: DARK_SPLASH_CONFIG_ANDROID,
},
},
web: {
favicon: './assets/favicon.png',
Expand Down Expand Up @@ -236,10 +226,9 @@ module.exports = function (config) {
newArchEnabled: false,
},
android: {
compileSdkVersion: 34,
targetSdkVersion: 34,
buildToolsVersion: '34.0.0',
kotlinVersion: '1.8.0',
compileSdkVersion: 35,
targetSdkVersion: 35,
buildToolsVersion: '35.0.0',
newArchEnabled: false,
},
},
Expand All @@ -256,7 +245,7 @@ module.exports = function (config) {
'./plugins/starterPackAppClipExtension/withStarterPackAppClip.js',
'./plugins/withAndroidManifestPlugin.js',
'./plugins/withAndroidManifestFCMIconPlugin.js',
'./plugins/withAndroidStylesWindowBackgroundPlugin.js',
// './plugins/withAndroidStylesWindowBackgroundPlugin.js',
gaearon marked this conversation as resolved.
Show resolved Hide resolved
'./plugins/withAndroidStylesAccentColorPlugin.js',
'./plugins/withAndroidSplashScreenStatusBarTranslucentPlugin.js',
'./plugins/shareExtension/withShareExtensions.js',
Expand All @@ -278,6 +267,19 @@ module.exports = function (config) {
],
},
],
[
'expo-splash-screen',
{
ios: {
...SPLASH_CONFIG,
dark: DARK_SPLASH_CONFIG,
},
android: {
...SPLASH_CONFIG_ANDROID,
dark: DARK_SPLASH_CONFIG_ANDROID,
},
},
],
[
'@mozzius/expo-dynamic-app-icon',
{
Expand Down
2 changes: 1 addition & 1 deletion modules/expo-bluesky-gif-view/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ repositories {

dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
def GLIDE_VERSION = "4.13.2"
def GLIDE_VERSION = "4.16.0"

implementation project(':expo-modules-core')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.graphics.Color
import android.graphics.drawable.Animatable
import android.graphics.drawable.Drawable
import com.bumptech.glide.Glide
import com.bumptech.glide.load.DataSource
import com.bumptech.glide.load.engine.DiskCacheStrategy
import com.bumptech.glide.load.engine.GlideException
import com.bumptech.glide.request.RequestListener
Expand All @@ -15,8 +16,8 @@ import expo.modules.kotlin.viewevent.EventDispatcher
import expo.modules.kotlin.views.ExpoView

class GifView(
context: Context,
appContext: AppContext,
context: Context,
appContext: AppContext,
) : ExpoView(context, appContext) {
// Events
private val onPlayerStateChange by EventDispatcher()
Expand Down Expand Up @@ -81,66 +82,65 @@ class GifView(
}

this.webpRequest =
glide
.load(source)
.diskCacheStrategy(DiskCacheStrategy.DATA)
.skipMemoryCache(false)
.listener(
object : RequestListener<Drawable> {
override fun onResourceReady(
resource: Drawable?,
model: Any?,
target: Target<Drawable>?,
dataSource: com.bumptech.glide.load.DataSource?,
isFirstResource: Boolean,
): Boolean {
if (placeholderRequest != null) {
glide.clear(placeholderRequest)
}
return false
}

override fun onLoadFailed(
e: GlideException?,
model: Any?,
target: Target<Drawable>?,
isFirstResource: Boolean,
): Boolean = true
},
).into(this.imageView)
glide.load(source)
.diskCacheStrategy(DiskCacheStrategy.DATA)
.skipMemoryCache(false)
.listener(
object : RequestListener<Drawable> {
override fun onResourceReady(
resource: Drawable,
model: Any,
target: Target<Drawable>?,
dataSource: DataSource,
isFirstResource: Boolean
): Boolean {
placeholderRequest?.let { glide.clear(it) }
return false
}

override fun onLoadFailed(
e: GlideException?,
model: Any?,
target: Target<Drawable>,
isFirstResource: Boolean
): Boolean = true
}
)
.into(this.imageView)

if (this.imageView.drawable == null || this.imageView.drawable !is Animatable) {
this.placeholderRequest =
glide
.load(placeholderSource)
.diskCacheStrategy(DiskCacheStrategy.DATA)
// Let's not bloat the memory cache with placeholders
.skipMemoryCache(true)
.listener(
object : RequestListener<Drawable> {
override fun onResourceReady(
resource: Drawable?,
model: Any?,
target: Target<Drawable>?,
dataSource: com.bumptech.glide.load.DataSource?,
isFirstResource: Boolean,
): Boolean {
// Incase this request finishes after the webp, let's just not set
// the drawable. This shouldn't happen because the request should get cancelled
if (imageView.drawable == null) {
imageView.setImageDrawable(resource)
}
return true
}

override fun onLoadFailed(
e: GlideException?,
model: Any?,
target: Target<Drawable>?,
isFirstResource: Boolean,
): Boolean = true
},
).submit()
glide.load(placeholderSource)
.diskCacheStrategy(DiskCacheStrategy.DATA)
// Let's not bloat the memory cache with placeholders
.skipMemoryCache(true)
.listener(
object : RequestListener<Drawable> {
override fun onResourceReady(
resource: Drawable,
model: Any,
target: Target<Drawable>?,
dataSource: DataSource,
isFirstResource: Boolean
): Boolean {
// Incase this request finishes after the webp, let's just not set
// the drawable. This shouldn't happen because the request should
// get cancelled
if (imageView.drawable == null) {
imageView.setImageDrawable(resource)
}
return true
}

override fun onLoadFailed(
e: GlideException?,
model: Any?,
target: Target<Drawable>,
isFirstResource: Boolean
): Boolean = true
},
)
.submit()
}
}

Expand Down Expand Up @@ -174,10 +174,10 @@ class GifView(

fun firePlayerStateChange() {
onPlayerStateChange(
mapOf(
"isPlaying" to this.isPlaying,
"isLoaded" to this.isLoaded,
),
mapOf(
"isPlaying" to this.isPlaying,
"isLoaded" to this.isLoaded,
),
)
}

Expand Down
Loading
Loading