Skip to content

Commit e6b2063

Browse files
author
cramsan
committed
Replaced exclude list with allow list
1 parent 58bc2c2 commit e6b2063

File tree

1 file changed

+60
-5
lines changed

1 file changed

+60
-5
lines changed

build.gradle.kts

+60-5
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,65 @@ publishing {
144144
}
145145
}
146146

147-
val exclusionList = listOf(
148-
"lifecycle-*",
149-
"savedstate*",
147+
/**
148+
* List of aar files to include in the jar. Some jars are being omitted because they are not needed for the JVM.
149+
* - lifecycle-*: exclude lifecycle libs due to https://github.com/GitLiveApp/firebase-java-sdk/pull/15 - remove the exclude once the dependencies in the aars are updated to the required version
150+
* - savedstate: Excluded due to this library already being included as part of the compose mutliplatform dependencies. It does not seem to be directly needed by the firebase libraries.
151+
*/
152+
val includeList = listOf(
153+
"activity-*.jar",
154+
"asynclayoutinflater-*.jar",
155+
"coordinatorlayout-*.jar",
156+
"core-*.jar",
157+
"core-runtime-*.jar",
158+
"cursoradapter-*.jar",
159+
"customview-*.jar",
160+
"documentfile-*.jar",
161+
"drawerlayout-*.jar",
162+
"firebase-abt-*.jar",
163+
"firebase-appcheck-*.jar",
164+
"firebase-appcheck-interop-*.jar",
165+
"firebase-auth-interop-*.jar",
166+
"firebase-common-*.jar",
167+
"firebase-common-*.jar",
168+
"firebase-common-ktx-*.jar",
169+
"firebase-common-ktx-*.jar",
170+
"firebase-components-*.jar",
171+
"firebase-components-*.jar",
172+
"firebase-config-*.jar",
173+
"firebase-config-interop-*.jar",
174+
"firebase-database-*.jar",
175+
"firebase-database-collection-*.jar",
176+
"firebase-encoders-json-*.jar",
177+
"firebase-firestore-*.jar",
178+
"firebase-functions-*.jar",
179+
"firebase-iid-*.jar",
180+
"firebase-iid-interop-*.jar",
181+
"firebase-installations-*.jar",
182+
"firebase-installations-interop-*.jar",
183+
"firebase-measurement-connector-*.jar",
184+
"firebase-storage-*.jar",
185+
"fragment-*.jar",
186+
"fragment-*.jar",
187+
"grpc-android-*.jar",
188+
"interpolator-*.jar",
189+
"legacy-support-core-ui-*.jar",
190+
"legacy-support-core-utils-*.jar",
191+
"loader-*.jar",
192+
"localbroadcastmanager-*.jar",
193+
"play-services-base-*.jar",
194+
"play-services-basement-*.jar",
195+
"play-services-basement-*.jar",
196+
"play-services-cloud-messaging-*.jar",
197+
"play-services-stats-*.jar",
198+
"play-services-tasks-*.jar",
199+
"play-services-tasks-*.jar",
200+
"print-*.jar",
201+
"protolite-well-known-types-*.jar",
202+
"slidingpanelayout-*.jar",
203+
"swiperefreshlayout-*.jar",
204+
"versionedparcelable-*.jar",
205+
"viewpager-*.jar",
150206
)
151207

152208
dependencies {
@@ -163,8 +219,7 @@ dependencies {
163219
aar("com.google.firebase:firebase-installations:17.2.0")
164220
aar("com.google.firebase:firebase-storage:21.0.0")
165221
// extracted aar dependencies
166-
// exclude lifecycle libs due to https://github.com/GitLiveApp/firebase-java-sdk/pull/15 - remove the exclude once the dependencies in the aars are updated to the required version
167-
implementation(fileTree(mapOf("dir" to "build/jar", "include" to listOf("*.jar"), "exclude" to exclusionList)))
222+
implementation(fileTree(mapOf("dir" to "build/jar", "include" to includeList)))
168223
// polyfill dependencies
169224
implementation("org.jetbrains.kotlin:kotlin-stdlib")
170225
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")

0 commit comments

Comments
 (0)