我的开发版本中Debug JS Remotely
选项当前设置为true
。我想禁用此功能,但我的模拟器只是放慢速度。
有没有人知道如何禁用Debug JS Remotely
而不点击反应原生菜单onShake中的按钮?也许,通过对我的应用iOS
目录中的值进行硬编码,或者将标记传递给react-native run-ios
?
Here's a link to every known instance of the `isDebuggingRemotely布尔标志我想在反应原生的GitHub中设置为false。
答案 0 :(得分:0)
此代码可能有效:
iOS
db.collection.aggregate([
{ "$facet": {
"array": [
{ "$match": { "type": "L", "lampStatus": "ON" }},
{ "$group": {
"_id": null,
"TotalLights": { "$sum": 1 }
}},
{ "$project": { "_id": 0, "TotalLights": 1 }}
]
}},
{ "$project": {
"TotalLights": {
"$ifNull": [{ "$arrayElemAt": ["$array.TotalLights", 0] }, 0 ]
}
}}
])
Android
apply plugin: 'java'
apply plugin: 'eclipse'
archivesBaseName = 'com.hm.teamcenter.rac'
version = '1.0.0'
def repositoryPath = 'C:/dependent-jars/'
repositories {
flatDir {
dirs repositoryPath
dirs 'libs'
}
}
jar {
baseName = 'com.hm.teamcenter.rac'
from('src/main/java') {
include 'META-INF/**/MANIFEST.MF'
include 'plugin.xml'
include 'com/**/*.properties'
include 'com/**/*.png'
}
manifest {
attributes 'Main-Class': 'com.hm.teamcenter.rac.Activator'
attributes 'Bundle-ManifestVersion': '2'
attributes 'Bundle-Name': 'RAC Plugin'
attributes 'Bundle-SymbolicName': 'com.hm.teamcenter.rac;singleton:=true'
attributes 'Bundle-Version': '1.0.0'
attributes 'Bundle-Activator': 'com.hm.teamcenter.rac.Activator'
attributes 'Bundle-Vendor': 'HM'
attributes 'Require-Bundle': 'org.eclipse.ui,org.eclipse.core.runtime,org.eclipse.ui.forms;bundle-version="3.5.200",...'
attributes 'Bundle-RequiredExecutionEnvironment': 'JavaSE-1.7'
attributes 'Bundle-ActivationPolicy': 'lazy'
attributes 'Export-Package': 'com.hm.teamcenter.rac,com.hm.teamcenter.rac.perspective,...'
attributes 'Bundle-ClassPath': 'com.hm.teamcenter.rac,com.hm.teamcenter.rac.perspective,...'
attributes 'Import-Package': 'list of packages to import'
}
}
dependencies {
compile fileTree(dir: repositoryPath, include: ['*.jar'])
compile fileTree(dir: 'libs/', include: ['*.jar'])
}