Skip to content

Commit

Permalink
Merge pull request #319 from skydoves/compiler/k2
Browse files Browse the repository at this point in the history
Use the experimental K2 compiler
  • Loading branch information
skydoves authored Aug 1, 2023
2 parents f20f6e7 + 2a3fc1d commit 1a02be4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
13 changes: 5 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,30 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

# https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory
org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -Dlint.nullness.ignore-deprecated=true

# https://docs.gradle.org/current/userguide/build_cache.html
org.gradle.caching=true

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
org.gradle.parallel=true

# Configure only necessary projects, useful with multimodule projects
org.gradle.configureondemand=true

# AndroidX Migration https://developer.android.com/jetpack/androidx/migrate
android.useAndroidX=true

# Removes uneccessary default build features
android.defaults.buildfeatures.aidl=false
android.defaults.buildfeatures.buildconfig=false
android.defaults.buildfeatures.renderscript=false
android.defaults.buildfeatures.resvalues=false
android.defaults.buildfeatures.shaders=false

# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
# https://developer.android.com/studio/releases/gradle-plugin#4.1-nontransitive-r-class
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true
# Use K2 compiler
kotlin.experimental.tryK2=true
# Run lint on K2
android.lint.useK2Uast=true
4 changes: 4 additions & 0 deletions landscapist-palette/api/landscapist-palette.api
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ public final class com/skydoves/landscapist/palette/PalettePlugin : com/skydoves
public fun <init> ()V
public fun <init> (Ljava/lang/Object;ZLcom/skydoves/landscapist/palette/PaletteBuilderInterceptor;Lcom/skydoves/landscapist/palette/PaletteLoadedListener;)V
public synthetic fun <init> (Ljava/lang/Object;ZLcom/skydoves/landscapist/palette/PaletteBuilderInterceptor;Lcom/skydoves/landscapist/palette/PaletteLoadedListener;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun component1 ()Ljava/lang/Object;
public final fun component2 ()Z
public final fun component3 ()Lcom/skydoves/landscapist/palette/PaletteBuilderInterceptor;
public final fun component4 ()Lcom/skydoves/landscapist/palette/PaletteLoadedListener;
public fun compose (Landroidx/compose/ui/Modifier;Ljava/lang/Object;Lcom/skydoves/landscapist/ImageOptions;Landroidx/compose/ui/graphics/ImageBitmap;Landroidx/compose/runtime/Composer;I)Lcom/skydoves/landscapist/plugins/ImagePlugin;
public final fun copy (Ljava/lang/Object;ZLcom/skydoves/landscapist/palette/PaletteBuilderInterceptor;Lcom/skydoves/landscapist/palette/PaletteLoadedListener;)Lcom/skydoves/landscapist/palette/PalettePlugin;
public static synthetic fun copy$default (Lcom/skydoves/landscapist/palette/PalettePlugin;Ljava/lang/Object;ZLcom/skydoves/landscapist/palette/PaletteBuilderInterceptor;Lcom/skydoves/landscapist/palette/PaletteLoadedListener;ILjava/lang/Object;)Lcom/skydoves/landscapist/palette/PalettePlugin;
Expand Down
6 changes: 3 additions & 3 deletions landscapist-placeholder/api/landscapist-placeholder.api
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public final class com/skydoves/landscapist/placeholder/placeholder/PlaceholderP
public static final field $stable I
public fun <init> (Ljava/lang/Object;)V
public final fun component1 ()Ljava/lang/Object;
public synthetic fun compose (Landroidx/compose/ui/Modifier;Lcom/skydoves/landscapist/ImageOptions;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;I)Lcom/skydoves/landscapist/plugins/ImagePlugin;
public synthetic fun compose (Landroidx/compose/ui/Modifier;Lcom/skydoves/landscapist/ImageOptions;Landroidx/compose/runtime/internal/ComposableFunction1;Landroidx/compose/runtime/Composer;I)Lcom/skydoves/landscapist/plugins/ImagePlugin;
public fun compose (Landroidx/compose/ui/Modifier;Lcom/skydoves/landscapist/ImageOptions;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;I)Lcom/skydoves/landscapist/plugins/ImagePlugin;
public final fun copy (Ljava/lang/Object;)Lcom/skydoves/landscapist/placeholder/placeholder/PlaceholderPlugin$Loading;
public static synthetic fun copy$default (Lcom/skydoves/landscapist/placeholder/placeholder/PlaceholderPlugin$Loading;Ljava/lang/Object;ILjava/lang/Object;)Lcom/skydoves/landscapist/placeholder/placeholder/PlaceholderPlugin$Loading;
Expand Down Expand Up @@ -48,7 +48,7 @@ public final class com/skydoves/landscapist/placeholder/shimmer/ShimmerPlugin :
public final fun component5 ()F
public final fun component6 ()F
public final fun component7 ()I
public synthetic fun compose (Landroidx/compose/ui/Modifier;Lcom/skydoves/landscapist/ImageOptions;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;I)Lcom/skydoves/landscapist/plugins/ImagePlugin;
public synthetic fun compose (Landroidx/compose/ui/Modifier;Lcom/skydoves/landscapist/ImageOptions;Landroidx/compose/runtime/internal/ComposableFunction1;Landroidx/compose/runtime/Composer;I)Lcom/skydoves/landscapist/plugins/ImagePlugin;
public fun compose (Landroidx/compose/ui/Modifier;Lcom/skydoves/landscapist/ImageOptions;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;I)Lcom/skydoves/landscapist/plugins/ImagePlugin;
public final fun copy-EsoZhhI (JJLandroidx/compose/ui/unit/Dp;FFFI)Lcom/skydoves/landscapist/placeholder/shimmer/ShimmerPlugin;
public static synthetic fun copy-EsoZhhI$default (Lcom/skydoves/landscapist/placeholder/shimmer/ShimmerPlugin;JJLandroidx/compose/ui/unit/Dp;FFFIILjava/lang/Object;)Lcom/skydoves/landscapist/placeholder/shimmer/ShimmerPlugin;
Expand All @@ -68,7 +68,7 @@ public final class com/skydoves/landscapist/placeholder/thumbnail/ThumbnailPlugi
public static final field $stable I
public synthetic fun <init> (JILkotlin/jvm/internal/DefaultConstructorMarker;)V
public synthetic fun <init> (JLkotlin/jvm/internal/DefaultConstructorMarker;)V
public synthetic fun compose (Landroidx/compose/ui/Modifier;Lcom/skydoves/landscapist/ImageOptions;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;I)Lcom/skydoves/landscapist/plugins/ImagePlugin;
public synthetic fun compose (Landroidx/compose/ui/Modifier;Lcom/skydoves/landscapist/ImageOptions;Landroidx/compose/runtime/internal/ComposableFunction1;Landroidx/compose/runtime/Composer;I)Lcom/skydoves/landscapist/plugins/ImagePlugin;
public fun compose (Landroidx/compose/ui/Modifier;Lcom/skydoves/landscapist/ImageOptions;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;I)Lcom/skydoves/landscapist/plugins/ImagePlugin;
}

0 comments on commit 1a02be4

Please sign in to comment.