I have two flavors in the app, one is for playStore which includes the youtubeAPI library from google and other is the fdroid flavor which does not contain any proprietary software.
So whenever I build the app through fdroid this is what I get :
1 actionable task: 1 executed INFO: Scanning source for common problems... ERROR: Found usual suspect 'youtube.*android.*player.*api' at app/libs/YouTubeAndroidPlayerApi.jar WARNING: Found JAR file at app/libs/YouTubeAndroidPlayerApi.jar WARNING: Found possible binary at app/src/main/assets/snowboy/alexa_02092017.umdl WARNING: Found possible binary at app/src/main/assets/snowboy/common.res ERROR: Found shared library at app/src/main/jniLibs/arm64-v8a/libsnowboy-detect-android.so ERROR: Found shared library at app/src/main/jniLibs/armeabi-v7a/libsnowboy-detect-android.so INFO: Removing gradle-wrapper.jar at gradle/wrapper/gradle-wrapper.jar ERROR: Could not build app ai.susi: Can't build due to 3 errors while scanning INFO: Finished INFO: 1 build failed
So I want to know how to build only the flavor that I made for FDroid, and also how to exclude Pre-Build files on FDroid.
here is the project link : https://github.com/fossasia/susi_android