Skip to content
This repository was archived by the owner on Jul 14, 2024. It is now read-only.

Commit f42f281

Browse files
committed
chore: update package link
1 parent ef040ab commit f42f281

8 files changed

Lines changed: 26 additions & 30 deletions

File tree

README.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
alt="chat on Discord"></a>
1010

1111
```sh
12-
yarn add @react-native-voice/voice
12+
yarn add @pedrol2b/react-native-voice
1313

1414
# or
1515

16-
npm i @react-native-voice/voice --save
16+
npm i @pedrol2b/react-native-voice --save
1717
```
1818

1919
Link the iOS package
@@ -24,25 +24,21 @@ npx pod-install
2424

2525
## Table of contents
2626

27-
- [Linking](#linking)
27+
- [Table of contents](#table-of-contents)
2828
- [Manually Link Android](#manually-link-android)
2929
- [Manually Link iOS](#manually-link-ios)
30-
- [Prebuild Plugin](#prebuild-plugin)
31-
- [Usage](#usage)
30+
- [Props](#props)
3231
- [Example](#example)
33-
- [API](#api)
34-
- [Events](#events)
35-
- [Permissions](#permissions)
32+
- [Example](#example-1)
3633
- [Android](#android)
3734
- [iOS](#ios)
38-
- [Contributors](#contributors)
3935

4036
<h2 align="center">Linking</h2>
4137

4238
<p align="center">Manually or automatically link the NativeModule</p>
4339

4440
```sh
45-
react-native link @react-native-voice/voice
41+
react-native link @pedrol2b/react-native-voice
4642
```
4743

4844
### Manually Link Android
@@ -52,7 +48,7 @@ react-native link @react-native-voice/voice
5248
```gradle
5349
...
5450
include ':@react-native-voice_voice', ':app'
55-
project(':@react-native-voice_voice').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-voice/voice/android')
51+
project(':@react-native-voice_voice').projectDir = new File(rootProject.projectDir, '../node_modules/@pedrol2b/react-native-voice/android')
5652
```
5753

5854
- In `android/app/build.gradle`
@@ -90,7 +86,7 @@ public class MainActivity extends Activity implements ReactApplication {
9086

9187
### Manually Link iOS
9288

93-
- Drag the Voice.xcodeproj from the @react-native-voice/voice/ios folder to the Libraries group on Xcode in your poject. [Manual linking](https://reactnative.dev/docs/linking-libraries-ios.html)
89+
- Drag the Voice.xcodeproj from the @pedrol2b/react-native-voice/ios folder to the Libraries group on Xcode in your poject. [Manual linking](https://reactnative.dev/docs/linking-libraries-ios.html)
9490

9591
- Click on your main project file (the one that represents the .xcodeproj) select Build Phases and drag the static library, lib.Voice.a, from the Libraries/Voice.xcodeproj/Products folder to Link Binary With Libraries
9692

@@ -103,7 +99,7 @@ After installing this npm package, add the [config plugin](https://docs.expo.io/
10399
```json
104100
{
105101
"expo": {
106-
"plugins": ["@react-native-voice/voice"]
102+
"plugins": ["@pedrol2b/react-native-voice"]
107103
}
108104
}
109105
```
@@ -123,7 +119,7 @@ The plugin provides props for extra customization. Every time you change the pro
123119
{
124120
"plugins": [
125121
[
126-
"@react-native-voice/voice",
122+
"@pedrol2b/react-native-voice",
127123
{
128124
"microphonePermission": "CUSTOM: Allow $(PRODUCT_NAME) to access the microphone",
129125
"speechRecognitionPermission": "CUSTOM: Allow $(PRODUCT_NAME) to securely recognize user speech"
@@ -140,7 +136,7 @@ The plugin provides props for extra customization. Every time you change the pro
140136
### Example
141137

142138
```javascript
143-
import Voice from '@react-native-voice/voice';
139+
import Voice from '@pedrol2b/react-native-voice';
144140
import React, {Component} from 'react';
145141

146142
class VoiceTest extends Component {
@@ -243,8 +239,8 @@ Need to include permissions for `NSMicrophoneUsageDescription` and `NSSpeechReco
243239

244240
Please see the documentation provided by ReactNative for this: [PermissionsAndroid](https://reactnative.dev/docs/permissionsandroid.html)
245241

246-
[npm]: https://img.shields.io/npm/v/@react-native-voice/voice.svg?style=flat-square
247-
[npm-url]: https://npmjs.com/package/@react-native-voice/voice
242+
[npm]: https://img.shields.io/npm/v/@pedrol2b/react-native-voice.svg?style=flat-square
243+
[npm-url]: https://npmjs.com/package/@pedrol2b/react-native-voice
248244
[circle-ci-badge]: https://img.shields.io/circleci/project/github/react-native-voice/voice/master.svg?style=flat-square
249245

250246
<h2 align="center">Contributors</h2>

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"react": "16.9.0",
1313
"react-native": "0.61.5",
14-
"@react-native-voice/voice": "file:../"
14+
"@pedrol2b/react-native-voice": "file:../"
1515
},
1616
"devDependencies": {
1717
"@babel/core": "^7.6.2",

example/src/VoiceTest.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Voice, {
1111
SpeechRecognizedEvent,
1212
SpeechResultsEvent,
1313
SpeechErrorEvent,
14-
} from '@react-native-voice/voice';
14+
} from '@pedrol2b/react-native-voice';
1515

1616
type Props = {};
1717
type State = {

example/src/VoiceTestFuncComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Voice, {
1111
SpeechRecognizedEvent,
1212
SpeechResultsEvent,
1313
SpeechErrorEvent,
14-
} from '@react-native-voice/voice';
14+
} from '@pedrol2b/react-native-voice';
1515

1616
function VoiceTest() {
1717
const [recognized, setRecognized] = useState('');

example/yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,8 +931,8 @@
931931
wcwidth "^1.0.1"
932932
ws "^1.1.0"
933933

934-
"@react-native-voice/voice@file:..":
935-
version "3.1.3"
934+
"@pedrol2b/react-native-voice@file:..":
935+
version "3.2.6"
936936
dependencies:
937937
invariant "^2.2.4"
938938

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "@react-native-voice/voice",
2+
"name": "@pedrol2b/react-native-voice",
33
"description": "React Native Native Voice library for iOS and Android",
4-
"version": "3.2.5",
5-
"author": "Sam Wenke <samwenke@gmail.com>",
4+
"version": "3.2.6",
5+
"author": "Pedro Bueno <pedrolbb.e@gmail.com>",
66
"private": false,
7-
"homepage": "https://github.com/react-native-voice/voice",
7+
"homepage": "https://github.com/pedrol2b/react-native-voice",
88
"devDependencies": {
99
"@react-native-community/eslint-config": "^0.0.7",
1010
"@semantic-release/git": "^9.0.0",
@@ -33,7 +33,7 @@
3333
},
3434
"repository": {
3535
"type": "git",
36-
"url": "git://github.com/react-native-voice/voice.git"
36+
"url": "git://github.com/pedrol2b/react-native-voice.git"
3737
},
3838
"scripts": {
3939
"lint": "eslint src/*",
@@ -43,7 +43,7 @@
4343
"android": "yarn --cwd example android",
4444
"prepare": "yarn build && yarn build:plugin",
4545
"build": "tsc",
46-
"dev-sync": "cp -r ./dist example/node_modules/@react-native-voice/voice",
46+
"dev-sync": "cp -r ./dist example/node_modules/@pedrol2b/react-native-voice",
4747
"type-check": "tsc -noEmit",
4848
"build:plugin": "tsc --build plugin",
4949
"lint:plugin": "eslint plugin/src/*"

plugin/src/withVoice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
withInfoPlist,
66
} from '@expo/config-plugins';
77

8-
const pkg = require('@react-native-voice/voice/package.json');
8+
const pkg = require('@pedrol2b/react-native-voice/package.json');
99

1010
const MICROPHONE = 'Allow $(PRODUCT_NAME) to access the microphone';
1111

react-native-voice.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
1212
s.homepage = package['homepage']
1313
s.platform = :ios, "9.0"
1414

15-
s.source = { :git => "https://github.com/react-native-voice/voice.git" }
15+
s.source = { :git => "https://github.com/pedrol2b/react-native-voice.git" }
1616
s.source_files = "ios/**/*.{h,m}"
1717

1818
s.dependency 'React-Core'

0 commit comments

Comments
 (0)