Skip to content

Commit 0da063c

Browse files
[4.3.0] Release
1 parent d07cf96 commit 0da063c

7 files changed

+8408
-475
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ that we can provide a better library/API for them. Please, feel free to share if
3939
## 1. Installation
4040

4141
The library is available
42-
from [Maven Central](https://search.maven.org/artifact/io.github.g0dkar/qrcode-kotlin/4.1.0/qrcode-kotlin)
42+
from [Maven Central](https://search.maven.org/artifact/io.github.g0dkar/qrcode-kotlin/4.3.0/qrcode-kotlin)
4343
and [NPM JS](https://www.npmjs.com/package/qrcode-kotlin), so you can add it to your project as a dependency like any
4444
other:
4545

README.pt-br.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Por favor, sinta-se livre para compartilhar se e como você utiliza este projeto
3939
## Instalação
4040

4141
A biblioteca está disponível através
42-
da [Maven Central](https://search.maven.org/artifact/io.github.g0dkar/qrcode-kotlin/4.1.1/qrcode-kotlin) e
42+
da [Maven Central](https://search.maven.org/artifact/io.github.g0dkar/qrcode-kotlin/4.3.0/qrcode-kotlin) e
4343
do [NPM JS](https://www.npmjs.com/package/qrcode-kotlin), portanto basta adicioná-la a seu projeto como qualquer outra:
4444

4545
**Gradle:**

examples/js/qrcode-kotlin.js

+7,967
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

release/qrcode-kotlin.d.ts

+5-28
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
type Nullable<T> = T | null | undefined
22
export declare namespace qrcode {
33
class QRCode {
4-
constructor(data: string, squareSize?: number, colorFn?: qrcode.color.QRCodeColorFunction, shapeFn?: qrcode.shape.QRCodeShapeFunction, graphicsFactory?: qrcode.render.QRCodeGraphicsFactory, errorCorrectionLevel?: qrcode.raw.ErrorCorrectionLevel, minTypeNum?: number, doBefore?: (p0: qrcode.QRCode, p1: qrcode.render.QRCodeGraphics, p2: number, p3: number) => void, doAfter?: (p0: qrcode.QRCode, p1: qrcode.render.QRCodeGraphics, p2: number, p3: number) => void);
4+
constructor(data: string, squareSize?: number, colorFn?: qrcode.color.QRCodeColorFunction, shapeFn?: qrcode.shape.QRCodeShapeFunction, graphicsFactory?: qrcode.render.QRCodeGraphicsFactory, errorCorrectionLevel?: qrcode.raw.ErrorCorrectionLevel, minTypeNum?: number, forceMinTypeNum?: boolean, doBefore?: (p0: qrcode.QRCode, p1: qrcode.render.QRCodeGraphics, p2: number, p3: number) => void, doAfter?: (p0: qrcode.QRCode, p1: qrcode.render.QRCodeGraphics, p2: number, p3: number) => void);
55
get data(): string;
66
get squareSize(): number;
77
get colorFn(): qrcode.color.QRCodeColorFunction;
@@ -27,7 +27,8 @@ export declare namespace qrcode {
2727
}
2828
export declare namespace qrcode {
2929
class QRCodeBuilder {
30-
constructor(shape: qrcode.QRCodeBuilder.QRCodeShapesEnum, customShapeFunction?: Nullable<qrcode.shape.QRCodeShapeFunction>);
30+
constructor(shape: any/* qrcode.QRCodeShapesEnum */, customShapeFunction?: Nullable<qrcode.shape.QRCodeShapeFunction>);
31+
withShape(shape: any/* qrcode.QRCodeShapesEnum */): qrcode.QRCodeBuilder;
3132
withSize(size: number): qrcode.QRCodeBuilder;
3233
withColor(color: number): qrcode.QRCodeBuilder;
3334
withBackgroundColor(bgColor: number): qrcode.QRCodeBuilder;
@@ -41,34 +42,10 @@ export declare namespace qrcode {
4142
withCustomColorFunction(colorFn: Nullable<qrcode.color.QRCodeColorFunction>): qrcode.QRCodeBuilder;
4243
withCustomShapeFunction(shapeFn: Nullable<qrcode.shape.QRCodeShapeFunction>): qrcode.QRCodeBuilder;
4344
withErrorCorrectionLevel(ecl: qrcode.raw.ErrorCorrectionLevel): qrcode.QRCodeBuilder;
44-
withMinimumInformationDensity(minTypeNum: number): qrcode.QRCodeBuilder;
45+
withInformationDensity(minTypeNum: number): qrcode.QRCodeBuilder;
46+
forceInformationDensity(forceInformationDensity: boolean): qrcode.QRCodeBuilder;
4547
build(data: string): qrcode.QRCode;
4648
}
47-
namespace QRCodeBuilder {
48-
abstract class QRCodeShapesEnum {
49-
private constructor();
50-
static get SQUARE(): qrcode.QRCodeBuilder.QRCodeShapesEnum & {
51-
get name(): "SQUARE";
52-
get ordinal(): 0;
53-
};
54-
static get CIRCLE(): qrcode.QRCodeBuilder.QRCodeShapesEnum & {
55-
get name(): "CIRCLE";
56-
get ordinal(): 1;
57-
};
58-
static get ROUNDED_SQUARE(): qrcode.QRCodeBuilder.QRCodeShapesEnum & {
59-
get name(): "ROUNDED_SQUARE";
60-
get ordinal(): 2;
61-
};
62-
static get CUSTOM(): qrcode.QRCodeBuilder.QRCodeShapesEnum & {
63-
get name(): "CUSTOM";
64-
get ordinal(): 3;
65-
};
66-
static values(): Array<qrcode.QRCodeBuilder.QRCodeShapesEnum>;
67-
static valueOf(value: string): qrcode.QRCodeBuilder.QRCodeShapesEnum;
68-
get name(): "SQUARE" | "CIRCLE" | "ROUNDED_SQUARE" | "CUSTOM";
69-
get ordinal(): 0 | 1 | 2 | 3;
70-
}
71-
}
7249
}
7350
export declare namespace qrcode.color {
7451
const Colors: {

0 commit comments

Comments
 (0)