api-impl: add stubs / simple stuff for OsmAnd

without native libs present, launches and renders white square
in map view; with native libs present, segfaults in bundled skia
This commit is contained in:
Mis012
2024-04-12 18:32:30 +02:00
parent fefd2f108b
commit 2802aaa28d
42 changed files with 2171 additions and 77 deletions

View File

@@ -256,6 +256,16 @@ public class Paint {
return new Shader();
}
public PathEffect setPathEffect(PathEffect effect) {
return effect;
}
public int breakText(char[] text, int index, int count, float maxWidth, float[] measuredWidth) { return 10; }
public int breakText(String text, boolean measureForwards, float maxWidth, float[] measuredWidth) { return 10; }
public int breakText(CharSequence text, int start, int end, boolean measureForwards, float maxWidth, float[] measuredWidth) { return 10; }
public void clearShadowLayer() {}
private native long native_constructor();
private native void native_set_antialias(long skia_paint, boolean aa);
private native void native_set_color(long skia_paint, int color);