react-native-flic2 0.3.23 → 0.3.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -5
- package/ios/Flic2.h +1 -5
- package/ios/Flic2.xcodeproj/project.pbxproj +38 -8
- package/ios/Flic2.xcodeproj/xcshareddata/xcschemes/Flic2.xcscheme +66 -0
- package/ios/Flic2.xcodeproj/xcuserdata/wesdewitte.xcuserdatad/xcschemes/xcschememanagement.plist +8 -0
- package/ios/Flic2.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +5 -0
- package/ios/Flic2.xcworkspace/xcuserdata/wesdewitte.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Flic2.xcworkspace/xcuserdata/wesdewitte.xcuserdatad/WorkspaceSettings.xcsettings +14 -0
- package/ios/{Frameworks/flic2lib.framework → flic2lib.framework}/Headers/FLICButton.h +10 -0
- package/ios/{Frameworks/flic2lib.framework → flic2lib.framework}/Headers/FLICEnums.h +19 -0
- package/ios/{Frameworks/flic2lib.framework → flic2lib.framework}/Info.plist +0 -0
- package/ios/flic2lib.framework/flic2lib +0 -0
- package/package.json +1 -1
- package/ios/Frameworks/flic2lib.framework/flic2lib +0 -0
- /package/ios/{Frameworks/flic2lib.framework → flic2lib.framework}/Headers/FLICManager.h +0 -0
- /package/ios/{Frameworks/flic2lib.framework → flic2lib.framework}/Headers/flic2lib.h +0 -0
- /package/ios/{Frameworks/flic2lib.framework → flic2lib.framework}/Modules/module.modulemap +0 -0
package/index.js
CHANGED
|
@@ -109,13 +109,13 @@ class Flic2 extends EventEmitter {
|
|
|
109
109
|
this.knownButtons = {};
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
/**
|
|
113
113
|
* Start up the flic module
|
|
114
114
|
*/
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
start() {
|
|
116
|
+
// start the native context
|
|
117
|
+
Flic2Module.startup();
|
|
118
|
+
}
|
|
119
119
|
|
|
120
120
|
registerInitializedCallback(){
|
|
121
121
|
if(Platform.OS === 'android') {
|
package/ios/Flic2.h
CHANGED
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
archiveVersion = 1;
|
|
4
4
|
classes = {
|
|
5
5
|
};
|
|
6
|
-
objectVersion =
|
|
6
|
+
objectVersion = 54;
|
|
7
7
|
objects = {
|
|
8
8
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
|
-
|
|
10
|
+
3A6BB39D2B7E4AB400A0F73C /* Flic2.h in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5881CC2AC0600A0062D /* Flic2.h */; };
|
|
11
|
+
3A9E18882B7F704600B18D9F /* flic2lib.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A8166302B7F45110032C2D0 /* flic2lib.framework */; platformFilter = ios; };
|
|
11
12
|
B3E7B58A1CC2AC0600A0062D /* Flic2.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* Flic2.m */; };
|
|
12
13
|
/* End PBXBuildFile section */
|
|
13
14
|
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
|
|
26
27
|
/* Begin PBXFileReference section */
|
|
27
28
|
134814201AA4EA6300B7C361 /* libFlic2.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libFlic2.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
28
|
-
|
|
29
|
+
3A8166302B7F45110032C2D0 /* flic2lib.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = flic2lib.framework; sourceTree = "<group>"; };
|
|
29
30
|
B3E7B5881CC2AC0600A0062D /* Flic2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Flic2.h; sourceTree = SOURCE_ROOT; };
|
|
30
31
|
B3E7B5891CC2AC0600A0062D /* Flic2.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Flic2.m; sourceTree = SOURCE_ROOT; };
|
|
31
32
|
/* End PBXFileReference section */
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
isa = PBXFrameworksBuildPhase;
|
|
36
37
|
buildActionMask = 2147483647;
|
|
37
38
|
files = (
|
|
38
|
-
|
|
39
|
+
3A9E18882B7F704600B18D9F /* flic2lib.framework in Frameworks */,
|
|
39
40
|
);
|
|
40
41
|
runOnlyForDeploymentPostprocessing = 0;
|
|
41
42
|
};
|
|
@@ -50,13 +51,21 @@
|
|
|
50
51
|
name = Products;
|
|
51
52
|
sourceTree = "<group>";
|
|
52
53
|
};
|
|
54
|
+
3A919E962B7CAD8E00FA7A77 /* Frameworks */ = {
|
|
55
|
+
isa = PBXGroup;
|
|
56
|
+
children = (
|
|
57
|
+
3A8166302B7F45110032C2D0 /* flic2lib.framework */,
|
|
58
|
+
);
|
|
59
|
+
name = Frameworks;
|
|
60
|
+
sourceTree = "<group>";
|
|
61
|
+
};
|
|
53
62
|
58B511D21A9E6C8500147676 = {
|
|
54
63
|
isa = PBXGroup;
|
|
55
64
|
children = (
|
|
56
65
|
B3E7B5881CC2AC0600A0062D /* Flic2.h */,
|
|
57
66
|
B3E7B5891CC2AC0600A0062D /* Flic2.m */,
|
|
58
67
|
134814211AA4EA7D00B7C361 /* Products */,
|
|
59
|
-
|
|
68
|
+
3A919E962B7CAD8E00FA7A77 /* Frameworks */,
|
|
60
69
|
);
|
|
61
70
|
sourceTree = "<group>";
|
|
62
71
|
};
|
|
@@ -86,7 +95,8 @@
|
|
|
86
95
|
58B511D31A9E6C8500147676 /* Project object */ = {
|
|
87
96
|
isa = PBXProject;
|
|
88
97
|
attributes = {
|
|
89
|
-
|
|
98
|
+
BuildIndependentTargetsInParallel = YES;
|
|
99
|
+
LastUpgradeCheck = 1510;
|
|
90
100
|
ORGANIZATIONNAME = Facebook;
|
|
91
101
|
TargetAttributes = {
|
|
92
102
|
58B511DA1A9E6C8500147676 = {
|
|
@@ -101,6 +111,7 @@
|
|
|
101
111
|
knownRegions = (
|
|
102
112
|
English,
|
|
103
113
|
en,
|
|
114
|
+
Base,
|
|
104
115
|
);
|
|
105
116
|
mainGroup = 58B511D21A9E6C8500147676;
|
|
106
117
|
productRefGroup = 58B511D21A9E6C8500147676;
|
|
@@ -117,6 +128,7 @@
|
|
|
117
128
|
isa = PBXSourcesBuildPhase;
|
|
118
129
|
buildActionMask = 2147483647;
|
|
119
130
|
files = (
|
|
131
|
+
3A6BB39D2B7E4AB400A0F73C /* Flic2.h in Sources */,
|
|
120
132
|
B3E7B58A1CC2AC0600A0062D /* Flic2.m in Sources */,
|
|
121
133
|
);
|
|
122
134
|
runOnlyForDeploymentPostprocessing = 0;
|
|
@@ -129,6 +141,7 @@
|
|
|
129
141
|
buildSettings = {
|
|
130
142
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
131
143
|
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES;
|
|
144
|
+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
|
132
145
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
133
146
|
CLANG_CXX_LIBRARY = "libc++";
|
|
134
147
|
CLANG_ENABLE_MODULES = YES;
|
|
@@ -137,14 +150,17 @@
|
|
|
137
150
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
138
151
|
CLANG_WARN_COMMA = YES;
|
|
139
152
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
153
|
+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
140
154
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
141
155
|
CLANG_WARN_EMPTY_BODY = YES;
|
|
142
156
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
143
157
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
144
158
|
CLANG_WARN_INT_CONVERSION = YES;
|
|
145
159
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
160
|
+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
146
161
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
147
162
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
163
|
+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
|
148
164
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
149
165
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
150
166
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
@@ -153,6 +169,7 @@
|
|
|
153
169
|
COPY_PHASE_STRIP = NO;
|
|
154
170
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
155
171
|
ENABLE_TESTABILITY = YES;
|
|
172
|
+
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
|
156
173
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
157
174
|
GCC_DYNAMIC_NO_PIC = NO;
|
|
158
175
|
GCC_NO_COMMON_BLOCKS = YES;
|
|
@@ -180,6 +197,7 @@
|
|
|
180
197
|
buildSettings = {
|
|
181
198
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
182
199
|
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES;
|
|
200
|
+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
|
183
201
|
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
184
202
|
CLANG_CXX_LIBRARY = "libc++";
|
|
185
203
|
CLANG_ENABLE_MODULES = YES;
|
|
@@ -188,14 +206,17 @@
|
|
|
188
206
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
189
207
|
CLANG_WARN_COMMA = YES;
|
|
190
208
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
209
|
+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
191
210
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
192
211
|
CLANG_WARN_EMPTY_BODY = YES;
|
|
193
212
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
194
213
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
195
214
|
CLANG_WARN_INT_CONVERSION = YES;
|
|
196
215
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
216
|
+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
197
217
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
198
218
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
219
|
+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
|
|
199
220
|
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
200
221
|
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
201
222
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
@@ -204,6 +225,7 @@
|
|
|
204
225
|
COPY_PHASE_STRIP = YES;
|
|
205
226
|
ENABLE_NS_ASSERTIONS = NO;
|
|
206
227
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
228
|
+
ENABLE_USER_SCRIPT_SANDBOXING = YES;
|
|
207
229
|
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
208
230
|
GCC_NO_COMMON_BLOCKS = YES;
|
|
209
231
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
@@ -234,7 +256,11 @@
|
|
|
234
256
|
"$(SRCROOT)/../../../React/**",
|
|
235
257
|
"$(SRCROOT)/../../react-native/React/**",
|
|
236
258
|
);
|
|
237
|
-
LIBRARY_SEARCH_PATHS =
|
|
259
|
+
LIBRARY_SEARCH_PATHS = (
|
|
260
|
+
"$(inherited)",
|
|
261
|
+
"$(PROJECT_DIR)/Frameworks/flic2lib.xcframework/ios-arm64_armv7/flic2lib.framework",
|
|
262
|
+
"$(PROJECT_DIR)/flic2lib.framework",
|
|
263
|
+
);
|
|
238
264
|
OTHER_LDFLAGS = "-ObjC";
|
|
239
265
|
PRODUCT_NAME = Flic2;
|
|
240
266
|
SKIP_INSTALL = YES;
|
|
@@ -256,7 +282,11 @@
|
|
|
256
282
|
"$(SRCROOT)/../../../React/**",
|
|
257
283
|
"$(SRCROOT)/../../react-native/React/**",
|
|
258
284
|
);
|
|
259
|
-
LIBRARY_SEARCH_PATHS =
|
|
285
|
+
LIBRARY_SEARCH_PATHS = (
|
|
286
|
+
"$(inherited)",
|
|
287
|
+
"$(PROJECT_DIR)/Frameworks/flic2lib.xcframework/ios-arm64_armv7/flic2lib.framework",
|
|
288
|
+
"$(PROJECT_DIR)/flic2lib.framework",
|
|
289
|
+
);
|
|
260
290
|
OTHER_LDFLAGS = "-ObjC";
|
|
261
291
|
PRODUCT_NAME = Flic2;
|
|
262
292
|
SKIP_INSTALL = YES;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Scheme
|
|
3
|
+
LastUpgradeVersion = "1510"
|
|
4
|
+
version = "1.7">
|
|
5
|
+
<BuildAction
|
|
6
|
+
parallelizeBuildables = "YES"
|
|
7
|
+
buildImplicitDependencies = "YES">
|
|
8
|
+
<BuildActionEntries>
|
|
9
|
+
<BuildActionEntry
|
|
10
|
+
buildForTesting = "YES"
|
|
11
|
+
buildForRunning = "YES"
|
|
12
|
+
buildForProfiling = "YES"
|
|
13
|
+
buildForArchiving = "YES"
|
|
14
|
+
buildForAnalyzing = "YES">
|
|
15
|
+
<BuildableReference
|
|
16
|
+
BuildableIdentifier = "primary"
|
|
17
|
+
BlueprintIdentifier = "58B511DA1A9E6C8500147676"
|
|
18
|
+
BuildableName = "libFlic2.a"
|
|
19
|
+
BlueprintName = "Flic2"
|
|
20
|
+
ReferencedContainer = "container:Flic2.xcodeproj">
|
|
21
|
+
</BuildableReference>
|
|
22
|
+
</BuildActionEntry>
|
|
23
|
+
</BuildActionEntries>
|
|
24
|
+
</BuildAction>
|
|
25
|
+
<TestAction
|
|
26
|
+
buildConfiguration = "Debug"
|
|
27
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
28
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
29
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
30
|
+
shouldAutocreateTestPlan = "YES">
|
|
31
|
+
</TestAction>
|
|
32
|
+
<LaunchAction
|
|
33
|
+
buildConfiguration = "Debug"
|
|
34
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
35
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
36
|
+
launchStyle = "0"
|
|
37
|
+
useCustomWorkingDirectory = "NO"
|
|
38
|
+
ignoresPersistentStateOnLaunch = "NO"
|
|
39
|
+
debugDocumentVersioning = "YES"
|
|
40
|
+
debugServiceExtension = "internal"
|
|
41
|
+
allowLocationSimulation = "YES">
|
|
42
|
+
</LaunchAction>
|
|
43
|
+
<ProfileAction
|
|
44
|
+
buildConfiguration = "Release"
|
|
45
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
46
|
+
savedToolIdentifier = ""
|
|
47
|
+
useCustomWorkingDirectory = "NO"
|
|
48
|
+
debugDocumentVersioning = "YES">
|
|
49
|
+
<MacroExpansion>
|
|
50
|
+
<BuildableReference
|
|
51
|
+
BuildableIdentifier = "primary"
|
|
52
|
+
BlueprintIdentifier = "58B511DA1A9E6C8500147676"
|
|
53
|
+
BuildableName = "libFlic2.a"
|
|
54
|
+
BlueprintName = "Flic2"
|
|
55
|
+
ReferencedContainer = "container:Flic2.xcodeproj">
|
|
56
|
+
</BuildableReference>
|
|
57
|
+
</MacroExpansion>
|
|
58
|
+
</ProfileAction>
|
|
59
|
+
<AnalyzeAction
|
|
60
|
+
buildConfiguration = "Debug">
|
|
61
|
+
</AnalyzeAction>
|
|
62
|
+
<ArchiveAction
|
|
63
|
+
buildConfiguration = "Release"
|
|
64
|
+
revealArchiveInOrganizer = "YES">
|
|
65
|
+
</ArchiveAction>
|
|
66
|
+
</Scheme>
|
package/ios/Flic2.xcworkspace/xcuserdata/wesdewitte.xcuserdatad/UserInterfaceState.xcuserstate
CHANGED
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>BuildLocationStyle</key>
|
|
6
|
+
<string>UseAppPreferences</string>
|
|
7
|
+
<key>CustomBuildLocationType</key>
|
|
8
|
+
<string>RelativeToDerivedData</string>
|
|
9
|
+
<key>DerivedDataLocationStyle</key>
|
|
10
|
+
<string>Default</string>
|
|
11
|
+
<key>ShowSharedSchemesAutomaticallyEnabled</key>
|
|
12
|
+
<true/>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
|
@@ -148,6 +148,16 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
148
148
|
*/
|
|
149
149
|
@property(nonatomic, readonly) BOOL isUnpaired;
|
|
150
150
|
|
|
151
|
+
/*!
|
|
152
|
+
* @property latencyMode
|
|
153
|
+
*
|
|
154
|
+
* @discussion Lets you switch between two different latency modes. For most use-cases it is recommend to keep the default FLICLatencyModeNormal.
|
|
155
|
+
* FLICLatencyModeLow should ideally only be used for foreground applications, such as games, where low latency is needed. Keep in mind that the
|
|
156
|
+
* energy consumption will be significantly higher in the low latency mode.
|
|
157
|
+
*
|
|
158
|
+
*/
|
|
159
|
+
@property(nonatomic, readwrite) FLICLatencyMode latencyMode;
|
|
160
|
+
|
|
151
161
|
/*!
|
|
152
162
|
* @method connect
|
|
153
163
|
*
|
|
@@ -293,4 +293,23 @@ typedef NS_ENUM(NSInteger, FLICButtonTriggerMode)
|
|
|
293
293
|
FLICButtonTriggerModeClick,
|
|
294
294
|
};
|
|
295
295
|
|
|
296
|
+
/*!
|
|
297
|
+
* @enum FLICButtonTriggerMode
|
|
298
|
+
*
|
|
299
|
+
* @discussion The different latency modes that you can configure the Flic button to use.
|
|
300
|
+
*
|
|
301
|
+
*/
|
|
302
|
+
typedef NS_ENUM(NSInteger, FLICLatencyMode)
|
|
303
|
+
{
|
|
304
|
+
/**
|
|
305
|
+
* This is the default mode of the button. It will give you a good compromise between click latency (less than 105 ms while connected) and current consumption.
|
|
306
|
+
*/
|
|
307
|
+
FLICLatencyModeNormal = 0,
|
|
308
|
+
/**
|
|
309
|
+
* Using this mode will give your button the lowest possible click latency (typicaly less than 30 ms while connected).
|
|
310
|
+
* This mode will significantly increase the current consumption.
|
|
311
|
+
*/
|
|
312
|
+
FLICLatencyModeLow,
|
|
313
|
+
};
|
|
314
|
+
|
|
296
315
|
#endif /* FLICEnums_h */
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|