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
package com.namtarr.upsert | |
import androidx.room.Entity | |
import androidx.room.PrimaryKey | |
@Entity | |
class User( | |
@PrimaryKey | |
val id: Long, | |
val name: String |
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
apply from: './task.gradle' | |
android.applicationVariants.all { variant -> | |
def file = project.file("build/generated/res/res-task/main") | |
def files = project.files(file) | |
files.builtBy(generateStringsFile) | |
variant.registerGeneratedResFolders(files) | |
} |