From 7dd05dabbb2c14bb23248d810762b18b51f5eb87 Mon Sep 17 00:00:00 2001 From: Timo Glastra Date: Mon, 26 Jul 2021 11:10:39 +0200 Subject: [PATCH] chore: update rn-indy-sdk references (#14) Signed-off-by: Timo Glastra --- .gitignore | 2 +- .npmignore | 2 +- README.md | 13 +++++++------ ...ndy-sdk.podspec => indy-sdk-react-native.podspec | 8 ++++---- 4 files changed, 13 insertions(+), 12 deletions(-) rename rn-indy-sdk.podspec => indy-sdk-react-native.podspec (82%) diff --git a/.gitignore b/.gitignore index 32744dc..51d393d 100644 --- a/.gitignore +++ b/.gitignore @@ -42,7 +42,7 @@ buck-out/ *.keystore # NPM package -rn-indy-sdk-*.tgz +indy-sdk-react-native-*.tgz # Build output lib diff --git a/.npmignore b/.npmignore index bb33046..dfbe433 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,4 @@ android/.idea android/build -rn-indy-sdk-1.0.0.tgz +indy-sdk-react-native-1.0.0.tgz /src/ diff --git a/README.md b/README.md index bf73069..6a300d4 100644 --- a/README.md +++ b/README.md @@ -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 @@ -126,6 +126,7 @@ public class MainActivity extends ReactActivity { ## iOS 1. Install CocoaPods dependencies: + ``` pod install --project-directory=ios/ ``` @@ -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' }) ``` diff --git a/rn-indy-sdk.podspec b/indy-sdk-react-native.podspec similarity index 82% rename from rn-indy-sdk.podspec rename to indy-sdk-react-native.podspec index c944619..5957265 100644 --- a/rn-indy-sdk.podspec +++ b/indy-sdk-react-native.podspec @@ -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" => "yourname@email.com" } 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