Skip to content

Commit

Permalink
Fix deps resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
simona-anomis committed Sep 22, 2023
1 parent cef5d9d commit 434fc34
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 37 deletions.
20 changes: 14 additions & 6 deletions AdaptiveUICodelab/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,20 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'com.android.application' version "8.1.1" apply false
id 'com.android.library' version "8.1.1" apply false
id 'org.jetbrains.kotlin.android' version "1.9.10" apply false
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:8.1.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10"
}
}

task clean(type: Delete) {
delete rootProject.buildDir
subprojects {
repositories {
google()
mavenCentral()
}
}
10 changes: 6 additions & 4 deletions BasicLayoutsCodelab/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ buildscript {
google()
mavenCentral()
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
dependencies {
classpath "com.android.tools.build:gradle:8.1.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10"
}
}

plugins {
id 'com.android.application' version '8.1.1' apply false
id 'com.android.library' version '8.1.1' apply false
id 'org.jetbrains.kotlin.android' version '1.9.10' apply false
id 'com.diffplug.spotless' version '6.21.0'
}

Expand Down
15 changes: 12 additions & 3 deletions BasicStateCodelab/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
buildscript {
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:8.1.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10"
}
}

plugins {
id 'com.android.application' version '8.1.1' apply false
id 'com.android.library' version '8.1.1' apply false
id 'org.jetbrains.kotlin.android' version '1.9.10' apply false
id 'com.diffplug.spotless' version '6.21.0'
}

Expand Down
21 changes: 0 additions & 21 deletions BasicStateCodelab/build.gradle.kts

This file was deleted.

14 changes: 14 additions & 0 deletions BasicsCodelab/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}

rootProject.name = "BasicsCodelab"
include ':app'
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ interface GardenPlantingDao {
fun getPlantedGardens(): LiveData<List<PlantAndGardenPlantings>>

@Insert
suspend fun insertGardenPlanting(gardenPlanting: GardenPlanting): Long
fun insertGardenPlanting(gardenPlanting: GardenPlanting): Long

@Delete
suspend fun deleteGardenPlanting(gardenPlanting: GardenPlanting)
fun deleteGardenPlanting(gardenPlanting: GardenPlanting)
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ interface PlantDao {
fun getPlant(plantId: String): LiveData<Plant>

@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insertAll(plants: List<Plant>)
fun insertAll(plants: List<Plant>)
}

0 comments on commit 434fc34

Please sign in to comment.