-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 调整生命周期赋值方式 - 优化内存泄露问题
- Loading branch information
SOUSHIN\Soushin
committed
Aug 27, 2022
1 parent
7de9d90
commit dc9edf6
Showing
8 changed files
with
93 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,23 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
apply from: "config.gradle" | ||
buildscript { | ||
ext.kotlin_version = '1.6.21' | ||
ext.navVersion= '2.4.1' | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { url "https://www.jitpack.io" } | ||
//阿里云仓库总览 https://developer.aliyun.com/mvn/guide | ||
maven { url 'https://maven.aliyun.com/repository/google' } | ||
maven { url 'https://maven.aliyun.com/repository/central' } | ||
maven { url 'https://maven.aliyun.com/repository/public' } | ||
maven { url 'https://maven.aliyun.com/repository/public' } | ||
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } | ||
maven { url 'https://maven.aliyun.com/repository/spring' } | ||
maven { url 'https://maven.aliyun.com/repository/spring-plugin' } | ||
maven { url 'https://maven.aliyun.com/repository/grails-core' } | ||
maven { url 'https://maven.aliyun.com/repository/apache-snapshots' } | ||
} | ||
dependencies { | ||
//viewbinding对gradle版本有要求 最低3.6 低于此版本会导致部分功能不可用 | ||
classpath 'com.android.tools.build:gradle:7.2.1' | ||
// classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navVersion" | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
maven { url "https://www.jitpack.io" } | ||
google() | ||
mavenCentral() | ||
//阿里云仓库总览 https://developer.aliyun.com/mvn/guide | ||
maven { url 'https://maven.aliyun.com/repository/google' } | ||
maven { url 'https://maven.aliyun.com/repository/central' } | ||
maven { url 'https://maven.aliyun.com/repository/public' } | ||
maven { url 'https://maven.aliyun.com/repository/public' } | ||
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } | ||
maven { url 'https://maven.aliyun.com/repository/spring' } | ||
maven { url 'https://maven.aliyun.com/repository/spring-plugin' } | ||
maven { url 'https://maven.aliyun.com/repository/grails-core' } | ||
maven { url 'https://maven.aliyun.com/repository/apache-snapshots' } | ||
} | ||
} | ||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
buildscript { | ||
dependencies { | ||
//viewbinding对gradle版本有要求 最低3.6 低于此版本会导致部分功能不可用 | ||
classpath 'com.android.tools.build:gradle:4.2.0' | ||
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21" | ||
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.4.1" | ||
} | ||
} | ||
plugins { | ||
id 'com.android.application' version '7.2.1' apply false | ||
id 'com.android.library' version '7.2.1' apply false | ||
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false | ||
} | ||
|
||
apply { | ||
from 'config.gradle' | ||
} | ||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,38 @@ | ||
include ':app', ':tinmvvm' | ||
|
||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
maven { url "https://www.jitpack.io" } | ||
google() | ||
mavenCentral() | ||
//阿里云仓库总览 https://developer.aliyun.com/mvn/guide | ||
maven { url 'https://maven.aliyun.com/repository/google' } | ||
maven { url 'https://maven.aliyun.com/repository/central' } | ||
maven { url 'https://maven.aliyun.com/repository/public' } | ||
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } | ||
maven { url 'https://maven.aliyun.com/repository/spring' } | ||
maven { url 'https://maven.aliyun.com/repository/spring-plugin' } | ||
maven { url 'https://maven.aliyun.com/repository/grails-core' } | ||
maven { url 'https://maven.aliyun.com/repository/apache-snapshots' } | ||
} | ||
} | ||
dependencyResolutionManagement { | ||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) | ||
repositories { | ||
maven { url "https://www.jitpack.io" } | ||
google() | ||
mavenCentral() | ||
//阿里云仓库总览 https://developer.aliyun.com/mvn/guide | ||
maven { url 'https://maven.aliyun.com/repository/google' } | ||
maven { url 'https://maven.aliyun.com/repository/central' } | ||
maven { url 'https://maven.aliyun.com/repository/public' } | ||
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } | ||
maven { url 'https://maven.aliyun.com/repository/spring' } | ||
maven { url 'https://maven.aliyun.com/repository/spring-plugin' } | ||
maven { url 'https://maven.aliyun.com/repository/grails-core' } | ||
maven { url 'https://maven.aliyun.com/repository/apache-snapshots' } | ||
} | ||
} | ||
|
||
rootProject.name = "TinMvvm" | ||
include ':app',':tinmvvm' |
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