File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ android {
55 compileSdkVersion 35
66 namespace ' com.github.barteksc.pdfviewer'
77
8-
98 defaultConfig {
109 minSdkVersion 21
1110 targetSdkVersion 35
@@ -17,7 +16,6 @@ android {
1716 sourceCompatibility JavaVersion . VERSION_1_8
1817 targetCompatibility JavaVersion . VERSION_1_8
1918 }
20-
2119}
2220
2321dependencies {
@@ -26,3 +24,20 @@ dependencies {
2624 embed project(path : ' :pdfium' , configuration : ' default' )
2725}
2826
27+ afterEvaluate {
28+ // Safely configure task dependencies only if tasks exist
29+ def debugEmbedTask = tasks. findByName(' explodeCom.github.marain87Pdfium-debug.aarDebug' )
30+ def releaseEmbedTask = tasks. findByName(' explodeCom.github.marain87Pdfium-release.aarRelease' )
31+
32+ if (debugEmbedTask) {
33+ tasks. named(' extractDeepLinksDebug' ). configure {
34+ dependsOn(debugEmbedTask)
35+ }
36+ }
37+
38+ if (releaseEmbedTask) {
39+ tasks. named(' extractDeepLinksRelease' ). configure {
40+ dependsOn(releaseEmbedTask)
41+ }
42+ }
43+ }
You can’t perform that action at this time.
0 commit comments