-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First implementation stab at “Make the annotation bar movable/dockable …
…#101” Start of refactoring of build.gradle’s dependencies. Moving them into “Libs.kt” and several Plugin classes. This not only groups related dependencies and makes updating several dependencies with the same version number easier, but also will allow us to configure CI to use a dependency cache and point mentioned classes to the CI to use them as a hash to decide when to update the cache, which should speed up the build process. Upping versionCode to 42
- Loading branch information
1 parent
77bc262
commit 2db483b
Showing
10 changed files
with
359 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import com.android.build.gradle.TestedExtension | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.getByType | ||
|
||
class AccompanistPlugin : Plugin<Project> { | ||
override fun apply(project: Project) { | ||
val extension = project.extensions.getByType<TestedExtension>() | ||
extension.configure(project) | ||
} | ||
} | ||
|
||
private fun TestedExtension.configure(project: Project) { | ||
project.dependencies.apply { | ||
add("implementation", Libs.Accompanist.flowlayout) | ||
add("implementation", Libs.Accompanist.insets) | ||
add("implementation", Libs.Accompanist.navigationAnimation) | ||
add("implementation", Libs.Accompanist.pager) | ||
add("implementation", Libs.Accompanist.placeholder) | ||
add("implementation", Libs.Accompanist.swipeToRefresh) | ||
add("implementation", Libs.Accompanist.systemuicontroller) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.