Skip to content

Commit

Permalink
fix: fix ios after rename 😭
Browse files Browse the repository at this point in the history
  • Loading branch information
tinacious committed Dec 27, 2020
1 parent 6691331 commit 477bcb2
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Remember to add tests for your change if possible. Run the unit tests by:
yarn test
```

To edit the Objective-C files, open `example/ios/SaveBase64ImageExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-save-base64-image`.
To edit the Objective-C files, open `example/ios/SaveBase64ImageExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-save-base-sixty-four`.

To edit the Kotlin files, open `example/android` in Android studio and find the source files at `reactnativesavebase64image` under `Android`.

Expand Down
4 changes: 2 additions & 2 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ target 'SaveBase64ImageExample' do

use_react_native!(:path => config["reactNativePath"])

pod 'react-native-save-base64-image', :path => '../..'
pod 'react-native-save-base-sixty-four', :path => '../..'

# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
Expand Down
16 changes: 11 additions & 5 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ PODS:
- React-cxxreact (= 0.63.4)
- React-jsi (= 0.63.4)
- React-jsinspector (0.63.4)
- react-native-save-base64-image (0.1.0):
- react-native-save-base-sixty-four (0.1.2):
- React-Core
- React-RCTActionSheet (0.63.4):
- React-Core/RCTActionSheetHeaders (= 0.63.4)
Expand Down Expand Up @@ -298,6 +298,8 @@ PODS:
- React-Core (= 0.63.4)
- React-cxxreact (= 0.63.4)
- React-jsi (= 0.63.4)
- RNDeviceInfo (7.3.1):
- React-Core
- Yoga (1.14.0)
- YogaKit (1.18.1):
- Yoga (~> 1.14)
Expand Down Expand Up @@ -339,7 +341,7 @@ DEPENDENCIES:
- React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
- React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
- react-native-save-base64-image (from `../..`)
- react-native-save-base-sixty-four (from `../..`)
- React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
- React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
- React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
Expand All @@ -350,6 +352,7 @@ DEPENDENCIES:
- React-RCTText (from `../node_modules/react-native/Libraries/Text`)
- React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
- RNDeviceInfo (from `../node_modules/react-native-device-info`)
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)

SPEC REPOS:
Expand Down Expand Up @@ -398,7 +401,7 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/jsiexecutor"
React-jsinspector:
:path: "../node_modules/react-native/ReactCommon/jsinspector"
react-native-save-base64-image:
react-native-save-base-sixty-four:
:path: "../.."
React-RCTActionSheet:
:path: "../node_modules/react-native/Libraries/ActionSheetIOS"
Expand All @@ -420,6 +423,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/Libraries/Vibration"
ReactCommon:
:path: "../node_modules/react-native/ReactCommon"
RNDeviceInfo:
:path: "../node_modules/react-native-device-info"
Yoga:
:path: "../node_modules/react-native/ReactCommon/yoga"

Expand Down Expand Up @@ -450,7 +455,7 @@ SPEC CHECKSUMS:
React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31
React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949
React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a
react-native-save-base64-image: ca668db0faddcdf75cd133d621f657b00492d32a
react-native-save-base-sixty-four: a64e34cbb4e557c87c332a134364981d571f5415
React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336
React-RCTAnimation: 1bde3ecc0c104c55df246eda516e0deb03c4e49b
React-RCTBlob: a97d378b527740cc667e03ebfa183a75231ab0f0
Expand All @@ -461,9 +466,10 @@ SPEC CHECKSUMS:
React-RCTText: 5c51df3f08cb9dedc6e790161195d12bac06101c
React-RCTVibration: ae4f914cfe8de7d4de95ae1ea6cc8f6315d73d9d
ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b
RNDeviceInfo: 6ecb1d1c87d20e4c62354be0348de23362824dcd
Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: d554ea884055a4d0c4ecfac2b6b43a4bad91862f
PODFILE CHECKSUM: 17b6c9513b3d86f492f65629c3ef5b4f266bda0f

COCOAPODS: 1.10.0
2 changes: 1 addition & 1 deletion example/ios/SaveBase64ImageExample/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="react-native-save-base64-image-example" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="react-native-save-base-sixty-four-example" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
<rect key="frame" x="0.0" y="202" width="375" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
Expand Down
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-save-base64-image-example",
"description": "Example app for react-native-save-base64-image",
"name": "react-native-save-base-sixty-four-example",
"description": "Example app for react-native-save-base-sixty-four",
"version": "0.0.1",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Alert,
Platform,
} from 'react-native';
import SaveBase64Image from 'react-native-save-base64-image';
import SaveBase64Image from 'react-native-save-base-sixty-four';
import { dachshund, pomeranian, frenchie } from './images';
import { hasStoragePermissions } from './permissions';

Expand Down
3 changes: 3 additions & 0 deletions ios/SaveBase64Image.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ class SaveBase64Image: NSObject {
resolver?(true)
}

@objc static func requiresMainQueueSetup() -> Bool {
return false
}
}

// Decode a clean base64 string into an image
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"android",
"ios",
"cpp",
"react-native-save-base64-image.podspec",
"react-native-save-base-sixty-four.podspec",
"!lib/typescript/example",
"!android/build",
"!ios/build",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))

Pod::Spec.new do |s|
s.name = "react-native-save-base64-image"
s.name = "react-native-save-base-sixty-four"
s.version = package["version"]
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = package["author"]

s.platforms = { :ios => "10.0" }
s.source = { :git => "https://github.com/tinacious/react-native-save-base64-image.git", :tag => "#{s.version}" }
s.source = { :git => "https://github.com/tinacious/react-native-save-base-sixty-four.git", :tag => "#{s.version}" }



s.source_files = "ios/**/*.{h,m,mm,swift}"


s.dependency "React-Core"
end
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"paths": {
"react-native-save-base64-image": ["./src/index"]
"react-native-save-base-sixty-four": ["./src/index"]
},
"allowUnreachableCode": false,
"allowUnusedLabels": false,
Expand Down

0 comments on commit 477bcb2

Please sign in to comment.