This commit is contained in:
LinYYY
2022-11-23 16:28:34 +08:00
parent 58d7b37211
commit 0674ae36a4
5 changed files with 17 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ class Constants {
public static String IMPL_PRE = 'impl-'
public static String COMPONENT_PRE = 'component-'
public static String DEBUG_COMPONENT_PRE = 'component(Debug)-'
public static String CORE_DEPENDENCY = "com.effective.android:component-core:1.0.5"
public static String CORE_DEPENDENCY = "com.github.DSAppTeam:ComponentCore:1.0.6"
//sourceSet - default
public static String JAVA_PATH = "src/main/java"

View File

@@ -113,7 +113,7 @@ class Runtimes {
}
private static void initGitHooks(Project root) {
if (GitUtil.gitExist) {
if (GitUtil.gitExist && sSdkOption.needGitHook) {
File hooksDir = new File(root.projectDir, Constants.HOOKS_DIR)
if (!hooksDir.exists()) {
hooksDir.mkdirs()

View File

@@ -53,6 +53,8 @@ class ProjectInfo {
|| task.contains("aR")
|| task.contains("asR")
|| task.contains("asD")
|| task.toUpperCase().contains("BUNDLE")
|| task.toUpperCase().contains("EXTRACTAPKS")
|| task.toUpperCase().contains("TINKER")
|| task.toUpperCase().contains("INSTALL")
|| task.toUpperCase().contains("RESGUARD")) {

View File

@@ -24,6 +24,7 @@ class SdkOption {
boolean isAutoVersion //是否使用自动版本
boolean isPublishMode //是否发布模式
boolean isOnline
boolean needGitHook //是否创建git钩子
String mavenUrl //maven仓库
SdkOption(Project project) {
@@ -98,6 +99,14 @@ class SdkOption {
this.isOnline = flag
}
/**
* 是否需要创建githook
* @param flag
*/
void githook(boolean flag) {
this.needGitHook = flag
}
/**
* 申明组件sdk
* @param closure

View File

@@ -2,11 +2,11 @@
//include ':component-core'
//发布插件
//include ':component-plugin'
include ':component-plugin'
//调试插件
//includeBuild './component-plugin'
include ':app'/*, ':pins'*/
//include ':debugModule'
include ':library', ':libraryKotlin', ':libraryWithoutPlugin'
//include ':app'/*, ':pins'*/
////include ':debugModule'
//include ':library', ':libraryKotlin', ':libraryWithoutPlugin'