From 8dfbb8b47b96e5037f47ac2dea5f3c2eac54b972 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Tue, 27 Jun 2023 01:27:22 +0800 Subject: [PATCH] Fix tool app --- .github/workflows/android.yml | 2 +- tool/src/main/java/io/github/vvb2060/ndk/curl/MainActivity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 780f4f9..33f5030 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -36,7 +36,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: ${{ matrix.os }}-app - path: example/build/outputs + path: tool/build/outputs - name: Upload library uses: actions/upload-artifact@v3 with: diff --git a/tool/src/main/java/io/github/vvb2060/ndk/curl/MainActivity.java b/tool/src/main/java/io/github/vvb2060/ndk/curl/MainActivity.java index 0f42d0a..5611f8e 100644 --- a/tool/src/main/java/io/github/vvb2060/ndk/curl/MainActivity.java +++ b/tool/src/main/java/io/github/vvb2060/ndk/curl/MainActivity.java @@ -128,7 +128,7 @@ private void execCurl(List command) { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(buildView()); - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) return; + if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) return; apkPath = getApplicationInfo().sourceDir; editText.setText("--http3 https://www.cloudflare.com/cdn-cgi/trace"); editText.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER));