diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..44ca2d9 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,41 @@ + + + + \ No newline at end of file diff --git a/composeqrcode/gradle.properties b/composeqrcode/gradle.properties index 0a2071a..a69eeab 100644 --- a/composeqrcode/gradle.properties +++ b/composeqrcode/gradle.properties @@ -1,6 +1,6 @@ GROUP=com.lightspark POM_ARTIFACT_ID=compose-qr-code -VERSION_NAME=1.0.0 +VERSION_NAME=1.0.1 POM_NAME=compose-qr-code POM_PACKAGING=aar diff --git a/composeqrcode/src/main/java/com/lightspark/composeqr/QrCodeView.kt b/composeqrcode/src/main/java/com/lightspark/composeqr/QrCodeView.kt index b4f0277..db59079 100644 --- a/composeqrcode/src/main/java/com/lightspark/composeqr/QrCodeView.kt +++ b/composeqrcode/src/main/java/com/lightspark/composeqr/QrCodeView.kt @@ -72,7 +72,7 @@ fun QrCodeView( dotShape: DotShape = DotShape.Square, encoder: QrEncoder = QrEncoder() ) { - val encodedData = remember { encoder(data) } + val encodedData = remember(data, encoder) { encoder(data) } Canvas(modifier = modifier.background(colors.background)) { encodedData?.let { matrix ->