[ios][crashlytics] add script phases linking config

This commit is contained in:
Salakar
2019-09-19 13:01:08 +01:00
parent a2f0fd6638
commit eb1b5afb13
2 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
/*
* Copyright (c) 2016-present Invertase Limited & Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this library except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module.exports = {
dependency: {
platforms: {
ios: {
scriptPhases: [
{
name: '[RNFB] Crashlytics Configuration',
path: './ios_config.sh',
execution_position: 'after_compile',
},
],
},
},
},
};

View File

@@ -163,6 +163,7 @@
7D57265F10EEF7CD92D7973F /* Copy Detox Framework */,
C8C3C54345A6A1BEDB5A0F51 /* [CP] Copy Pods Resources */,
2DEDEB3AED1121B4052E9EC8 /* [CP-User] [RNFB] Core Configuration */,
EA9445F776F5CEB60B0182F7 /* [CP-User] [RNFB] Crashlytics Configuration */,
);
buildRules = (
);
@@ -341,6 +342,25 @@
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-testing/Pods-testing-resources.sh\"\n";
showEnvVarsInLog = 0;
};
EA9445F776F5CEB60B0182F7 /* [CP-User] [RNFB] Crashlytics Configuration */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = "[CP-User] [RNFB] Crashlytics Configuration";
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "#!/usr/bin/env bash\n#\n# Copyright (c) 2016-present Invertase Limited & Contributors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this library except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\nset -e\n\nif [[ ${PODS_ROOT} ]]; then\n echo \"info: Exec Fabric Run from Pods\"\n ${PODS_ROOT}/Fabric/run\nelse\n echo \"info: Exec Fabric Run from framework\"\n ${PROJECT_DIR}/Fabric.framework/run\nfi\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */