forked from agencyenterprise/react-native-health
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from Ornament-Health/develop
Added a new aggregation type: daily average
- Loading branch information
Showing
15 changed files
with
7,764 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
root: true, | ||
extends: '@react-native-community', | ||
extends: '@react-native', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
module.exports = { | ||
arrowParens: 'avoid', | ||
bracketSameLine: true, | ||
bracketSpacing: false, | ||
jsxBracketSameLine: true, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This `.xcode.env` file is versioned and is used to source the environment | ||
# used when running script phases inside Xcode. | ||
# To customize your local environment, you can create an `.xcode.env.local` | ||
# file that is not versioned. | ||
|
||
# NODE_BINARY variable contains the PATH to the node executable. | ||
# | ||
# Customize the NODE_BINARY variable here. | ||
# For example, to use nvm with brew, add the following line | ||
# . "$(brew --prefix nvm)/nvm.sh" --no-use | ||
export NODE_BINARY=$(command -v node) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,65 @@ | ||
require_relative '../node_modules/react-native/scripts/react_native_pods' | ||
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' | ||
# Resolve react_native_pods.rb with node to allow for hoisting | ||
require Pod::Executable.execute_command('node', ['-p', | ||
'require.resolve( | ||
"react-native/scripts/react_native_pods.rb", | ||
{paths: [process.argv[1]]}, | ||
)', __dir__]).strip | ||
|
||
platform :ios, '13.0' | ||
platform :ios, 14.0 | ||
prepare_react_native_project! | ||
|
||
linkage = ENV['USE_FRAMEWORKS'] | ||
if linkage != nil | ||
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green | ||
use_frameworks! :linkage => linkage.to_sym | ||
end | ||
|
||
target 'example' do | ||
config = use_native_modules! | ||
|
||
use_react_native!(:path => config["reactNativePath"]) | ||
# Flags change depending on the env values. | ||
flags = get_default_flags() | ||
|
||
use_react_native!( | ||
:path => config[:reactNativePath], | ||
# Hermes is now enabled by default. Disable by setting this flag to false. | ||
:hermes_enabled => flags[:hermes_enabled], | ||
:fabric_enabled => flags[:fabric_enabled], | ||
:app_path => "#{Pod::Config.instance.installation_root}/.." | ||
) | ||
|
||
target 'exampleTests' do | ||
inherit! :complete | ||
# Pods for testing | ||
end | ||
|
||
# Enables Flipper. | ||
# | ||
# Note that if you have use_frameworks! enabled, Flipper will not work and | ||
# you should disable these next few lines. | ||
use_flipper!({ 'Flipper-Folly' => '2.5.3', 'Flipper' => '0.87.0', 'Flipper-RSocket' => '1.3.1' }) | ||
post_install do |installer| | ||
flipper_post_install(installer) | ||
installer.pods_project.build_configurations.each do |config| | ||
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" | ||
end | ||
end | ||
end | ||
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202 | ||
# FIXES BUILD ON Apple Silicon M1+ | ||
projects = installer.aggregate_targets | ||
.map{ |t| t.user_project } | ||
.uniq{ |p| p.path } | ||
|
||
target 'example-tvOS' do | ||
# Pods for example-tvOS | ||
# project.pbxproj | ||
projects.each do |project| | ||
project.build_configurations.each do |config| | ||
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64' | ||
end | ||
|
||
target 'example-tvOSTests' do | ||
inherit! :search_paths | ||
# Pods for testing | ||
project.save() | ||
end | ||
|
||
installer.pods_project.targets.each do |target| | ||
target.build_configurations.each do |config| | ||
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64' | ||
end | ||
end | ||
|
||
react_native_post_install( | ||
installer, | ||
config[:reactNativePath], | ||
:mac_catalyst_enabled => false | ||
) | ||
__apply_Xcode_12_5_M1_post_install_workaround(installer) | ||
end | ||
end |
Oops, something went wrong.