This file contains hidden or 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
import com.quickbirdstudios.bluesquare.plugin.mockkAndroid | |
// 1 | |
/* Apply the project specific plugin */ | |
plugins { | |
id("com.quickbirdstudios.bluesquare") | |
} | |
// 2 | |
/* Configure the project specific plugin */ |
This file contains hidden or 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
// BluesquarePlugin.kt | |
open class BluesquarePlugin : Plugin<Project> { | |
override fun apply(project: Project) { | |
val bluesquareExtension: BluesquareExtension = project.extensions.create( | |
"bluesquare", BluesquareExtension::class.java | |
) | |
project.configurePlugins() | |
project.configureAndroid() | |
project.configureDependencies() |
This file contains hidden or 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
open class BluesquareExtension { | |
var publish: Boolean = false | |
var packageName: String = "" | |
} |
This file contains hidden or 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
plugins { | |
id("com.quickbirdstudios.bluesquare") | |
} | |
bluesquare { | |
publish = true | |
packageName = "my-package" | |
} |
This file contains hidden or 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
android { | |
compileSdkVersion(28) | |
} |
This file contains hidden or 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
plugins { | |
id("com.quickbirdstudios.bluesquare") | |
} |
This file contains hidden or 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
// BluesquarePlugin.kt | |
open class BluesquarePlugin : Plugin<Project> { | |
override fun apply(project: Project) { | |
project.configurePlugins() | |
project.configureAndroid() | |
project.configureDependencies() | |
} | |
} | |
//Plugins.kt |
This file contains hidden or 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
plugins { | |
id("com.android.library") | |
id("com.quickbirdstudios.bluesquare") | |
} |
This file contains hidden or 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
// BluesquarePlugin.kt | |
open class BluesquarePlugin : Plugin<Project> { | |
override fun apply(project: Project) { | |
project.configureAndroid() | |
project.configureDependencies() | |
} | |
} | |
// Dependencies.kt | |
const val jUnit = "junit:junit:4.12" |
This file contains hidden or 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
plugins { | |
id("com.android.library") | |
id("com.quickbirdstudios.bluesquare") | |
} | |
dependencies { | |
implementation(kotlin("stdlib-jdk8")) | |
testImplementation("junit:junit:4.12") | |
andriodTestImplementation("com.android.support.test:runner:1.0.2") | |
androidTestImplementation("com.android.support.test.espresso:espresso-core:3.0.2") |
NewerOlder