Skip to content

Commit 3207a19

Browse files
committed
Building with kotlin 1.9+, gradle 8, after much effort
1 parent c56f56b commit 3207a19

File tree

11 files changed

+53
-66
lines changed

11 files changed

+53
-66
lines changed

example/android/app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2828
android {
2929
compileSdkVersion flutter.compileSdkVersion
3030
ndkVersion flutter.ndkVersion
31+
namespace 'is.mideind.embla_core_example'
3132

3233
compileOptions {
3334
sourceCompatibility JavaVersion.VERSION_1_8
@@ -48,7 +49,7 @@ android {
4849
// You can update the following values to match your application needs.
4950
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
5051
minSdkVersion 27
51-
targetSdkVersion 33
52+
targetSdkVersion 34
5253
versionCode flutterVersionCode.toInteger()
5354
versionName flutterVersionName
5455
}

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.example">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<uses-permission android:name="android.permission.RECORD_AUDIO" />
43
<uses-permission android:name="android.permission.BLUETOOTH"/>
54
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

example/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
2-
ext.kotlin_version = '1.6.10'
2+
ext.kotlin_version = '1.9.25'
33
repositories {
44
google()
55
mavenCentral()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.1.2'
9+
classpath 'com.android.tools.build:gradle:8.0.2'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
platform :ios, '12.0'
2+
platform :ios, '13.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

example/ios/Podfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ PODS:
22
- audio_session (0.0.1):
33
- Flutter
44
- Flutter (1.0.0)
5-
- flutter_sound (9.4.12):
5+
- flutter_sound (9.9.5):
66
- Flutter
7-
- flutter_sound_core (= 9.4.12)
8-
- flutter_sound_core (9.4.12)
7+
- flutter_sound_core (= 9.9.5)
8+
- flutter_sound_core (9.9.5)
99
- path_provider_foundation (0.0.1):
1010
- Flutter
1111
- FlutterMacOS
@@ -38,11 +38,11 @@ EXTERNAL SOURCES:
3838
SPEC CHECKSUMS:
3939
audio_session: 088d2483ebd1dc43f51d253d4a1c517d9a2e7207
4040
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
41-
flutter_sound: 838eea7a33dc635374b9033aa3921f2c683d2414
42-
flutter_sound_core: c2a939d21e21e44601f7d408fae75dfd5eda540a
41+
flutter_sound: 2bbfd392d7a1f5481b38b35bc5a1748a577a5fd4
42+
flutter_sound_core: 64268d83e2ff12fb500d574e078b98dd00428ed9
4343
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
4444
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
4545

46-
PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048
46+
PODFILE CHECKSUM: cc1f88378b4bfcf93a6ce00d2c587857c6008d3b
4747

4848
COCOAPODS: 1.15.2

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@
381381
DEVELOPMENT_TEAM = MPR54D573H;
382382
ENABLE_BITCODE = NO;
383383
INFOPLIST_FILE = Runner/Info.plist;
384+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
384385
LD_RUNPATH_SEARCH_PATHS = (
385386
"$(inherited)",
386387
"@executable_path/Frameworks",
@@ -514,6 +515,7 @@
514515
DEVELOPMENT_TEAM = MPR54D573H;
515516
ENABLE_BITCODE = NO;
516517
INFOPLIST_FILE = Runner/Info.plist;
518+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
517519
LD_RUNPATH_SEARCH_PATHS = (
518520
"$(inherited)",
519521
"@executable_path/Frameworks",
@@ -537,6 +539,7 @@
537539
DEVELOPMENT_TEAM = MPR54D573H;
538540
ENABLE_BITCODE = NO;
539541
INFOPLIST_FILE = Runner/Info.plist;
542+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
540543
LD_RUNPATH_SEARCH_PATHS = (
541544
"$(inherited)",
542545
"@executable_path/Frameworks",

example/ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import UIKit
22
import Flutter
33

4-
@UIApplicationMain
4+
@main
55
@objc class AppDelegate: FlutterAppDelegate {
66
override func application(
77
_ application: UIApplication,

example/pubspec.lock

Lines changed: 34 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ packages:
1313
dependency: transitive
1414
description:
1515
name: audio_session
16-
sha256: a49af9981eec5d7cd73b37bacb6ee73f8143a6a9f9bd5b6021e6c346b9b6cf4e
16+
sha256: "343e83bc7809fbda2591a49e525d6b63213ade10c76f15813be9aed6657b3261"
1717
url: "https://pub.dev"
1818
source: hosted
19-
version: "0.1.19"
19+
version: "0.1.21"
2020
boolean_selector:
2121
dependency: transitive
2222
description:
@@ -105,26 +105,26 @@ packages:
105105
dependency: transitive
106106
description:
107107
name: flutter_sound
108-
sha256: faa544f073fa9e7e4633e35acf228d4aa1012b39e35eb3b1c81b9b6fb6511af1
108+
sha256: "5164c67e2788db9bf1a08cf588c6819b6465dd097c7c6eeacde6a135a6dba47e"
109109
url: "https://pub.dev"
110110
source: hosted
111-
version: "9.4.12"
111+
version: "9.9.5"
112112
flutter_sound_platform_interface:
113113
dependency: transitive
114114
description:
115115
name: flutter_sound_platform_interface
116-
sha256: "638b0c234ec73a04511a3d186f85e3957f0e56da82326bcb8e905d7f05a06554"
116+
sha256: "31895be7f8d0eb6f20a8353525c5a85498fabe7ed1cbf90f704db9158e22f313"
117117
url: "https://pub.dev"
118118
source: hosted
119-
version: "9.4.12"
119+
version: "9.9.5"
120120
flutter_sound_web:
121121
dependency: transitive
122122
description:
123123
name: flutter_sound_web
124-
sha256: d7db4b3febbab37c00a4a4fee7956433b3d1e1ce9778c265db607a07aabc4e09
124+
sha256: "9382f2212728819c85effc3f44eb87889d2c00009d3d7445c7b123b9d71978a8"
125125
url: "https://pub.dev"
126126
source: hosted
127-
version: "9.4.12"
127+
version: "9.9.5"
128128
flutter_test:
129129
dependency: "direct dev"
130130
description: flutter
@@ -139,10 +139,10 @@ packages:
139139
dependency: transitive
140140
description:
141141
name: http
142-
sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938"
142+
sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010
143143
url: "https://pub.dev"
144144
source: hosted
145-
version: "1.2.1"
145+
version: "1.2.2"
146146
http_parser:
147147
dependency: transitive
148148
description:
@@ -195,10 +195,10 @@ packages:
195195
dependency: transitive
196196
description:
197197
name: logger
198-
sha256: af05cc8714f356fd1f3888fb6741cbe9fbe25cdb6eedbab80e1a6db21047d4a4
198+
sha256: "697d067c60c20999686a0add96cf6aba723b3aa1f83ecf806a8097231529ec32"
199199
url: "https://pub.dev"
200200
source: hosted
201-
version: "2.3.0"
201+
version: "2.4.0"
202202
matcher:
203203
dependency: transitive
204204
description:
@@ -251,18 +251,18 @@ packages:
251251
dependency: transitive
252252
description:
253253
name: path_provider
254-
sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161
254+
sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378
255255
url: "https://pub.dev"
256256
source: hosted
257-
version: "2.1.3"
257+
version: "2.1.4"
258258
path_provider_android:
259259
dependency: transitive
260260
description:
261261
name: path_provider_android
262-
sha256: "9c96da072b421e98183f9ea7464898428e764bc0ce5567f27ec8693442e72514"
262+
sha256: "490539678396d4c3c0b06efdaab75ae60675c3e0c66f72bc04c2e2c1e0e2abeb"
263263
url: "https://pub.dev"
264264
source: hosted
265-
version: "2.2.5"
265+
version: "2.2.9"
266266
path_provider_foundation:
267267
dependency: transitive
268268
description:
@@ -291,10 +291,10 @@ packages:
291291
dependency: transitive
292292
description:
293293
name: path_provider_windows
294-
sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170"
294+
sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7
295295
url: "https://pub.dev"
296296
source: hosted
297-
version: "2.2.1"
297+
version: "2.3.0"
298298
permission_handler:
299299
dependency: "direct main"
300300
description:
@@ -307,34 +307,34 @@ packages:
307307
dependency: transitive
308308
description:
309309
name: permission_handler_android
310-
sha256: "8bb852cd759488893805c3161d0b2b5db55db52f773dbb014420b304055ba2c5"
310+
sha256: eaf2a1ec4472775451e88ca6a7b86559ef2f1d1ed903942ed135e38ea0097dca
311311
url: "https://pub.dev"
312312
source: hosted
313-
version: "12.0.6"
313+
version: "12.0.8"
314314
permission_handler_apple:
315315
dependency: transitive
316316
description:
317317
name: permission_handler_apple
318-
sha256: e9ad66020b89ff1b63908f247c2c6f931c6e62699b756ef8b3c4569350cd8662
318+
sha256: e6f6d73b12438ef13e648c4ae56bd106ec60d17e90a59c4545db6781229082a0
319319
url: "https://pub.dev"
320320
source: hosted
321-
version: "9.4.4"
321+
version: "9.4.5"
322322
permission_handler_html:
323323
dependency: transitive
324324
description:
325325
name: permission_handler_html
326-
sha256: "54bf176b90f6eddd4ece307e2c06cf977fb3973719c35a93b85cc7093eb6070d"
326+
sha256: "6cac773d389e045a8d4f85418d07ad58ef9e42a56e063629ce14c4c26344de24"
327327
url: "https://pub.dev"
328328
source: hosted
329-
version: "0.1.1"
329+
version: "0.1.2"
330330
permission_handler_platform_interface:
331331
dependency: transitive
332332
description:
333333
name: permission_handler_platform_interface
334-
sha256: "48d4fcf201a1dad93ee869ab0d4101d084f49136ec82a8a06ed9cfeacab9fd20"
334+
sha256: fe0ffe274d665be8e34f9c59705441a7d248edebbe5d9e3ec2665f88b79358ea
335335
url: "https://pub.dev"
336336
source: hosted
337-
version: "4.2.1"
337+
version: "4.2.2"
338338
permission_handler_windows:
339339
dependency: transitive
340340
description:
@@ -347,10 +347,10 @@ packages:
347347
dependency: transitive
348348
description:
349349
name: platform
350-
sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec"
350+
sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
351351
url: "https://pub.dev"
352352
source: hosted
353-
version: "3.1.4"
353+
version: "3.1.5"
354354
plugin_platform_interface:
355355
dependency: transitive
356356
description:
@@ -379,10 +379,10 @@ packages:
379379
dependency: transitive
380380
description:
381381
name: rxdart
382-
sha256: "0c7c0cedd93788d996e33041ffecda924cc54389199cde4e6a34b440f50044cb"
382+
sha256: "5c3004a4a8dbb94bd4bf5412a4def4acdaa12e12f269737a5751369e12d1a962"
383383
url: "https://pub.dev"
384384
source: hosted
385-
version: "0.27.7"
385+
version: "0.28.0"
386386
sky_engine:
387387
dependency: transitive
388388
description: flutter
@@ -464,10 +464,10 @@ packages:
464464
dependency: transitive
465465
description:
466466
name: uuid
467-
sha256: "814e9e88f21a176ae1359149021870e87f7cddaf633ab678a5d2b0bff7fd1ba8"
467+
sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90"
468468
url: "https://pub.dev"
469469
source: hosted
470-
version: "4.4.0"
470+
version: "4.4.2"
471471
vector_math:
472472
dependency: transitive
473473
description:
@@ -492,30 +492,14 @@ packages:
492492
url: "https://pub.dev"
493493
source: hosted
494494
version: "0.5.1"
495-
web_socket:
496-
dependency: transitive
497-
description:
498-
name: web_socket
499-
sha256: "24301d8c293ce6fe327ffe6f59d8fd8834735f0ec36e4fd383ec7ff8a64aa078"
500-
url: "https://pub.dev"
501-
source: hosted
502-
version: "0.1.5"
503495
web_socket_channel:
504496
dependency: transitive
505497
description:
506498
name: web_socket_channel
507-
sha256: a2d56211ee4d35d9b344d9d4ce60f362e4f5d1aafb988302906bd732bc731276
508-
url: "https://pub.dev"
509-
source: hosted
510-
version: "3.0.0"
511-
win32:
512-
dependency: transitive
513-
description:
514-
name: win32
515-
sha256: a79dbe579cb51ecd6d30b17e0cae4e0ea15e2c0e66f69ad4198f22a6789e94f4
499+
sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42"
516500
url: "https://pub.dev"
517501
source: hosted
518-
version: "5.5.1"
502+
version: "2.4.5"
519503
xdg_directories:
520504
dependency: transitive
521505
description:

lib/src/recorder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class AudioRecorder {
118118

119119
// Start recording audio
120120
await _micRecorder.startRecorder(
121-
toStream: _recordingDataController?.sink as StreamSink<Food>,
121+
toStream: _recordingDataController?.sink as StreamSink<Uint8List>,
122122
codec: Codec.pcm16,
123123
numChannels: kAudioNumChannels,
124124
sampleRate: kAudioSampleRate);

0 commit comments

Comments
 (0)