From 96b940b4c665a70210955c4245b5cb1c2fd896af Mon Sep 17 00:00:00 2001 From: bataevvlad Date: Sat, 16 Nov 2024 11:06:12 +0100 Subject: [PATCH] Test PR (#1) * Test PR * Test PR * Test PR 3 --- src/__tests__/index.test.ts | 0 src/index.ts | 1 + src/utils/android.utils.ts | 2 ++ 3 files changed, 3 insertions(+) delete mode 100644 src/__tests__/index.test.ts diff --git a/src/__tests__/index.test.ts b/src/__tests__/index.test.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/index.ts b/src/index.ts index 363c21c..67b17a6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -39,6 +39,7 @@ export const iosCapabilities: any = { }, }; + export const startApp = async (): Promise => { if (platform === 'android') { const foregroundApp = getAndroidForegroundAppPackageAndActivity(); diff --git a/src/utils/android.utils.ts b/src/utils/android.utils.ts index f6b95c0..e961895 100644 --- a/src/utils/android.utils.ts +++ b/src/utils/android.utils.ts @@ -14,7 +14,9 @@ export const getAndroidForegroundAppPackageAndActivity = (): ForegroundApp | nul if (lineWithFocus) { // ResumedActivity: ActivityRecord{cb77ef3 u0 com.example.app/com.example.app.MainActivity t93} const match = lineWithFocus.match( + /* eslint-disable */ /ResumedActivity: ActivityRecord\{.*\s([^\s\/]+)\/([^\s\}\s]+)\s/ + /* eslint-enable */ ); if (match) {