I have a problem (in both `3.0.0-dev-105` and `3.0...
# splitties
p
I have a problem (in both
3.0.0-dev-105
and
3.0.0-beta01
) with assembling custom build type. I have alpha build type declared in
app
module as follows:
Copy code
buildTypes {
    getByName("alpha") {
        applicationIdSuffix = ".alpha"
        versionNameSuffix = "-alpha"
    }
}
l
Hello @pawegio Can you try setting a matchingFallback to either release or debug?
p
thanks! I’ll try it and I’ll let you know.
👍 1
@louiscad it worked like a charm 🎉 thanks man! 🙂
🎉 1
l
Great! I need to add it in a known issues or FAQ part of the doc
BTW, may I ask you what are the splits you're using?
p
sure:
Copy code
com.louiscad.splitties:splitties-fun-pack-android-base-with-views-dsl:${Versions.splitties}

com.louiscad.splitties:splitties-fun-pack-android-material-components-with-views-dsl:${Versions.splitties}

com.louiscad.splitties:splitties-checkedlazy:${Versions.splitties}
l
Oh, you're using the big fun packs with Views DSL!
p
yes, we have no layouts declared in XML files 🙂
👌 1
l
Be sure to read changelog of alpha7 and beta1, there's a bunch of new stuff in Views DSL
p
ok thanks, mainly we had to migrate our dp()/dip() methods usage
l
Ah yeah, I had to as well 😅
You probably saw it: if you're using IDE preview, you now have a way to have it without any xml files
p
yes, I do. I have an abstract preview class:
Copy code
abstract class ScreenUiPreview(ui: Ui) : FrameLayout(ui.ctx, null) {

    init {
        add(ui.root, lParams(matchParent, matchParent))
    }
}
and I subclass it for each
Ui
, it just requires importing
AttributeSet
to work.
Copy code
@Suppress("unused", "UNUSED_PARAMETER")
private class MenuUiPreview(ctx: Context, attributeSet: AttributeSet) :
    ScreenUiPreview(MenuUiImpl(ctx).apply {
        // ui setup
    })
l
Why not use the updated
UiPreView
provided by Splitties?
p
Oh, so I missed it. I used xml preview for a while, but it stopped working or I had some issues.
I’ll check it 👍