-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove coreLibraryDesugaring dependency in the core and data modules.
- Loading branch information
1 parent
d7b2725
commit ba6e8fd
Showing
3 changed files
with
20 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,21 @@ | ||
import com.kizitonwose.calendar.buildsrc.Android | ||
import com.kizitonwose.calendar.buildsrc.Config | ||
import com.kizitonwose.calendar.buildsrc.Libs | ||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'kotlin-android' | ||
apply plugin: 'kotlin' | ||
apply plugin: 'com.vanniktech.maven.publish' | ||
|
||
android { | ||
compileSdk Android.compileSdk | ||
namespace 'com.kizitonwose.calendar.core' | ||
defaultConfig { | ||
minSdkVersion Android.minSdkLibraryCore | ||
targetSdkVersion Android.targetSdk | ||
multiDexEnabled true // Needed for desugar because minSdk < 21 | ||
java { | ||
toolchain { | ||
languageVersion = Config.compatibleJavaLanguageVersion | ||
} | ||
compileOptions { | ||
coreLibraryDesugaringEnabled true | ||
sourceCompatibility = Config.compatibleJavaVersion | ||
targetCompatibility = Config.compatibleJavaVersion | ||
} | ||
kotlinOptions { | ||
jvmTarget = Config.compatibleJavaVersion | ||
} | ||
|
||
kotlin { | ||
jvmToolchain { | ||
languageVersion = Config.compatibleJavaLanguageVersion | ||
} | ||
} | ||
|
||
dependencies { | ||
coreLibraryDesugaring Libs.Core.deSugar | ||
implementation Libs.Compose.runtime // Only needed for @Immutable annotation. | ||
} |
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