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) {