raeleus/stripe

Missing FreeTypeSkinLoader class

Closed this issue · 1 comments

Stripe version : 1.4.1
GDX version : 1.11.0

Problem :
I'm trying to implement FreeTypeFont and Stripe to an existing project but I can't load the Skin with my AssetManager.
I want to configure the loader for FreeTypeSkin but the class FreeTypeSkinLoader seems to be missing from the stribe package.

According to those documentations :

in order to implement FreeTypeFont I just need to do :

AssetManager assetManager = new AssetManager();
assetManager.setLoader(Skin.class, new FreeTypeSkinLoader(assetManager.getFileHandleResolver()));
assetManager.load("skin-name.json", Skin.class);

But the FreeTypeSkinLoader cannot be resolved.

Here are my dependencies, build.gradle (root) :

...
allprojects {
    ...
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}

project(":desktop") {
    ...
    dependencies {
        ...
        implementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
    }
}

project(":core") {
    ...
    dependencies {
        ...
        implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
        implementation 'com.github.raeleus.stripe:stripe:1.4.1'
    }
}

Am I missing something?

Thanks!

OK my bad, I implemented the wrong project. I had to change my core dependency in build.gradle from :

implementation 'com.github.raeleus.stripe:stripe:1.4.1'

to :

implementation 'com.github.raeleus.stripe:freetype:1.4.1'

Issue is resolved for me