Skip to content

Commit

Permalink
test: 测试插件项目存在自定义flavorDimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
shifujun committed Feb 16, 2022
1 parent 3967fc2 commit 57fe912
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ android {
versionCode VERSION_CODE
versionName VERSION_NAME
}

// 测试插件项目存在自定义flavorDimensions
flavorDimensions(*flavorDimensionList, 'DimensionA', 'DimensionB')
productFlavors {
A1 {
dimension 'DimensionA'
}
B2 {
dimension 'DimensionB'
}

}
}

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions projects/test/gradle-plugin-agp-compat-test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ function testUnderAGPVersion() {
local TestAGPVersion=$1
rm -rf stub-project/build

echo ./gradlew -PSetGradleVersion=false -PTestAGPVersion=$TestAGPVersion -PShadowVersion=$ShadowVersion :stub-project:assemblePluginDebug
./gradlew -PSetGradleVersion=false -PTestAGPVersion=$TestAGPVersion -PShadowVersion=$ShadowVersion :stub-project:assemblePluginDebug
echo ./gradlew -PSetGradleVersion=false -PTestAGPVersion=$TestAGPVersion -PShadowVersion=$ShadowVersion :stub-project:assemblePluginA1B2Debug
./gradlew -PSetGradleVersion=false -PTestAGPVersion=$TestAGPVersion -PShadowVersion=$ShadowVersion :stub-project:assemblePluginA1B2Debug
}

# 测试版本来源
Expand Down

0 comments on commit 57fe912

Please sign in to comment.