Skip to content

Commit

Permalink
Add ARM only APK build
Browse files Browse the repository at this point in the history
  • Loading branch information
Breta01 committed Apr 25, 2020
1 parent a8ac6dd commit 0e7ff42
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
.cxx
opencv/build
app/release
app/release_arm
8 changes: 8 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ android {
'proguard-android-optimize.txt'),
'proguard-rules.pro'
}
// Add new release type for publishing ARM only APK on github release
release_arm {
initWith release
matchingFallbacks = ['release']
ndk {
abiFilters 'armeabi-v7a','arm64-v8a'
}
}
}
compileOptions {
sourceCompatibility 1.8
Expand Down
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Expand Down

0 comments on commit 0e7ff42

Please sign in to comment.