Skip to content

Commit bea4322

Browse files
kacperzolkiewskiKacper Żółkiewski
andauthored
feat: Drop support for React Native <0.78 (#2734)
# Summary This change implements our new maintenance policy of supporting only the two most recent React Native releases. With React Native now at 0.80, the library will support only versions 0.78 and newer. Dropping older versions helps reduce maintenance overhead, remove legacy code paths and ensure we can take advantage of the latest React Native APIs without additional compatibility layers. ## Test Plan Run test app examples --------- Co-authored-by: Kacper Żółkiewski <kacperzolkiewski@MacBook-Pro-Kacper.local>
1 parent 11a1d87 commit bea4322

8 files changed

Lines changed: 6 additions & 2689 deletions

File tree

android/build.gradle

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -121,24 +121,6 @@ android {
121121
"src/paper/java",
122122
]
123123
}
124-
125-
if (REACT_NATIVE_MINOR_VERSION >= 75) { // Use for react-native@0.75 and above
126-
// borderRadius fix https://github.com/software-mansion/react-native-svg/pull/2415
127-
srcDirs += "src/SvgViewManager75/java"
128-
// processTransform replacement https://github.com/software-mansion/react-native-svg/pull/2554
129-
srcDirs += "src/RenderableViewManager75/java"
130-
} else { // Maintain compatibility with react-native@0.73 and react-native@0.74
131-
srcDirs += "src/SvgViewManager73/java"
132-
srcDirs += "src/RenderableViewManager73/java"
133-
}
134-
135-
if (REACT_NATIVE_MINOR_VERSION >= 74) { // Use for react-native@0.74 and above
136-
// new API https://github.com/software-mansion/react-native-svg/pull/2541
137-
srcDirs += "src/SvgPackage74/java"
138-
} else {
139-
// Maintain compatibility with react-native@0.73
140-
srcDirs += "src/SvgPackage73/java"
141-
}
142124
}
143125
}
144126
}
@@ -155,13 +137,11 @@ repositories {
155137

156138
dependencies {
157139
implementation 'com.facebook.react:react-native:+'
158-
if (REACT_NATIVE_MINOR_VERSION >= 76) {
159-
implementation("com.facebook.fresco:fresco:${FRESCO_VERSION}") {
160-
exclude group: 'com.facebook.soloader'
161-
}
162-
implementation("com.facebook.fresco:imagepipeline-okhttp3:${FRESCO_VERSION}") {
163-
exclude group: 'com.facebook.soloader'
164-
}
165-
implementation("com.facebook.fresco:middleware:${FRESCO_VERSION}")
140+
implementation("com.facebook.fresco:fresco:${FRESCO_VERSION}") {
141+
exclude group: 'com.facebook.soloader'
142+
}
143+
implementation("com.facebook.fresco:imagepipeline-okhttp3:${FRESCO_VERSION}") {
144+
exclude group: 'com.facebook.soloader'
166145
}
146+
implementation("com.facebook.fresco:middleware:${FRESCO_VERSION}")
167147
}

android/src/RenderableViewManager73/java/com/horcrux/svg/RenderableViewManager.java

Lines changed: 0 additions & 1869 deletions
This file was deleted.

0 commit comments

Comments
 (0)