Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Apr 11, 2024
1 parent 2e9a455 commit 7ca4706
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ on: [push]
# - '*'

env:
NCNN_VERSION: 20231027
OPENCV_VERSION: 4.8.1
OPENCV_MOBILE_TAG: v22
NCNN_VERSION: 20240410
OPENCV_VERSION: 4.9.0
OPENCV_MOBILE_TAG: v26
BUILD_TOOLS_VERSION: 32.0.0

jobs:
release-apk:
Expand Down Expand Up @@ -47,10 +48,10 @@ jobs:
-dname "CN=mqttserver.ibm.com, OU=ID, O=IBM, L=Hursley, S=Hants, C=GB"\
-keystore ncnn.keystore -storepass 7767517 -keypass 7767517 \
-keyalg RSA -keysize 2048 -validity 10000
${ANDROID_HOME}/build-tools/29.0.2/zipalign -f -v 4 ${UNSIGNED_APK} ${SIGNED_APK}
${ANDROID_HOME}/build-tools/29.0.2/apksigner sign --ks ncnn.keystore --ks-key-alias ncnn \
${ANDROID_HOME}/build-tools/${BUILD_TOOLS_VERSION}/zipalign -f -v 4 ${UNSIGNED_APK} ${SIGNED_APK}
${ANDROID_HOME}/build-tools/${BUILD_TOOLS_VERSION}/apksigner sign --ks ncnn.keystore --ks-key-alias ncnn \
--ks-pass pass:7767517 --key-pass pass:7767517 --out ${SIGNED_APK} ${SIGNED_APK}
${ANDROID_HOME}/build-tools/29.0.2/apksigner verify ${SIGNED_APK}
${ANDROID_HOME}/build-tools/${BUILD_TOOLS_VERSION}/apksigner verify ${SIGNED_APK}
echo "SIGNED_APK=${SIGNED_APK}" >> $GITHUB_OUTPUT
echo "APK_VERSION=${DATE}.${SHA_SHORT}" >> $GITHUB_OUTPUT
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "29.0.2"
compileSdkVersion 21
buildToolsVersion "32.0.0"

defaultConfig {
applicationId "com.tencent.nanodetncnn"
archivesBaseName = "$applicationId"

minSdkVersion 24
minSdkVersion 21
}

externalNativeBuild {
Expand Down

0 comments on commit 7ca4706

Please sign in to comment.