From e2307ce52ec3e92de618e379ed576d6856a618f2 Mon Sep 17 00:00:00 2001 From: Ibrahim Estanga Date: Wed, 31 May 2023 07:40:00 -0500 Subject: [PATCH] update kotlin version | bump version --- CHANGELOG.md | 4 +++ .../app/view/printer/PrinterBitmapActivity.kt | 10 +++--- ...=> point_mainapp_demo_app_ic_datafono.bmp} | Bin ...napp_demo_app_activity_printer_bitmap.xml} | 31 +++++++++--------- gradle.properties | 6 ++-- 5 files changed, 27 insertions(+), 24 deletions(-) rename app/src/main/res/drawable/{ic_datafono.bmp => point_mainapp_demo_app_ic_datafono.bmp} (100%) rename app/src/main/res/layout/{activity_printer_bitmap.xml => point_mainapp_demo_app_activity_printer_bitmap.xml} (96%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f83f18..c320c3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# v2.0.0 +## Modified +- Update kotlin version + # V1.4.0 ## Fixed - Fixed on click listener in payment button diff --git a/app/src/main/java/com/mercadolibre/android/point_mainapp_demo/app/view/printer/PrinterBitmapActivity.kt b/app/src/main/java/com/mercadolibre/android/point_mainapp_demo/app/view/printer/PrinterBitmapActivity.kt index 928e2d3..6aa0730 100644 --- a/app/src/main/java/com/mercadolibre/android/point_mainapp_demo/app/view/printer/PrinterBitmapActivity.kt +++ b/app/src/main/java/com/mercadolibre/android/point_mainapp_demo/app/view/printer/PrinterBitmapActivity.kt @@ -1,23 +1,23 @@ package com.mercadolibre.android.point_mainapp_demo.app.view.printer import android.graphics.BitmapFactory -import androidx.appcompat.app.AppCompatActivity import android.os.Bundle +import androidx.appcompat.app.AppCompatActivity import androidx.lifecycle.coroutineScope import com.mercadolibre.android.point_integration_sdk.nativesdk.MPManager import com.mercadolibre.android.point_mainapp_demo.app.R -import com.mercadolibre.android.point_mainapp_demo.app.databinding.ActivityPrinterBitmapBinding +import com.mercadolibre.android.point_mainapp_demo.app.databinding.PointMainappDemoAppActivityPrinterBitmapBinding import com.mercadolibre.android.point_mainapp_demo.app.util.gone import com.mercadolibre.android.point_mainapp_demo.app.util.visible import kotlinx.coroutines.launch class PrinterBitmapActivity : AppCompatActivity() { - private var binding: ActivityPrinterBitmapBinding? = null + private var binding: PointMainappDemoAppActivityPrinterBitmapBinding? = null override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - binding = ActivityPrinterBitmapBinding.inflate(layoutInflater) + binding = PointMainappDemoAppActivityPrinterBitmapBinding.inflate(layoutInflater) setContentView(binding?.root) onPrintImageBitmap() @@ -46,7 +46,7 @@ class PrinterBitmapActivity : AppCompatActivity() { private fun printImageBitmap() { - val bitmap = BitmapFactory.decodeResource(resources, R.drawable.ic_datafono) + val bitmap = BitmapFactory.decodeResource(resources, R.drawable.point_mainapp_demo_app_ic_datafono) lifecycle.coroutineScope.launch { MPManager.bitmapPrinter.makePrint(bitmap) { diff --git a/app/src/main/res/drawable/ic_datafono.bmp b/app/src/main/res/drawable/point_mainapp_demo_app_ic_datafono.bmp similarity index 100% rename from app/src/main/res/drawable/ic_datafono.bmp rename to app/src/main/res/drawable/point_mainapp_demo_app_ic_datafono.bmp diff --git a/app/src/main/res/layout/activity_printer_bitmap.xml b/app/src/main/res/layout/point_mainapp_demo_app_activity_printer_bitmap.xml similarity index 96% rename from app/src/main/res/layout/activity_printer_bitmap.xml rename to app/src/main/res/layout/point_mainapp_demo_app_activity_printer_bitmap.xml index ce3d3a4..0b091b3 100644 --- a/app/src/main/res/layout/activity_printer_bitmap.xml +++ b/app/src/main/res/layout/point_mainapp_demo_app_activity_printer_bitmap.xml @@ -1,19 +1,28 @@ - + + - - diff --git a/gradle.properties b/gradle.properties index 8e2fc39..f42ec18 100644 --- a/gradle.properties +++ b/gradle.properties @@ -38,8 +38,8 @@ applicationId=com.mercadolibre.android.point_mainapp_demo # IMPORTANT: We're using http://semver.org/ for all Android projects, please remember to follow this convention. # IMPORTANT: The version will be THE SAME for all modules. -versionCode=100300 -versionName=1.3.0 +versionCode=200000 +versionName=2.0.0 minSdkVersion = 23 targetSdkVersion=33 compileSdkVersion=33 @@ -51,7 +51,7 @@ buildToolsVersion=33.0.0 gradleBuildToolsVersion=4.2.1 gradleWrapperVersion=7.4 dexCountGradlePlugin=1.0.3 -kotlinVersion=1.7.21 +kotlinVersion=1.8.10 materialDesignVersion=1.7.0 jacocoVersion=0.8.7 renderscriptTargetApiVersion = 20