Skip to content

Commit

Permalink
升级环境
Browse files Browse the repository at this point in the history
  • Loading branch information
Comert007 committed May 5, 2022
1 parent f042e0a commit 931ac12
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ android {

}

compileSdkVersion 29
buildToolsVersion "29.0.2"
compileSdkVersion 31
defaultConfig {
applicationId "com.coder.ffmpegtest"
minSdkVersion 15
targetSdkVersion 29
targetSdkVersion 31
versionCode 4
versionName "1.2.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
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 @@ -19,6 +19,7 @@
android:networkSecurityConfig="@xml/network_security_config"
android:theme="@style/AppTheme">
<activity android:name=".ui.MainActivity"
android:exported="true"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class FFmpegCommandService : IntentService("") {
}

override fun onError(errorCode: Int, errorMsg: String?) {
Log.d("FFmpegCmd", errorMsg)
Log.d("FFmpegCmd", errorMsg+"")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ class KFFmpegCommandActivity : AppCompatActivity() {
}

override fun onError(errorCode: Int, errorMsg: String?) {
Log.d("FFmpegCmd", errorMsg)
Log.d("FFmpegCmd", errorMsg+"")
runOnUiThread {
ToastUtils.show(errorMsg)
mErrorDialog?.setContent(0)
Expand Down
20 changes: 14 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@

buildscript {
// ext.kotlin_version = '1.4.20'
ext.kotlin_version = '1.4.32'
ext.kotlin_version = '1.6.20'

repositories {
gradlePluginPortal()
google()
jcenter()
maven { url 'https://jitpack.io' }
maven {
url 'https://maven.aliyun.com/repository/public/'
}
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.android.tools.build:gradle:7.1.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -19,12 +25,14 @@ buildscript {

allprojects {
repositories {
gradlePluginPortal()
google()
jcenter()
maven { url 'https://jitpack.io' }
maven{
url 'http://www.readdown.com:8081/repository/maven-releases/'
maven {
url 'https://maven.aliyun.com/repository/public/'
}
mavenLocal()
mavenCentral()
}
}

Expand Down
9 changes: 3 additions & 6 deletions ffmpeg/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
compileSdkVersion 31


defaultConfig {
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
targetSdkVersion 31

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand All @@ -35,7 +32,7 @@ dependencies {
implementation "androidx.core:core-ktx:+"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

apply from: 'nexus.gradle'
// apply from: 'nexus.gradle'
// apply from: 'nexus-lite.gradle'
}
repositories {
Expand Down
2 changes: 1 addition & 1 deletion ffmpeg/nexus-lite.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apply plugin: 'maven'
apply plugin: 'maven-publish'


task androidJavadocs(type: Javadoc) {
Expand Down
2 changes: 1 addition & 1 deletion ffmpeg/nexus.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apply plugin: 'maven'
apply plugin: 'maven-publish'


task androidJavadocs(type: Javadoc) {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip

0 comments on commit 931ac12

Please sign in to comment.