diff --git a/.github/workflows/react-native-codestyle.yml b/.github/workflows/react-native-codestyle.yml index 8c2bd766af..101dcaac3f 100644 --- a/.github/workflows/react-native-codestyle.yml +++ b/.github/workflows/react-native-codestyle.yml @@ -31,9 +31,6 @@ jobs: with: node-version: lts/* - - name: Pre-build dependencies - run: npm install yarn - - name: Run Binding Linter run: yarn && yarn lint working-directory: binding/react-native diff --git a/.github/workflows/react-native-demos.yml b/.github/workflows/react-native-demos.yml index 160d0e2821..abf3404bd5 100644 --- a/.github/workflows/react-native-demos.yml +++ b/.github/workflows/react-native-demos.yml @@ -35,15 +35,6 @@ jobs: with: node-version: ${{ matrix.node-version }} - # ************ REMOVE AFTER RELEASE ***************** - - name: Build and package binding - working-directory: binding/react-native - run: yarn && yarn pkg - - - name: Add to demo - run: yarn add ../../binding/react-native/pkg/picovoice-porcupine-react-native-3.0.0.tgz - # *************************************************** - - name: Install dependencies run: yarn android-install @@ -69,15 +60,6 @@ jobs: with: node-version: ${{ matrix.node-version }} - # ************ REMOVE AFTER RELEASE ***************** - - name: Build and package binding - working-directory: binding/react-native - run: yarn && yarn pkg - - - name: Add to demo - run: yarn add ../../binding/react-native/pkg/picovoice-porcupine-react-native-3.0.0.tgz - # *************************************************** - - name: Install dependencies run: yarn ios-install diff --git a/.github/workflows/react-native.yml b/.github/workflows/react-native.yml index 9437845cb7..f794f39c66 100644 --- a/.github/workflows/react-native.yml +++ b/.github/workflows/react-native.yml @@ -55,4 +55,4 @@ jobs: run: yarn install - name: Build - run: yarn + run: yarn prepare diff --git a/binding/react-native/README.md b/binding/react-native/README.md index 4bb1e93e77..3e4efc0657 100644 --- a/binding/react-native/README.md +++ b/binding/react-native/README.md @@ -20,7 +20,7 @@ To learn more about Porcupine, see the [product](https://picovoice.ai/products/p This binding is for running Porcupine on **React Native 0.62.2+** on the following platforms: - Android 5.0+ (API 21+) -- iOS 11.0+ +- iOS 13.0+ ## Installation diff --git a/binding/react-native/android/build.gradle b/binding/react-native/android/build.gradle index 1c77a7a598..5b76098eb4 100644 --- a/binding/react-native/android/build.gradle +++ b/binding/react-native/android/build.gradle @@ -120,5 +120,5 @@ repositories { dependencies { // noinspection GradleDynamicVersion api 'com.facebook.react:react-native:+' - implementation 'ai.picovoice:porcupine-android:3.0.0' + implementation 'ai.picovoice:porcupine-android:3.0.1' } diff --git a/binding/react-native/ios/Porcupine.xcodeproj/project.pbxproj b/binding/react-native/ios/Porcupine.xcodeproj/project.pbxproj index ea48ce9e27..bbc18d4258 100644 --- a/binding/react-native/ios/Porcupine.xcodeproj/project.pbxproj +++ b/binding/react-native/ios/Porcupine.xcodeproj/project.pbxproj @@ -191,7 +191,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -235,7 +235,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_INCLUDE_PATHS = "${SRCROOT}"; diff --git a/binding/react-native/package.json b/binding/react-native/package.json index e4c12a8ad8..3aee1b0c8d 100644 --- a/binding/react-native/package.json +++ b/binding/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@picovoice/porcupine-react-native", - "version": "3.0.0", + "version": "3.0.1", "description": "Picovoice Porcupine React Native binding", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/binding/react-native/porcupine-react-native.podspec b/binding/react-native/porcupine-react-native.podspec index 5ec97dc06b..fba61f3c85 100644 --- a/binding/react-native/porcupine-react-native.podspec +++ b/binding/react-native/porcupine-react-native.podspec @@ -10,11 +10,11 @@ Pod::Spec.new do |s| s.license = package["license"] s.authors = package["author"] - s.platforms = { :ios => "11.0" } + s.platforms = { :ios => "13.0" } s.source = { :git => "https://github.com/Picovoice/porcupine.git", :tag => "#{s.version}" } s.source_files = "ios/*.{h,m,mm,swift}" s.dependency "React" - s.dependency "Porcupine-iOS", '~> 3.0.0' + s.dependency "Porcupine-iOS", '~> 3.0.1' end diff --git a/binding/react-native/test-app/PorcupineTestApp/ios/Podfile b/binding/react-native/test-app/PorcupineTestApp/ios/Podfile index 76fb7a4031..bbdbe3b090 100644 --- a/binding/react-native/test-app/PorcupineTestApp/ios/Podfile +++ b/binding/react-native/test-app/PorcupineTestApp/ios/Podfile @@ -1,7 +1,7 @@ require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' -platform :ios, min_ios_version_supported +platform :ios, '13.0' prepare_react_native_project! flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled diff --git a/binding/react-native/test-app/PorcupineTestApp/ios/Podfile.lock b/binding/react-native/test-app/PorcupineTestApp/ios/Podfile.lock index ae72a30b5e..4dd1bdbcbf 100644 --- a/binding/react-native/test-app/PorcupineTestApp/ios/Podfile.lock +++ b/binding/react-native/test-app/PorcupineTestApp/ios/Podfile.lock @@ -79,10 +79,10 @@ PODS: - ios-voice-processor (1.1.0) - libevent (2.1.12) - OpenSSL-Universal (1.1.1100) - - Porcupine-iOS (3.0.0): + - Porcupine-iOS (3.0.1): - ios-voice-processor (~> 1.1.0) - - porcupine-react-native (3.0.0): - - Porcupine-iOS (~> 3.0.0) + - porcupine-react-native (3.0.1): + - Porcupine-iOS (~> 3.0.1) - React - RCT-Folly (2021.07.22.00): - boost @@ -575,8 +575,8 @@ SPEC CHECKSUMS: ios-voice-processor: 8e32d7f980a06d392d128ef1cd19cf6ddcaca3c1 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c - Porcupine-iOS: 517158e02ac294dda15b713a3c6f74a9e877090c - porcupine-react-native: e74ff3c50f8a1ec956b8aa7a8797821b0f9e8b85 + Porcupine-iOS: 6d69509fa587f3ac0be1adfefb48e0c6ce029fff + porcupine-react-native: f6650a418ba767c210eeb416d4e0bdbb93a209ca RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 RCTRequired: dea3e4163184ea57c50288c15c32c1529265c58f RCTTypeSafety: a0834ab89159a346731e8aae55ad6e2cce61c327 @@ -610,6 +610,6 @@ SPEC CHECKSUMS: Yoga: c618b544ff8bd8865cdca602f00cbcdb92fd6d31 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: c175f5594aacce158a6c9dfa12548975fd078ac6 +PODFILE CHECKSUM: 9fac28778c14bed4eb7a3cc813cae619223e179f COCOAPODS: 1.11.3 diff --git a/binding/react-native/test-app/PorcupineTestApp/ios/PorcupineTestApp.xcodeproj/project.pbxproj b/binding/react-native/test-app/PorcupineTestApp/ios/PorcupineTestApp.xcodeproj/project.pbxproj index 7545cbfa9c..021742fe74 100644 --- a/binding/react-native/test-app/PorcupineTestApp/ios/PorcupineTestApp.xcodeproj/project.pbxproj +++ b/binding/react-native/test-app/PorcupineTestApp/ios/PorcupineTestApp.xcodeproj/project.pbxproj @@ -442,7 +442,7 @@ "$(inherited)", ); INFOPLIST_FILE = PorcupineTestAppTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.4; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -466,7 +466,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; COPY_PHASE_STRIP = NO; INFOPLIST_FILE = PorcupineTestAppTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 12.4; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -584,7 +584,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.4; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( /usr/lib/swift, "$(inherited)", @@ -649,7 +649,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 12.4; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( /usr/lib/swift, "$(inherited)", diff --git a/demo/react-native/ios/Podfile b/demo/react-native/ios/Podfile index a0db999026..b748673c03 100644 --- a/demo/react-native/ios/Podfile +++ b/demo/react-native/ios/Podfile @@ -1,7 +1,7 @@ require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' -platform :ios, '11.0' +platform :ios, '13.0' target 'PorcupineDemo' do config = use_native_modules! diff --git a/demo/react-native/ios/Podfile.lock b/demo/react-native/ios/Podfile.lock index 9b7206dcc2..e63a461bfc 100644 --- a/demo/react-native/ios/Podfile.lock +++ b/demo/react-native/ios/Podfile.lock @@ -12,10 +12,10 @@ PODS: - fmt (6.2.1) - glog (0.3.5) - ios-voice-processor (1.1.0) - - Porcupine-iOS (3.0.0): + - Porcupine-iOS (3.0.1): - ios-voice-processor (~> 1.1.0) - - porcupine-react-native (3.0.0): - - Porcupine-iOS (~> 3.0.0) + - porcupine-react-native (3.0.1): + - Porcupine-iOS (~> 3.0.1) - React - RCT-Folly (2021.06.28.00-v2): - boost @@ -418,8 +418,8 @@ SPEC CHECKSUMS: fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: 476ee3e89abb49e07f822b48323c51c57124b572 ios-voice-processor: 8e32d7f980a06d392d128ef1cd19cf6ddcaca3c1 - Porcupine-iOS: 517158e02ac294dda15b713a3c6f74a9e877090c - porcupine-react-native: e74ff3c50f8a1ec956b8aa7a8797821b0f9e8b85 + Porcupine-iOS: 6d69509fa587f3ac0be1adfefb48e0c6ce029fff + porcupine-react-native: f6650a418ba767c210eeb416d4e0bdbb93a209ca RCT-Folly: 4d8508a426467c48885f1151029bc15fa5d7b3b8 RCTRequired: 530916cd48c5f7cf1fc16966ad5ea01638ca4799 RCTTypeSafety: 5fb4cb3080efd582e5563c3e9a0e459fc51396c5 @@ -449,6 +449,6 @@ SPEC CHECKSUMS: RNCPicker: 0991c56da7815c0cf946d6f63cf920b25296e5f6 Yoga: 0bc4b37c3b8a345336ff601e2cf7d9704bab7e93 -PODFILE CHECKSUM: 853e3dcc8afbd54d559edf35fc8dcaab2a813897 +PODFILE CHECKSUM: 8921bb939d724a5ead76bd00f8a96af2bfb18432 COCOAPODS: 1.11.3 diff --git a/demo/react-native/ios/PorcupineDemo.xcodeproj/project.pbxproj b/demo/react-native/ios/PorcupineDemo.xcodeproj/project.pbxproj index f67169ea01..d759b4a494 100644 --- a/demo/react-native/ios/PorcupineDemo.xcodeproj/project.pbxproj +++ b/demo/react-native/ios/PorcupineDemo.xcodeproj/project.pbxproj @@ -386,7 +386,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LIBRARY_SEARCH_PATHS = ( "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", @@ -438,7 +438,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LIBRARY_SEARCH_PATHS = ( "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", diff --git a/demo/react-native/package.json b/demo/react-native/package.json index fb6934b6b8..8bd48d681b 100644 --- a/demo/react-native/package.json +++ b/demo/react-native/package.json @@ -1,6 +1,6 @@ { "name": "porcupine-react-native-demo", - "version": "3.0.0", + "version": "3.0.1", "private": true, "scripts": { "start": "react-native start", @@ -15,7 +15,7 @@ "ios-bundle": "node scripts/run_demo.js bundle --dev false --platform ios --entry-file index.js --bundle-output ios/app.jsbundle" }, "dependencies": { - "@picovoice/porcupine-react-native": "3.0.0", + "@picovoice/porcupine-react-native": "3.0.1", "@picovoice/react-native-voice-processor": "1.2.0", "@react-native-picker/picker": "^1.9.2", "react": "17.0.2", diff --git a/demo/react-native/yarn.lock b/demo/react-native/yarn.lock index 224cb07ef9..8eff740b4b 100644 --- a/demo/react-native/yarn.lock +++ b/demo/react-native/yarn.lock @@ -1476,10 +1476,10 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@picovoice/porcupine-react-native@3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@picovoice/porcupine-react-native/-/porcupine-react-native-3.0.0.tgz#f9e670d317b42de53984338d86350ffd1d2ac6a0" - integrity sha512-sMw4UwwzCnWyXpqlRYTiWaPlLoHoK/RqW4t+wUBAg8GxAlSD9JkRv6hWc1B5i2FPqWD0Txqm7nFDoDL6EEvNsw== +"@picovoice/porcupine-react-native@3.0.1": + version "3.0.1" + resolved "https://registry.yarnpkg.com/@picovoice/porcupine-react-native/-/porcupine-react-native-3.0.1.tgz#2c71a61b074f34fece517a884fb0ec2f6eacc7cc" + integrity sha512-TGP7l1SVNOMuqyocvRqyf7X08VYkr3gc4eucw8M81QLzWzJ8Mpz64BQb2iifNUR6Oaia0XQ1tHP3ffrdIHY2rg== "@picovoice/react-native-voice-processor@1.2.0": version "1.2.0"