mirror of
https://github.com/expo/config-plugins.git
synced 2026-11-13 20:28:07 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad810c8b11 | ||
|
|
e445cb4bc8 |
No files matched your search
@@ -1,3 +1,10 @@
|
|||||||
|
### @config-plugins/react-native-ble-plx [1.0.3](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-05-09)
|
||||||
|
|
||||||
|
|
||||||
|
### Other chores
|
||||||
|
|
||||||
|
* **react-native-ble-plx:** lint fix ([a99c60e](https://github.com/expo/config-plugins/commit/a99c60efd5fe53d369551c9a1323701ab14e935b))
|
||||||
|
|
||||||
### @config-plugins/react-native-ble-plx [1.0.2](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-22)
|
### @config-plugins/react-native-ble-plx [1.0.2](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-22)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
-1
@@ -1,5 +1,4 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* eslint-disable flowtype/no-types-missing-file-annotation */
|
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.BackgroundMode = void 0;
|
exports.BackgroundMode = void 0;
|
||||||
const config_plugins_1 = require("@expo/config-plugins");
|
const config_plugins_1 = require("@expo/config-plugins");
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import { ConfigPlugin, AndroidConfig } from "@expo/config-plugins";
|
import { ConfigPlugin, AndroidConfig } from "@expo/config-plugins";
|
||||||
declare type InnerManifest = AndroidConfig.Manifest.AndroidManifest['manifest'];
|
declare type InnerManifest = AndroidConfig.Manifest.AndroidManifest["manifest"];
|
||||||
declare type ManifestPermission = InnerManifest["permission"];
|
declare type ManifestPermission = InnerManifest["permission"];
|
||||||
declare type AndroidManifest = {
|
declare type AndroidManifest = {
|
||||||
manifest: InnerManifest & {
|
manifest: InnerManifest & {
|
||||||
|
|||||||
-1
@@ -1,5 +1,4 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
/* eslint-disable flowtype/no-types-missing-file-annotation */
|
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.addBLEHardwareFeatureToManifest = exports.addFineControlPermissionToManifest = exports.withBLEAndroidManifest = void 0;
|
exports.addBLEHardwareFeatureToManifest = exports.addFineControlPermissionToManifest = exports.withBLEAndroidManifest = void 0;
|
||||||
const config_plugins_1 = require("@expo/config-plugins");
|
const config_plugins_1 = require("@expo/config-plugins");
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { ConfigPlugin } from '@expo/config-plugins';
|
import { ConfigPlugin } from "@expo/config-plugins";
|
||||||
export declare enum BackgroundMode {
|
export declare enum BackgroundMode {
|
||||||
Central = "central",
|
Central = "central",
|
||||||
Peripheral = "peripheral"
|
Peripheral = "peripheral"
|
||||||
|
|||||||
+4
-5
@@ -1,7 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.withBLEBackgroundModes = exports.BackgroundMode = void 0;
|
exports.withBLEBackgroundModes = exports.BackgroundMode = void 0;
|
||||||
/* eslint-disable flowtype/no-types-missing-file-annotation */
|
|
||||||
const config_plugins_1 = require("@expo/config-plugins");
|
const config_plugins_1 = require("@expo/config-plugins");
|
||||||
var BackgroundMode;
|
var BackgroundMode;
|
||||||
(function (BackgroundMode) {
|
(function (BackgroundMode) {
|
||||||
@@ -9,18 +8,18 @@ var BackgroundMode;
|
|||||||
BackgroundMode["Peripheral"] = "peripheral";
|
BackgroundMode["Peripheral"] = "peripheral";
|
||||||
})(BackgroundMode = exports.BackgroundMode || (exports.BackgroundMode = {}));
|
})(BackgroundMode = exports.BackgroundMode || (exports.BackgroundMode = {}));
|
||||||
function ensureKey(arr, key) {
|
function ensureKey(arr, key) {
|
||||||
if (!arr.find(mode => mode === key)) {
|
if (!arr.find((mode) => mode === key)) {
|
||||||
arr.push(key);
|
arr.push(key);
|
||||||
}
|
}
|
||||||
return arr;
|
return arr;
|
||||||
}
|
}
|
||||||
const centralKey = 'bluetooth-central';
|
const centralKey = "bluetooth-central";
|
||||||
const peripheralKey = 'bluetooth-peripheral';
|
const peripheralKey = "bluetooth-peripheral";
|
||||||
/**
|
/**
|
||||||
* Append `UIBackgroundModes` to the `Info.plist`.
|
* Append `UIBackgroundModes` to the `Info.plist`.
|
||||||
*/
|
*/
|
||||||
const withBLEBackgroundModes = (c, modes) => {
|
const withBLEBackgroundModes = (c, modes) => {
|
||||||
return config_plugins_1.withInfoPlist(c, config => {
|
return config_plugins_1.withInfoPlist(c, (config) => {
|
||||||
if (!Array.isArray(config.modResults.UIBackgroundModes)) {
|
if (!Array.isArray(config.modResults.UIBackgroundModes)) {
|
||||||
config.modResults.UIBackgroundModes = [];
|
config.modResults.UIBackgroundModes = [];
|
||||||
}
|
}
|
||||||
|
|||||||
-1
@@ -1,7 +1,6 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.withBluetoothPermissions = void 0;
|
exports.withBluetoothPermissions = void 0;
|
||||||
/* eslint-disable flowtype/no-types-missing-file-annotation */
|
|
||||||
const config_plugins_1 = require("@expo/config-plugins");
|
const config_plugins_1 = require("@expo/config-plugins");
|
||||||
const BLUETOOTH_ALWAYS = "Allow $(PRODUCT_NAME) to connect to bluetooth devices";
|
const BLUETOOTH_ALWAYS = "Allow $(PRODUCT_NAME) to connect to bluetooth devices";
|
||||||
const BLUETOOTH_PERIPHERAL_USAGE = "Allow $(PRODUCT_NAME) to connect to bluetooth devices";
|
const BLUETOOTH_PERIPHERAL_USAGE = "Allow $(PRODUCT_NAME) to connect to bluetooth devices";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@config-plugins/react-native-ble-plx",
|
"name": "@config-plugins/react-native-ble-plx",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"description": "Config plugin to auto configure react-native-ble-plx on prebuild",
|
"description": "Config plugin to auto configure react-native-ble-plx on prebuild",
|
||||||
"main": "build/withBLE.js",
|
"main": "build/withBLE.js",
|
||||||
"types": "build/withBLE.d.ts",
|
"types": "build/withBLE.d.ts",
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@expo/config-plugins": "^4.1.0",
|
"@expo/config-plugins": "^4.1.0",
|
||||||
"@expo/config-types": "^44.0.0"
|
"@expo/config-types": "^45.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"expo-module-scripts": "^2.0.0"
|
"expo-module-scripts": "^2.0.0"
|
||||||
|
|||||||
Reference in new issue
Block a user