Skip to content

Commit a3d22e5

Browse files
author
SDS
committed
Added support to pull latest AWS S3 library. Added podspec for autolinking
1 parent b474d87 commit a3d22e5

File tree

4 files changed

+47
-6
lines changed

4 files changed

+47
-6
lines changed

ios/Frameworks/.gitkeep

Whitespace-only changes.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-s3",
3-
"version": "0.0.31",
3+
"version": "0.0.32",
44
"description": "A React Native wrapper for AWS S3 SDK",
55
"main": "./src/index.js",
66
"files": ["android/", "ios/", "src/"],
@@ -14,7 +14,7 @@
1414
"url": "git+https://github.com/mybigday/react-native-s3.git"
1515
},
1616
"keywords": ["react", "native", "aws", "s3", "transferutility"],
17-
"author": "Jhen <developer@jhen.me>",
17+
"author": "Travis Gibson <travismgibson@gmail.com",
1818
"license": "MIT",
1919
"eslintConfig": {
2020
"extends": "mybigday"
@@ -33,8 +33,8 @@
3333
"eslint-plugin-react": "^4.1.0",
3434
"expect": "^1.20.2",
3535
"mocha": "^3.1.2",
36-
"react": "^15.3.2",
37-
"react-native": "^0.35.0",
36+
"react": "^16.12.0",
37+
"react-native": "0.61.4",
3838
"react-native-mock": "^0.2.7"
3939
}
4040
}

react-native-s3.podspec

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
require "json"
2+
3+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4+
5+
Pod::Spec.new do |s|
6+
s.name = "react-native-splash-screen"
7+
s.version = package["version"]
8+
s.summary = package["description"]
9+
s.author = 'travisgibson'
10+
s.homepage = package["homepage"]
11+
s.license = package["license"]
12+
s.platform = :ios, "7.0"
13+
s.source = { :git => "https://github.com/yamill/react-native-orientation.git", :tag => "#{s.version}" }
14+
s.source_files = "ios/*.{h,m}"
15+
s.dependency "React"
16+
end
17+
18+
19+
20+
# Pod::Spec.new do |s|
21+
# s.name = package['name']
22+
# s.version = package['version']
23+
# s.summary = package['description']
24+
# s.description = package['description']
25+
# s.license = package['license']
26+
# s.author = package['author']
27+
# s.homepage = package['homepage']
28+
# s.source = { :git => 'https://github.com/yamill/react-native-orientation.git', :tag => s.version }
29+
#
30+
# s.requires_arc = true
31+
# s.platform = :ios, '7.0'
32+
#
33+
# s.preserve_paths = 'README.md', 'package.json', 'index.js'
34+
# s.source_files = 'iOS/RCTOrientation/*.{h,m}'
35+
#
36+
# s.dependency 'React'
37+
# end

scripts/download-ios.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ if [[ "$SKIP_DOWNLOAD_SDK_IF_EXISTS" == "1" ]] && [ -e "$file" ]; then
55
exit
66
fi
77

8-
VERSION=$1
8+
#VERSION=$1
9+
VERSION=2.16.4
910

1011
echo "Downloading AWS iOS SDK $VERSION..."
1112
cd ios/Frameworks
@@ -16,8 +17,11 @@ if ! which unzip > /dev/null; then echo "unzip command not found."; exit 1; fi;
1617
if [ -d ./AWSCore.framework ]; then rm -rf ./AWSCore.framework; fi;
1718
if [ -d ./AWSS3.framework ]; then rm -rf ./AWSS3.framework; fi;
1819
if [ -d ./AWSCognito.framework ]; then rm -rf ./AWSCognito.framework; fi;
20+
#https://aws-amplify.github.io/docs/ios/manualsetup
21+
#curl -sS http://sdk-for-ios.amazonwebservices.com/aws-ios-sdk-2.16.4.zip > temp.zip
1922

20-
curl -sS http://sdk-for-ios.amazonwebservices.com/aws-ios-sdk-$VERSION.zip > temp.zip
23+
#curl -sS http://sdk-for-ios.amazonwebservices.com/aws-ios-sdk-$VERSION.zip > temp.zip
24+
curl -sS https://sdk-for-ios.amazonwebservices.com/latest/aws-ios-sdk.zip > temp.zip
2125
unzip -o temp.zip -d temp
2226
mv temp/frameworks/AWSCore.framework ./AWSCore.framework
2327
mv temp/frameworks/AWSS3.framework ./AWSS3.framework

0 commit comments

Comments
 (0)