Fixed setting height and width in native app
This commit is contained in:
parent
69fb044dd1
commit
cb9c60b0e4
|
@ -9,7 +9,7 @@ fun main(args: Array<String>) {
|
||||||
exit(0)
|
exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
val config = EpcQrCodeConfig(args[0], args[1], args[2], if (args.size > 3) args[3] else null)
|
val config = EpcQrCodeConfig(args[0], args[1], args[2], if (args.size > 3) args[3] else null, qrCodeHeightAndWidth = 40)
|
||||||
|
|
||||||
NativeApp().generateAndShowEpcQrCode(config)
|
NativeApp().generateAndShowEpcQrCode(config)
|
||||||
}
|
}
|
|
@ -4,7 +4,7 @@ package net.codinux.banking.epcqrcode
|
||||||
class NativeApp {
|
class NativeApp {
|
||||||
|
|
||||||
fun generateAndShowEpcQrCode(config: EpcQrCodeConfig) {
|
fun generateAndShowEpcQrCode(config: EpcQrCodeConfig) {
|
||||||
val epcQrCode = EpcQrCodeGenerator().generateEpcQrCode(config, 40)
|
val epcQrCode = EpcQrCodeGenerator().generateEpcQrCode(config)
|
||||||
|
|
||||||
println(epcQrCode.qrCodeAsSmallString(4, true))
|
println(epcQrCode.qrCodeAsSmallString(4, true))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue