Skip to content

Commit b6daff5

Browse files
a7medevHeshamMegid
authored andcommitted
[MOB-12305] Fix Sourcemaps Upload Script with Android Product Flavors (#975)
1 parent 93cb773 commit b6daff5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Fixed
66

77
- Fix an issue with the Android sourcemaps upload script, causing the build to fail on older versions of Gradle ([#970](https://github.com/Instabug/Instabug-React-Native/pull/970)), closes [#969](https://github.com/Instabug/Instabug-React-Native/issues/969).
8+
- Fix an issue with the Android sourcemaps upload script, causing the build to fail when using product flavors ([#975](https://github.com/Instabug/Instabug-React-Native/pull/975)), closes [#974](https://github.com/Instabug/Instabug-React-Native/issues/974).
89

910
## [11.10.0](https://github.com/Instabug/Instabug-React-Native/compare/v11.9.1...11.10.0) (April 20, 2023)
1011

android/sourcemaps.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import org.apache.tools.ant.taskdefs.condition.Os
33
def appProject = project(":app")
44

55
gradle.projectsEvaluated {
6-
// Works for both `bundleReleaseJsAndAssets` and `createBundleReleaseJsAndAssets`
6+
// Works for both `bundleReleaseJsAndAssets` and `createBundleReleaseJsAndAssets` and product flavors
77
def bundleTask = appProject.tasks.find {
8-
task -> task.name.toLowerCase().endsWith('bundlereleasejsandassets')
8+
task -> task.name.endsWith('ReleaseJsAndAssets')
99
}
1010

1111
bundleTask.finalizedBy uploadSourcemaps

0 commit comments

Comments
 (0)