Skip to content

Commit

Permalink
Add tvOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
gevgasparyan committed Jul 1, 2021
1 parent 0700ccb commit 7264cb2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ https://www.npmjs.com/package/rn-qr-generator

`$ npm install rn-qr-generator --save`

### Mostly automatic installation
## Mostly automatic installation

`$ react-native link rn-qr-generator`

Expand All @@ -21,7 +21,7 @@ cd ios && pod install && cd ../
```
___

### Manual installation
## Manual installation


#### iOS
Expand All @@ -37,20 +37,19 @@ ___
- Add `import com.gevorg.reactlibrary.RNQrGeneratorPackage;` to the imports at the top of the file
- Add `new RNQrGeneratorPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
```
```diff
rootProject.name = 'MyApp'
include ':app'

+ include ':rn-qr-generator'
+ project(':rn-qr-generator').projectDir = new File(rootProject.projectDir, '../node_modules/rn-qr-generator/android')
```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
```diff
dependencies {
+ compile project(':rn-qr-generator')
}
```
dependencies{
+ compile project(':rn-qr-generator')
}
```


## Usage
```javascript
Expand Down
1 change: 1 addition & 0 deletions RNQrGenerator.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Pod::Spec.new do |s|
s.homepage = package['homepage']

s.platform = :ios, "7.0"
s.tvos.deployment_target = '13.0'
s.source = { :git => "https://github.com/gevorg94/rn-qr-generator.git", :tag => "master" }
s.source_files = "ios/**/*.{h,m}"
s.requires_arc = true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rn-qr-generator",
"version": "1.1.6",
"version": "1.1.7",
"description": "React native QR Code generator",
"main": "index.js",
"types": "typings/index.d.ts",
Expand Down

0 comments on commit 7264cb2

Please sign in to comment.