Skip to content

Commit 7d8d37c

Browse files
committed
Implement placeholders in Compose
1 parent 806c3a4 commit 7d8d37c

File tree

8 files changed

+1298
-572
lines changed

8 files changed

+1298
-572
lines changed

media-placeholders/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ android {
3232
includeAndroidResources = true
3333
}
3434
}
35+
buildFeatures {
36+
compose true
37+
}
38+
composeOptions {
39+
kotlinCompilerExtensionVersion = "1.5.14"
40+
}
3541
}
3642

3743
dependencies {
@@ -41,6 +47,10 @@ dependencies {
4147
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinCoroutinesVersion"
4248
testImplementation "junit:junit:$jUnitVersion"
4349
testImplementation "org.robolectric:robolectric:$robolectricVersion"
50+
implementation 'androidx.compose.material3:material3:1.3.1'
51+
implementation 'androidx.compose.foundation:foundation:1.7.5'
52+
implementation 'androidx.compose.ui:ui:1.7.5'
53+
implementation 'androidx.compose.ui:ui-tooling-preview:1.7.5'
4454
}
4555

4656
dependencyAnalysis {
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package org.wordpress.aztec.placeholders
2+
3+
import androidx.compose.runtime.Composable
4+
import org.wordpress.aztec.AztecAttributes
5+
6+
interface ComposePlaceholderAdapter : PlaceholderManager.PlaceholderAdapter {
7+
@Composable
8+
fun Placeholder(
9+
placeholderUuid: String,
10+
attrs: AztecAttributes,
11+
width: Int,
12+
height: Int,
13+
) {}
14+
}

0 commit comments

Comments
 (0)