Skip to content

Commit 445ce5d

Browse files
authored
添加 Android 命名空间 (#149)
在 android/build.gradle 文件中为项目指定了一个新的命名空间 'io.github.v7lin.wechat_kit'。这有助于在 Android 应用中更好地组织和管理代码,提高模块间的隔离性和可维护性。
1 parent 9066a47 commit 445ce5d

File tree

3 files changed

+115
-94
lines changed

3 files changed

+115
-94
lines changed

android/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ rootProject.allprojects {
2929
apply plugin: 'com.android.library'
3030

3131
android {
32+
if (project.android.hasProperty('namespace') ||
33+
getGradle().getGradleVersion().substring(0, 1).toInteger() >= 8) {
34+
namespace 'io.github.v7lin.wechat_kit'
35+
}
36+
3237
compileSdkVersion 31
3338

3439
compileOptions {

0 commit comments

Comments
 (0)