Skip to content

Commit

Permalink
add gradle condition to allow older versions of sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelaziz-mahdy committed Dec 12, 2024
1 parent 02ad386 commit 2e8d6bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,10 @@ if (flutterSdkVersionInt < 32400) {
preprocessJava(['//// FLUTTER_3.24_BEGIN': '/\\*// FLUTTER_3.24_BEGIN-', '//// FLUTTER_3.24_END': '\\*/// FLUTTER_3.24_END-'])
} else {
preprocessJava(['/\\*// FLUTTER_3.24_BEGIN-': '//// FLUTTER_3.24_BEGIN', '\\*/// FLUTTER_3.24_END-': '//// FLUTTER_3.24_END'])
/// rename onSurfaceAvailable to onSurfaceCreated if flutterSdkVersionInt < 32700
if (flutterSdkVersionInt < 32700) {
println 'rename onSurfaceAvailable to onSurfaceCreated'
preprocessJava(['onSurfaceAvailable': 'onSurfaceCreated'])
}
}

0 comments on commit 2e8d6bf

Please sign in to comment.