Skip to content

Commit

Permalink
Implement placeholders in Compose
Browse files Browse the repository at this point in the history
  • Loading branch information
planarvoid committed Dec 9, 2024
1 parent 806c3a4 commit 7d8d37c
Show file tree
Hide file tree
Showing 8 changed files with 1,298 additions and 572 deletions.
10 changes: 10 additions & 0 deletions media-placeholders/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ android {
includeAndroidResources = true
}
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.14"
}
}

dependencies {
Expand All @@ -41,6 +47,10 @@ dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinCoroutinesVersion"
testImplementation "junit:junit:$jUnitVersion"
testImplementation "org.robolectric:robolectric:$robolectricVersion"
implementation 'androidx.compose.material3:material3:1.3.1'
implementation 'androidx.compose.foundation:foundation:1.7.5'
implementation 'androidx.compose.ui:ui:1.7.5'
implementation 'androidx.compose.ui:ui-tooling-preview:1.7.5'
}

dependencyAnalysis {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package org.wordpress.aztec.placeholders

import androidx.compose.runtime.Composable
import org.wordpress.aztec.AztecAttributes

interface ComposePlaceholderAdapter : PlaceholderManager.PlaceholderAdapter {
@Composable
fun Placeholder(
placeholderUuid: String,
attrs: AztecAttributes,
width: Int,
height: Int,
) {}
}
Loading

0 comments on commit 7d8d37c

Please sign in to comment.