mobile_local_restore/patches/expo-firebase-analytics+8.0...

37 lines
905 B
Diff

diff --git a/node_modules/expo-firebase-analytics/android/build.gradle b/node_modules/expo-firebase-analytics/android/build.gradle
index c721ebd..92c9fd9 100644
--- a/node_modules/expo-firebase-analytics/android/build.gradle
+++ b/node_modules/expo-firebase-analytics/android/build.gradle
@@ -35,19 +35,11 @@ buildscript {
}
}
-// Creating sources with comments
-task androidSourcesJar(type: Jar) {
- classifier = 'sources'
- from android.sourceSets.main.java.srcDirs
-}
-
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
- // Add additional sourcesJar to artifacts
- artifact(androidSourcesJar)
}
}
repositories {
@@ -79,6 +71,11 @@ android {
lintOptions {
abortOnError false
}
+ publishing {
+ singleVariant("release") {
+ withSourcesJar()
+ }
+ }
}
dependencies {