Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
chore: update rn-indy-sdk references (#14)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra authored Jul 26, 2021
1 parent 4beab7b commit 7dd05da
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ buck-out/
*.keystore

# NPM package
rn-indy-sdk-*.tgz
indy-sdk-react-native-*.tgz

# Build output
lib
Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
android/.idea
android/build
rn-indy-sdk-1.0.0.tgz
indy-sdk-react-native-1.0.0.tgz
/src/
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ React Native Indy SDK wrapper.
## Installation

with npm:
`$ npm install rn-indy-sdk --save`
`$ npm install indy-sdk-react-native --save`

with Yarn:
`$ yarn add rn-indy-sdk`
`$ yarn add indy-sdk-react-native`

Link (for React Native lower than 0.60)

`$ react-native link rn-indy-sdk`
`$ react-native link indy-sdk-react-native`

## Android

Expand Down Expand Up @@ -126,6 +126,7 @@ public class MainActivity extends ReactActivity {
## iOS

1. Install CocoaPods dependencies:

```
pod install --project-directory=ios/
```
Expand All @@ -139,14 +140,14 @@ ios/Pods/
!ios/Pods/Frameworks
```

4. Add `Indy.framework` as dependency into your project. Open `.xcworkspace` file in Xcode and in your project settings, tab General, section Frameworks, Libraries, and Embedded Content, click on plus. Then select Add Other -> Add files... and navigate to `Indy.framework` file on your disk.
4. Add `Indy.framework` as dependency into your project. Open `.xcworkspace` file in Xcode and in your project settings, tab General, section Frameworks, Libraries, and Embedded Content, click on plus. Then select Add Other -> Add files... and navigate to `Indy.framework` file on your disk.

> Beware that the Indy SDK repository does not have the "Build Libraries for Distribution" enabled by default. If that setting is disabled the version of Swift your project uses must be the same as the version of Swift used to compile `Indy.framework`. From Swift 5.0 onwards, building the library with that setting enabled will allow to use an `Indy.framework` build that is compiled with a different version of Swift as your project. See https://stackoverflow.com/a/63305234/10552895 for more info.
> Beware that the Indy SDK repository does not have the "Build Libraries for Distribution" enabled by default. If that setting is disabled the version of Swift your project uses must be the same as the version of Swift used to compile `Indy.framework`. From Swift 5.0 onwards, building the library with that setting enabled will allow to use an `Indy.framework` build that is compiled with a different version of Swift as your project. See https://stackoverflow.com/a/63305234/10552895 for more info.
## Usage

```javascript
import indy from 'rn-indy-sdk'
import indy from 'indy-sdk-react-native'

await indy.createWallet({ id: 'wallet-123' }, { key: 'key' })
```
Expand Down
8 changes: 4 additions & 4 deletions rn-indy-sdk.podspec → indy-sdk-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))

Pod::Spec.new do |s|
s.name = "rn-indy-sdk"
s.name = "indy-sdk-react-native"
s.version = package["version"]
s.summary = package["description"]
s.description = <<-DESC
rn-indy-sdk
indy-sdk-react-native
DESC
s.homepage = "https://github.com/AbsaOSS/rn-indy-sdk"
s.homepage = "https://github.com/hyperledger/indy-sdk-react-native"
s.license = "Apache-2.0"
# s.license = { :type => "Apache-2.0", :file => "LICENSE.md" }
s.authors = { "Your Name" => "[email protected]" }
s.platforms = { :ios => "10.0" }
s.source = { :git => "https://github.com/AbsaOSS/rn-indy-sdk.git", :tag => "#{s.version}" }
s.source = { :git => "https://github.com/hyperledger/indy-sdk-react-native.git", :tag => "#{s.version}" }

s.source_files = "ios/**/*.{h,m,swift}"
s.requires_arc = true
Expand Down

0 comments on commit 7dd05da

Please sign in to comment.