From c39e2fb548e354eea32eaefd21d012de4cd7d1ee Mon Sep 17 00:00:00 2001 From: vadymv-mendix Date: Mon, 12 Jan 2026 15:40:31 +0100 Subject: [PATCH 1/2] chore: remove Detox dependencies from build.gradle files --- CHANGELOG.md | 4 ++++ android/app/build.gradle | 1 - android/build.gradle | 3 --- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4aa5061f..49483863 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +- We removed leftover Detox references from the Android build files. This fixes an issue where generating Android APKs would fail due to Detox dependencies not being found. + +## [17.0.2] - 2026-01-12 + - We updated mendix-native to v0.3.1, enabling session cookie persistence and restoration on iOS. ## [17.0.1] - 2025-12-24 diff --git a/android/app/build.gradle b/android/app/build.gradle index cf7b8bdc..60fb8840 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -137,7 +137,6 @@ dependencies { devImplementation "androidx.constraintlayout:constraintlayout:2.0.4" devImplementation "me.dm7.barcodescanner:zxing:1.9.8" - androidTestImplementation("com.wix:detox:+") { transitive = true } androidTestImplementation "junit:junit:4.12" } diff --git a/android/build.gradle b/android/build.gradle index 651ea50e..f3780238 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -63,9 +63,6 @@ allprojects { mavenCentral() } } - maven { - url "$rootDir/../node_modules/detox/Detox-android" - } maven { url "$rootDir/../node_modules/@notifee/react-native/android/libs" } From 2d634d7dabe52d8794e1f6beee90aa138e2df849 Mon Sep 17 00:00:00 2001 From: vadymv-mendix Date: Mon, 12 Jan 2026 15:34:03 +0100 Subject: [PATCH 2/2] chore: remove DetoxTest class and related test code --- .../com/mendix/nativetemplate/DetoxTest.java | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 android/app/src/androidTest/java/com/mendix/nativetemplate/DetoxTest.java diff --git a/android/app/src/androidTest/java/com/mendix/nativetemplate/DetoxTest.java b/android/app/src/androidTest/java/com/mendix/nativetemplate/DetoxTest.java deleted file mode 100644 index 50e292c7..00000000 --- a/android/app/src/androidTest/java/com/mendix/nativetemplate/DetoxTest.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.mendix.nativetemplate; - -import androidx.test.ext.junit.runners.AndroidJUnit4; -import androidx.test.filters.LargeTest; -import androidx.test.rule.ActivityTestRule; - -import com.wix.detox.Detox; -import com.wix.detox.config.DetoxConfig; - -import org.junit.Rule; -import org.junit.Test; -import org.junit.runner.RunWith; - -@RunWith(AndroidJUnit4.class) -@LargeTest -public class DetoxTest { - @Rule - public ActivityTestRule mActivityRule = new ActivityTestRule<>(MainActivity.class, false, false); - - @Test - public void runDetoxTests() { - DetoxConfig detoxConfig = new DetoxConfig(); - detoxConfig.idlePolicyConfig.masterTimeoutSec = 500; - detoxConfig.idlePolicyConfig.idleResourceTimeoutSec = 500; - detoxConfig.rnContextLoadTimeoutSec = 500; - - Detox.runTests(mActivityRule, detoxConfig); - } -}