From b86431ba64cf912cb6eb4c660e2d7fcea243fabc Mon Sep 17 00:00:00 2001 From: bmcpt Date: Fri, 8 Jul 2022 15:59:12 +0530 Subject: [PATCH] v0.2.0 --- configurator/build.gradle | 6 +++--- .../main/java/io/bytebeam/uplink/service/UplinkService.kt | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/configurator/build.gradle b/configurator/build.gradle index 82724f6..b91f2a3 100644 --- a/configurator/build.gradle +++ b/configurator/build.gradle @@ -42,10 +42,10 @@ dependencies { def rustBasePath = ".." def archTriplets = [ -// 'armeabi-v7a': 'armv7-linux-androideabi', -// 'arm64-v8a' : 'aarch64-linux-android', + 'armeabi-v7a': 'armv7-linux-androideabi', + 'arm64-v8a' : 'aarch64-linux-android', 'x86' : 'i686-linux-android', -// 'x86_64' : 'x86_64-linux-android', + 'x86_64' : 'x86_64-linux-android', ] // TODO: only pass --release if buildType is release diff --git a/configurator/src/main/java/io/bytebeam/uplink/service/UplinkService.kt b/configurator/src/main/java/io/bytebeam/uplink/service/UplinkService.kt index 99b9210..2519d3a 100644 --- a/configurator/src/main/java/io/bytebeam/uplink/service/UplinkService.kt +++ b/configurator/src/main/java/io/bytebeam/uplink/service/UplinkService.kt @@ -61,8 +61,10 @@ class UplinkService : Service() { val startAppIntent = PendingIntent.getActivity( this, 0, - Intent(this, MainActivity::class.java), - Intent.FLAG_ACTIVITY_NEW_TASK + Intent(this, MainActivity::class.java).also { + it.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) + }, + PendingIntent.FLAG_IMMUTABLE ) val notification = NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID) .setOngoing(true)