Update libx264.a and support minSdkVersion 18
parent
143301e235
commit
9fbb0d4d0d
@ -1,29 +1,29 @@
|
|||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 26
|
compileSdkVersion 26
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "net.ossrs.yasea.demo"
|
applicationId "net.ossrs.yasea.demo"
|
||||||
minSdkVersion 21
|
minSdkVersion 18
|
||||||
targetSdkVersion 22
|
targetSdkVersion 22
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "2.6"
|
versionName "2.6"
|
||||||
ndk {
|
ndk {
|
||||||
abiFilters "armeabi-v7a", "arm64-v8a", "x86"
|
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "mips"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(dir: 'libx264.libs', include: ['*.jar'])
|
implementation fileTree(dir: 'libx264.libs', include: ['*.jar'])
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
implementation 'com.android.support:appcompat-v7:26.1.0'
|
implementation 'com.android.support:appcompat-v7:26.1.0'
|
||||||
implementation project(path: ':library')
|
implementation project(path: ':library')
|
||||||
}
|
}
|
||||||
|
@ -1,37 +1,37 @@
|
|||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 26
|
compileSdkVersion 26
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 21
|
minSdkVersion 18
|
||||||
targetSdkVersion 22
|
targetSdkVersion 22
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "2.6"
|
versionName "2.6"
|
||||||
|
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
ndk {
|
ndk {
|
||||||
abiFilters "armeabi-v7a", "arm64-v8a", "x86"
|
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "mips"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
ndkBuild {
|
ndkBuild {
|
||||||
path 'src/main/cpp/Android.mk'
|
path 'src/main/cpp/Android.mk'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(dir: 'libx264.libs', include: ['*.jar'])
|
implementation fileTree(dir: 'libx264.libs', include: ['*.jar'])
|
||||||
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
|
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
|
||||||
exclude group: 'com.android.support', module: 'support-annotations'
|
exclude group: 'com.android.support', module: 'support-annotations'
|
||||||
})
|
})
|
||||||
implementation 'com.android.support:appcompat-v7:26.1.0'
|
implementation 'com.android.support:appcompat-v7:26.1.0'
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
APP_ABI := armeabi-v7a arm64-v8a x86
|
APP_ABI := armeabi-v7a arm64-v8a x86 mips
|
||||||
APP_PLATFORM := android-21
|
APP_PLATFORM := android-21
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
# Created by jianxi on 2017/6/4
|
||||||
|
# https://github.com/mabeijianxi
|
||||||
|
# mabeijianxi@gmail.com
|
||||||
|
# Edit by obarong on 2020/4/15
|
||||||
|
|
||||||
|
chmod a+x android_*.sh
|
||||||
|
|
||||||
|
# Build armeabi
|
||||||
|
#./android_build_armeabi.sh
|
||||||
|
|
||||||
|
# Build arm v6 v7a
|
||||||
|
./android_build_armeabi_v7a.sh
|
||||||
|
|
||||||
|
# Build arm64 v8a
|
||||||
|
./android_build_arm64_v8a.sh
|
||||||
|
|
||||||
|
# Build mips
|
||||||
|
./android_build_mips.sh
|
||||||
|
|
||||||
|
# Build x86
|
||||||
|
./android_build_x86.sh
|
||||||
|
|
||||||
|
# Build x86_64
|
||||||
|
#./android_x86_64_build.sh
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue