Skip to content

Commit 2b69dbd

Browse files
committed
Support 16k requirements for Android 15
1 parent 139dba2 commit 2b69dbd

19 files changed

Lines changed: 158 additions & 71 deletions

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.4.0
2+
* Support 16k requirements for Android 15
3+
14
## 1.3.0
25
* Support Flutter 3.29.0 by removing old V1 plugin for Android
36

android/.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/.idea/gradle.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/.idea/misc.xml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/build.gradle

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.3.1'
11+
classpath 'com.android.tools.build:gradle:8.12.3'
1212
}
1313
}
1414

@@ -22,23 +22,53 @@ rootProject.allprojects {
2222
apply plugin: 'com.android.library'
2323

2424
android {
25-
compileSdk 34
2625
namespace 'com.plugin.record_mp3_plus'
26+
compileSdk 36
2727
defaultConfig {
28-
minSdkVersion 21
29-
targetSdkVersion 33
28+
minSdkVersion 24
29+
targetSdk 36
3030
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
31+
ndk {
32+
// Keep x86_64 for emulator testing if you want
33+
abiFilters "armeabi-v7a", "arm64-v8a", "armeabi", "mips", "mips64", "x86", "x86_64"
34+
}
3135
}
3236

3337
sourceSets.main {
3438
jni.srcDirs = [] // This prevents the auto generation of Android.mk
35-
jniLibs.srcDir 'src/main/libs' // This is not necessary unless you have precompiled libraries in your project.
39+
jniLibs.srcDir 'src/main/libs'
40+
// This is not necessary unless you have precompiled libraries in your project.
3641
}
3742

3843
lintOptions {
3944
disable 'InvalidPackage'
4045
}
46+
47+
}
48+
49+
afterEvaluate {
50+
android.libraryVariants.all { variant ->
51+
if (variant.buildType.name == "release") {
52+
def variantName = variant.name.capitalize()
53+
def mergeJniLibsTask = tasks.findByName("merge${variantName}JniLibFolders")
54+
if (mergeJniLibsTask != null) {
55+
mergeJniLibsTask.doLast {
56+
def outDir = mergeJniLibsTask.outputDir.get().asFile
57+
58+
// Remove libmp3lame.so only for x86/x86_64
59+
fileTree(
60+
dir: outDir,
61+
includes: ["**/x86/**/libmp3lame.so", "**/x86_64/**/libmp3lame.so"]
62+
).each { file ->
63+
println "Removing unwanted ABI: ${file}"
64+
file.delete()
65+
}
66+
}
67+
}
68+
}
69+
}
4170
}
4271

72+
4373
dependencies {
4474
}
-15.7 KB
Binary file not shown.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Sun May 26 23:32:40 EEST 2024
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

android/gradlew

Lines changed: 28 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/gradlew.bat

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"audioplayers_darwin","path":"/Users/amr/.pub-cache/hosted/pub.dev/audioplayers_darwin-6.2.0/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/amr/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"permission_handler_apple","path":"/Users/amr/.pub-cache/git/flutter-permission-handler-a6ef4a519542740cfec98537e4188960045a95b4/permission_handler_apple/","native_build":true,"dependencies":[]},{"name":"record_mp3_plus","path":"/Users/amr/Desktop/record_mp3_plus/","native_build":true,"dependencies":[]}],"android":[{"name":"audioplayers_android","path":"/Users/amr/.pub-cache/hosted/pub.dev/audioplayers_android-5.2.0/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/amr/.pub-cache/hosted/pub.dev/path_provider_android-2.2.16/","native_build":true,"dependencies":[]},{"name":"permission_handler_android","path":"/Users/amr/.pub-cache/hosted/pub.dev/permission_handler_android-12.1.0/","native_build":true,"dependencies":[]},{"name":"record_mp3_plus","path":"/Users/amr/Desktop/record_mp3_plus/","native_build":true,"dependencies":[]}],"macos":[{"name":"audioplayers_darwin","path":"/Users/amr/.pub-cache/hosted/pub.dev/audioplayers_darwin-6.2.0/","native_build":true,"dependencies":[]},{"name":"flutter_desktop_audio_recorder","path":"/Users/amr/.pub-cache/hosted/pub.dev/flutter_desktop_audio_recorder-0.0.1/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/amr/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"permission_handler_apple","path":"/Users/amr/.pub-cache/git/flutter-permission-handler-a6ef4a519542740cfec98537e4188960045a95b4/permission_handler_apple/","native_build":true,"dependencies":[]},{"name":"record_mp3_plus","path":"/Users/amr/Desktop/record_mp3_plus/","native_build":true,"dependencies":[]}],"linux":[{"name":"audioplayers_linux","path":"/Users/amr/.pub-cache/hosted/pub.dev/audioplayers_linux-4.2.0/","native_build":true,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/amr/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"audioplayers_windows","path":"/Users/amr/.pub-cache/hosted/pub.dev/audioplayers_windows-4.2.0/","native_build":true,"dependencies":[]},{"name":"flutter_desktop_audio_recorder","path":"/Users/amr/.pub-cache/hosted/pub.dev/flutter_desktop_audio_recorder-0.0.1/","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/amr/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[]},{"name":"permission_handler_windows","path":"/Users/amr/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/","native_build":true,"dependencies":[]}],"web":[{"name":"audioplayers_web","path":"/Users/amr/.pub-cache/hosted/pub.dev/audioplayers_web-5.1.0/","dependencies":[]},{"name":"permission_handler_html","path":"/Users/amr/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.3+5/","dependencies":[]}]},"dependencyGraph":[{"name":"audioplayers","dependencies":["audioplayers_android","audioplayers_darwin","audioplayers_linux","audioplayers_web","audioplayers_windows","path_provider"]},{"name":"audioplayers_android","dependencies":[]},{"name":"audioplayers_darwin","dependencies":[]},{"name":"audioplayers_linux","dependencies":[]},{"name":"audioplayers_web","dependencies":[]},{"name":"audioplayers_windows","dependencies":[]},{"name":"flutter_desktop_audio_recorder","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_html","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_html","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]},{"name":"record_mp3_plus","dependencies":[]}],"date_created":"2025-03-18 02:26:54.892412","version":"3.27.4","swift_package_manager_enabled":true}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"audioplayers_darwin","path":"/Users/amr/.pub-cache/hosted/pub.dev/audioplayers_darwin-6.3.0/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_foundation","path":"/Users/amr/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.2/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"permission_handler_apple","path":"/Users/amr/.pub-cache/git/flutter-permission-handler-71cfff5b004cdfd7cdc3f73c35ecce92a71d9797/permission_handler_apple/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"record_mp3_plus","path":"/Users/amr/Desktop/record_mp3_plus/","native_build":true,"dependencies":[],"dev_dependency":false}],"android":[{"name":"audioplayers_android","path":"/Users/amr/.pub-cache/hosted/pub.dev/audioplayers_android-5.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_android","path":"/Users/amr/.pub-cache/hosted/pub.dev/path_provider_android-2.2.18/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"permission_handler_android","path":"/Users/amr/.pub-cache/hosted/pub.dev/permission_handler_android-13.0.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"record_mp3_plus","path":"/Users/amr/Desktop/record_mp3_plus/","native_build":true,"dependencies":[],"dev_dependency":false}],"macos":[{"name":"audioplayers_darwin","path":"/Users/amr/.pub-cache/hosted/pub.dev/audioplayers_darwin-6.3.0/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_desktop_audio_recorder","path":"/Users/amr/.pub-cache/hosted/pub.dev/flutter_desktop_audio_recorder-0.0.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_foundation","path":"/Users/amr/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.2/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"permission_handler_apple","path":"/Users/amr/.pub-cache/git/flutter-permission-handler-71cfff5b004cdfd7cdc3f73c35ecce92a71d9797/permission_handler_apple/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"record_mp3_plus","path":"/Users/amr/Desktop/record_mp3_plus/","native_build":true,"dependencies":[],"dev_dependency":false}],"linux":[{"name":"audioplayers_linux","path":"/Users/amr/.pub-cache/hosted/pub.dev/audioplayers_linux-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_linux","path":"/Users/amr/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[],"dev_dependency":false}],"windows":[{"name":"audioplayers_windows","path":"/Users/amr/.pub-cache/hosted/pub.dev/audioplayers_windows-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_desktop_audio_recorder","path":"/Users/amr/.pub-cache/hosted/pub.dev/flutter_desktop_audio_recorder-0.0.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_windows","path":"/Users/amr/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"permission_handler_windows","path":"/Users/amr/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/","native_build":true,"dependencies":[],"dev_dependency":false}],"web":[{"name":"audioplayers_web","path":"/Users/amr/.pub-cache/hosted/pub.dev/audioplayers_web-5.1.1/","dependencies":[],"dev_dependency":false},{"name":"permission_handler_html","path":"/Users/amr/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.3+5/","dependencies":[],"dev_dependency":false}]},"dependencyGraph":[{"name":"audioplayers","dependencies":["audioplayers_android","audioplayers_darwin","audioplayers_linux","audioplayers_web","audioplayers_windows","path_provider"]},{"name":"audioplayers_android","dependencies":[]},{"name":"audioplayers_darwin","dependencies":[]},{"name":"audioplayers_linux","dependencies":[]},{"name":"audioplayers_web","dependencies":[]},{"name":"audioplayers_windows","dependencies":[]},{"name":"flutter_desktop_audio_recorder","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_html","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_html","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]},{"name":"record_mp3_plus","dependencies":[]}],"date_created":"2025-09-15 14:54:47.251787","version":"3.35.3","swift_package_manager_enabled":{"ios":true,"macos":true}}

0 commit comments

Comments
 (0)