Skip to content

Commit 5da7b33

Browse files
author
waqas
committed
Added podspec support
1 parent 1aa3e12 commit 5da7b33

File tree

4 files changed

+43
-2
lines changed

4 files changed

+43
-2
lines changed

RNTextInputMask.podspec

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#
2+
# Be sure to run `pod lib lint RNTextInputMask.podspec' to ensure this is a
3+
# valid spec before submitting.
4+
#
5+
# Any lines starting with a # are optional, but their use is encouraged
6+
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
7+
#
8+
9+
Pod::Spec.new do |s|
10+
s.name = 'RNTextInputMask'
11+
s.version = '2.0.0'
12+
s.summary = 'react community react-native-text-input-mask iOS库'
13+
14+
s.description = <<-DESC
15+
Text input mask for React Native, Android and iOS
16+
DESC
17+
18+
s.homepage = 'https://github.com/react-native-community/react-native-text-input-mask'
19+
s.license = { :type => 'MIT', :file => 'LICENSE' }
20+
s.author = { 'react-native-community' => 'react-native-text-input-mask' }
21+
s.source = { :git => 'https://github.com/react-native-community/react-native-text-input-mask.git', :tag => s.version.to_s }
22+
23+
s.ios.deployment_target = '8.0'
24+
25+
s.source_files = "ios/**/*.{h,m}"
26+
s.dependency 'React'
27+
s.dependency 'RNInputMask'
28+
end

ios/InputMask/RNInputMask.podspec

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Pod::Spec.new do |spec|
2+
spec.name = "RNInputMask"
3+
spec.version = "4.1.0"
4+
spec.summary = "InputMask"
5+
spec.description = "User input masking library."
6+
spec.homepage = "https://github.com/RedMadRobot/input-mask-ios"
7+
spec.license = "MIT"
8+
spec.author = { "Egor Taflanidi" => "et@redmadrobot.com" }
9+
spec.source = { :git => "https://github.com/RedMadRobot/input-mask-ios.git", :tag => spec.version.to_s }
10+
spec.platform = :ios, "8.0"
11+
spec.requires_arc = true
12+
spec.source_files = "InputMask/Classes/**/*"
13+
end

ios/RNTextInputMask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#import <React/RCTBridgeModule.h>
22

3-
@import InputMask;
3+
@import RNInputMask;
44

55
@interface RNTextInputMask : NSObject <RCTBridgeModule, MaskedTextFieldDelegateListener>
66
@end

ios/RNTextInputMask.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#import "RCTUITextField.h"
66
#import "RNTextInputMask.h"
77

8-
@import InputMask;
8+
@import RNInputMask;
99

1010
@implementation RNTextInputMask {
1111
NSMutableDictionary *masks;

0 commit comments

Comments
 (0)