-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Aweme/develop
Bug fix 修复了module无法使用的问题
- Loading branch information
Showing
6 changed files
with
8 additions
and
13 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
10 changes: 1 addition & 9 deletions
10
src/main/groovy/com/smallsoho/mcplugin/image/utils/AndroidUtil.groovy
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 |
---|---|---|
@@ -1,19 +1,11 @@ | ||
package com.smallsoho.mcplugin.image.utils | ||
|
||
import com.android.build.gradle.AppPlugin | ||
import com.android.build.gradle.BaseExtension | ||
import org.gradle.api.Project | ||
|
||
class AndroidUtil { | ||
|
||
static BaseExtension getAndroidExtension(Project project) { | ||
AppPlugin plugin = project.plugins.getPlugin(AppPlugin) | ||
return plugin.extension | ||
} | ||
|
||
|
||
static int getMinSdkVersion(Project project) { | ||
return getAndroidExtension(project).defaultConfig.minSdkVersion.apiLevel | ||
return project.android.defaultConfig.minSdkVersion.apiLevel | ||
} | ||
|
||
} |