Coder Social home page Coder Social logo

Comments (2)

Brianvdb avatar Brianvdb commented on August 20, 2024 4

You have to build an APK for each architecture and exlude the unnecessary files for each architecture.

You can accomplish this with productFlavors. Checkout this gradle sample:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27

    defaultConfig {
        applicationId "nl.bravobit.ffmpeg.test"
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 1
        versionName "1.0.1"
    }

    flavorDimensions "abi"

    productFlavors {
        x86 {
            dimension "abi"
            versionCode 1001 // you need different version codes to support multiple APK's in Play Store
            ndk {
                abiFilter "x86"
            }
            aaptOptions {
                ignoreAssetsPattern "!arm"
            }
        }
        armv7a {
            dimension "abi"
            versionCode 2001 // you need different version codes to support multiple APK's in Play Store
            ndk {
                abiFilter "armeabi-v7a"
            }
            aaptOptions {
                ignoreAssetsPattern "!x86"
            }
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.0.2'

    implementation 'nl.bravobit:android-ffmpeg:1.1.0'
}

from ffmpeg-android.

EternalSoySauce avatar EternalSoySauce commented on August 20, 2024 1

thx, I'll try it. Happy new year, bro. (^_^)

from ffmpeg-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.