@hedia/recommendation-screen 1.0.0 → 1.0.2

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.
Files changed (118) hide show
  1. package/Changelog.md +8 -4
  2. package/README.md +3 -3
  3. package/android/app/BUCK +55 -55
  4. package/android/app/build.gradle +225 -225
  5. package/android/app/build_defs.bzl +19 -19
  6. package/android/app/debug.keystore +0 -0
  7. package/android/app/proguard-rules.pro +10 -10
  8. package/android/app/src/debug/AndroidManifest.xml +8 -8
  9. package/android/app/src/debug/java/com/hediarecommendationscreen/ReactNativeFlipper.java +72 -72
  10. package/android/app/src/main/AndroidManifest.xml +27 -27
  11. package/android/app/src/main/java/com/hediarecommendationscreen/MainActivity.java +15 -15
  12. package/android/app/src/main/java/com/hediarecommendationscreen/MainApplication.java +80 -80
  13. package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  14. package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  15. package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  16. package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  17. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  18. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  19. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  20. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  21. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  22. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  23. package/android/app/src/main/res/values/strings.xml +3 -3
  24. package/android/app/src/main/res/values/styles.xml +9 -9
  25. package/android/build.gradle +38 -38
  26. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  27. package/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  28. package/android/gradle.properties +28 -28
  29. package/android/gradlew +188 -188
  30. package/android/gradlew.bat +0 -0
  31. package/android/settings.gradle +3 -3
  32. package/index.ts +0 -0
  33. package/ios/HediaRecommendationScreen/AppDelegate.h +8 -8
  34. package/ios/HediaRecommendationScreen/AppDelegate.m +58 -58
  35. package/ios/HediaRecommendationScreen/Base.lproj/LaunchScreen.xib +42 -42
  36. package/ios/HediaRecommendationScreen/Images.xcassets/AppIcon.appiconset/Contents.json +37 -37
  37. package/ios/HediaRecommendationScreen/Images.xcassets/Contents.json +6 -6
  38. package/ios/HediaRecommendationScreen/Info.plist +57 -57
  39. package/ios/HediaRecommendationScreen/main.m +9 -9
  40. package/ios/HediaRecommendationScreen-tvOS/Info.plist +53 -53
  41. package/ios/HediaRecommendationScreen-tvOSTests/Info.plist +24 -24
  42. package/ios/HediaRecommendationScreen.xcodeproj/project.pbxproj +807 -807
  43. package/ios/HediaRecommendationScreen.xcodeproj/xcshareddata/xcschemes/HediaRecommendationScreen-tvOS.xcscheme +88 -88
  44. package/ios/HediaRecommendationScreen.xcodeproj/xcshareddata/xcschemes/HediaRecommendationScreen.xcscheme +88 -88
  45. package/ios/HediaRecommendationScreenTests/HediaRecommendationScreenTests.m +65 -65
  46. package/ios/HediaRecommendationScreenTests/Info.plist +24 -24
  47. package/ios/Podfile +104 -104
  48. package/package.json +8 -12
  49. package/src/RecommendationScreen.tsx +3 -4
  50. package/src/assets/happy.png +0 -0
  51. package/src/assets/happy_active.png +0 -0
  52. package/src/assets/neutral.png +0 -0
  53. package/src/assets/neutral_active.png +0 -0
  54. package/src/assets/sad.png +0 -0
  55. package/src/assets/sad_active.png +0 -0
  56. package/src/assets/semi_happy.png +0 -0
  57. package/src/assets/semi_happy_active.png +0 -0
  58. package/src/assets/semi_sad.png +0 -0
  59. package/src/assets/semi_sad_active.png +0 -0
  60. package/src/components/Emotion.tsx +1 -2
  61. package/src/components/Header.tsx +1 -2
  62. package/src/components/Icon.js +41 -41
  63. package/src/components/InfoBars.tsx +0 -0
  64. package/src/components/InvisibleNumberInput.tsx +0 -0
  65. package/src/components/MoodIcon.tsx +0 -0
  66. package/src/components/RecentInsulin.tsx +4 -5
  67. package/src/components/RecommendedCarbs.tsx +8 -9
  68. package/src/components/RecommendedInsulin.tsx +2 -3
  69. package/src/components/Remeasure.tsx +3 -4
  70. package/src/components/TransferToLogbook.tsx +2 -3
  71. package/src/locale/da/messages.js +1 -1
  72. package/src/locale/da/messages.po +31 -29
  73. package/src/locale/en/messages.js +1 -1
  74. package/src/locale/en/messages.po +32 -30
  75. package/src/locale/i18nUtils.ts +0 -0
  76. package/src/types/enum.ts +0 -0
  77. package/src/types/types.ts +0 -0
  78. package/src/utils/Constants.ts +0 -0
  79. package/src/utils/RecommendationError.ts +4 -6
  80. package/src/utils/Utils.ts +0 -0
  81. package/.prettierignore +0 -2
  82. package/index-git.sh +0 -5
  83. package/index.d.ts +0 -5
  84. package/index.js +0 -16
  85. package/src/RecommendationScreen.d.ts +0 -42
  86. package/src/RecommendationScreen.js +0 -142
  87. package/src/components/Emotion.d.ts +0 -14
  88. package/src/components/Emotion.js +0 -55
  89. package/src/components/Header.d.ts +0 -52
  90. package/src/components/Header.js +0 -83
  91. package/src/components/InfoBars.d.ts +0 -67
  92. package/src/components/InfoBars.js +0 -89
  93. package/src/components/InvisibleNumberInput.d.ts +0 -24
  94. package/src/components/InvisibleNumberInput.js +0 -64
  95. package/src/components/MoodIcon.d.ts +0 -14
  96. package/src/components/MoodIcon.js +0 -53
  97. package/src/components/RecentInsulin.d.ts +0 -9
  98. package/src/components/RecentInsulin.js +0 -91
  99. package/src/components/RecommendedCarbs.d.ts +0 -30
  100. package/src/components/RecommendedCarbs.js +0 -193
  101. package/src/components/RecommendedInsulin.d.ts +0 -22
  102. package/src/components/RecommendedInsulin.js +0 -110
  103. package/src/components/Remeasure.d.ts +0 -13
  104. package/src/components/Remeasure.js +0 -89
  105. package/src/components/TransferToLogbook.d.ts +0 -14
  106. package/src/components/TransferToLogbook.js +0 -81
  107. package/src/locale/i18nUtils.d.ts +0 -5
  108. package/src/locale/i18nUtils.js +0 -22
  109. package/src/types/enum.d.ts +0 -26
  110. package/src/types/enum.js +0 -34
  111. package/src/types/types.d.ts +0 -21
  112. package/src/types/types.js +0 -2
  113. package/src/utils/Constants.d.ts +0 -3
  114. package/src/utils/Constants.js +0 -6
  115. package/src/utils/RecommendationError.d.ts +0 -9
  116. package/src/utils/RecommendationError.js +0 -17
  117. package/src/utils/Utils.d.ts +0 -5
  118. package/src/utils/Utils.js +0 -24
@@ -1,38 +1,38 @@
1
- {
2
- "images" : [
3
- {
4
- "idiom" : "iphone",
5
- "size" : "29x29",
6
- "scale" : "2x"
7
- },
8
- {
9
- "idiom" : "iphone",
10
- "size" : "29x29",
11
- "scale" : "3x"
12
- },
13
- {
14
- "idiom" : "iphone",
15
- "size" : "40x40",
16
- "scale" : "2x"
17
- },
18
- {
19
- "idiom" : "iphone",
20
- "size" : "40x40",
21
- "scale" : "3x"
22
- },
23
- {
24
- "idiom" : "iphone",
25
- "size" : "60x60",
26
- "scale" : "2x"
27
- },
28
- {
29
- "idiom" : "iphone",
30
- "size" : "60x60",
31
- "scale" : "3x"
32
- }
33
- ],
34
- "info" : {
35
- "version" : 1,
36
- "author" : "xcode"
37
- }
1
+ {
2
+ "images" : [
3
+ {
4
+ "idiom" : "iphone",
5
+ "size" : "29x29",
6
+ "scale" : "2x"
7
+ },
8
+ {
9
+ "idiom" : "iphone",
10
+ "size" : "29x29",
11
+ "scale" : "3x"
12
+ },
13
+ {
14
+ "idiom" : "iphone",
15
+ "size" : "40x40",
16
+ "scale" : "2x"
17
+ },
18
+ {
19
+ "idiom" : "iphone",
20
+ "size" : "40x40",
21
+ "scale" : "3x"
22
+ },
23
+ {
24
+ "idiom" : "iphone",
25
+ "size" : "60x60",
26
+ "scale" : "2x"
27
+ },
28
+ {
29
+ "idiom" : "iphone",
30
+ "size" : "60x60",
31
+ "scale" : "3x"
32
+ }
33
+ ],
34
+ "info" : {
35
+ "version" : 1,
36
+ "author" : "xcode"
37
+ }
38
38
  }
@@ -1,6 +1,6 @@
1
- {
2
- "info" : {
3
- "version" : 1,
4
- "author" : "xcode"
5
- }
6
- }
1
+ {
2
+ "info" : {
3
+ "version" : 1,
4
+ "author" : "xcode"
5
+ }
6
+ }
@@ -1,57 +1,57 @@
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>CFBundleDevelopmentRegion</key>
6
- <string>en</string>
7
- <key>CFBundleDisplayName</key>
8
- <string>HediaRecommendationScreen</string>
9
- <key>CFBundleExecutable</key>
10
- <string>$(EXECUTABLE_NAME)</string>
11
- <key>CFBundleIdentifier</key>
12
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13
- <key>CFBundleInfoDictionaryVersion</key>
14
- <string>6.0</string>
15
- <key>CFBundleName</key>
16
- <string>$(PRODUCT_NAME)</string>
17
- <key>CFBundlePackageType</key>
18
- <string>APPL</string>
19
- <key>CFBundleShortVersionString</key>
20
- <string>1.0</string>
21
- <key>CFBundleSignature</key>
22
- <string>????</string>
23
- <key>CFBundleVersion</key>
24
- <string>1</string>
25
- <key>LSRequiresIPhoneOS</key>
26
- <true/>
27
- <key>NSAppTransportSecurity</key>
28
- <dict>
29
- <key>NSAllowsArbitraryLoads</key>
30
- <true/>
31
- <key>NSExceptionDomains</key>
32
- <dict>
33
- <key>localhost</key>
34
- <dict>
35
- <key>NSExceptionAllowsInsecureHTTPLoads</key>
36
- <true/>
37
- </dict>
38
- </dict>
39
- </dict>
40
- <key>NSLocationWhenInUseUsageDescription</key>
41
- <string></string>
42
- <key>UILaunchStoryboardName</key>
43
- <string>LaunchScreen</string>
44
- <key>UIRequiredDeviceCapabilities</key>
45
- <array>
46
- <string>armv7</string>
47
- </array>
48
- <key>UISupportedInterfaceOrientations</key>
49
- <array>
50
- <string>UIInterfaceOrientationPortrait</string>
51
- <string>UIInterfaceOrientationLandscapeLeft</string>
52
- <string>UIInterfaceOrientationLandscapeRight</string>
53
- </array>
54
- <key>UIViewControllerBasedStatusBarAppearance</key>
55
- <false/>
56
- </dict>
57
- </plist>
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>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleDisplayName</key>
8
+ <string>HediaRecommendationScreen</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>$(EXECUTABLE_NAME)</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
+ <string>6.0</string>
15
+ <key>CFBundleName</key>
16
+ <string>$(PRODUCT_NAME)</string>
17
+ <key>CFBundlePackageType</key>
18
+ <string>APPL</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>1.0</string>
21
+ <key>CFBundleSignature</key>
22
+ <string>????</string>
23
+ <key>CFBundleVersion</key>
24
+ <string>1</string>
25
+ <key>LSRequiresIPhoneOS</key>
26
+ <true/>
27
+ <key>NSAppTransportSecurity</key>
28
+ <dict>
29
+ <key>NSAllowsArbitraryLoads</key>
30
+ <true/>
31
+ <key>NSExceptionDomains</key>
32
+ <dict>
33
+ <key>localhost</key>
34
+ <dict>
35
+ <key>NSExceptionAllowsInsecureHTTPLoads</key>
36
+ <true/>
37
+ </dict>
38
+ </dict>
39
+ </dict>
40
+ <key>NSLocationWhenInUseUsageDescription</key>
41
+ <string></string>
42
+ <key>UILaunchStoryboardName</key>
43
+ <string>LaunchScreen</string>
44
+ <key>UIRequiredDeviceCapabilities</key>
45
+ <array>
46
+ <string>armv7</string>
47
+ </array>
48
+ <key>UISupportedInterfaceOrientations</key>
49
+ <array>
50
+ <string>UIInterfaceOrientationPortrait</string>
51
+ <string>UIInterfaceOrientationLandscapeLeft</string>
52
+ <string>UIInterfaceOrientationLandscapeRight</string>
53
+ </array>
54
+ <key>UIViewControllerBasedStatusBarAppearance</key>
55
+ <false/>
56
+ </dict>
57
+ </plist>
@@ -1,9 +1,9 @@
1
- #import <UIKit/UIKit.h>
2
-
3
- #import "AppDelegate.h"
4
-
5
- int main(int argc, char * argv[]) {
6
- @autoreleasepool {
7
- return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8
- }
9
- }
1
+ #import <UIKit/UIKit.h>
2
+
3
+ #import "AppDelegate.h"
4
+
5
+ int main(int argc, char * argv[]) {
6
+ @autoreleasepool {
7
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8
+ }
9
+ }
@@ -1,53 +1,53 @@
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>CFBundleDevelopmentRegion</key>
6
- <string>en</string>
7
- <key>CFBundleExecutable</key>
8
- <string>$(EXECUTABLE_NAME)</string>
9
- <key>CFBundleIdentifier</key>
10
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
- <key>CFBundleInfoDictionaryVersion</key>
12
- <string>6.0</string>
13
- <key>CFBundleName</key>
14
- <string>$(PRODUCT_NAME)</string>
15
- <key>CFBundlePackageType</key>
16
- <string>APPL</string>
17
- <key>CFBundleShortVersionString</key>
18
- <string>1.0</string>
19
- <key>CFBundleSignature</key>
20
- <string>????</string>
21
- <key>CFBundleVersion</key>
22
- <string>1</string>
23
- <key>LSRequiresIPhoneOS</key>
24
- <true/>
25
- <key>NSAppTransportSecurity</key>
26
- <dict>
27
- <key>NSExceptionDomains</key>
28
- <dict>
29
- <key>localhost</key>
30
- <dict>
31
- <key>NSExceptionAllowsInsecureHTTPLoads</key>
32
- <true/>
33
- </dict>
34
- </dict>
35
- </dict>
36
- <key>NSLocationWhenInUseUsageDescription</key>
37
- <string></string>
38
- <key>UILaunchStoryboardName</key>
39
- <string>LaunchScreen</string>
40
- <key>UIRequiredDeviceCapabilities</key>
41
- <array>
42
- <string>armv7</string>
43
- </array>
44
- <key>UISupportedInterfaceOrientations</key>
45
- <array>
46
- <string>UIInterfaceOrientationPortrait</string>
47
- <string>UIInterfaceOrientationLandscapeLeft</string>
48
- <string>UIInterfaceOrientationLandscapeRight</string>
49
- </array>
50
- <key>UIViewControllerBasedStatusBarAppearance</key>
51
- <false/>
52
- </dict>
53
- </plist>
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>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>$(EXECUTABLE_NAME)</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>APPL</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0</string>
19
+ <key>CFBundleSignature</key>
20
+ <string>????</string>
21
+ <key>CFBundleVersion</key>
22
+ <string>1</string>
23
+ <key>LSRequiresIPhoneOS</key>
24
+ <true/>
25
+ <key>NSAppTransportSecurity</key>
26
+ <dict>
27
+ <key>NSExceptionDomains</key>
28
+ <dict>
29
+ <key>localhost</key>
30
+ <dict>
31
+ <key>NSExceptionAllowsInsecureHTTPLoads</key>
32
+ <true/>
33
+ </dict>
34
+ </dict>
35
+ </dict>
36
+ <key>NSLocationWhenInUseUsageDescription</key>
37
+ <string></string>
38
+ <key>UILaunchStoryboardName</key>
39
+ <string>LaunchScreen</string>
40
+ <key>UIRequiredDeviceCapabilities</key>
41
+ <array>
42
+ <string>armv7</string>
43
+ </array>
44
+ <key>UISupportedInterfaceOrientations</key>
45
+ <array>
46
+ <string>UIInterfaceOrientationPortrait</string>
47
+ <string>UIInterfaceOrientationLandscapeLeft</string>
48
+ <string>UIInterfaceOrientationLandscapeRight</string>
49
+ </array>
50
+ <key>UIViewControllerBasedStatusBarAppearance</key>
51
+ <false/>
52
+ </dict>
53
+ </plist>
@@ -1,24 +1,24 @@
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>CFBundleDevelopmentRegion</key>
6
- <string>en</string>
7
- <key>CFBundleExecutable</key>
8
- <string>$(EXECUTABLE_NAME)</string>
9
- <key>CFBundleIdentifier</key>
10
- <string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string>
11
- <key>CFBundleInfoDictionaryVersion</key>
12
- <string>6.0</string>
13
- <key>CFBundleName</key>
14
- <string>$(PRODUCT_NAME)</string>
15
- <key>CFBundlePackageType</key>
16
- <string>BNDL</string>
17
- <key>CFBundleShortVersionString</key>
18
- <string>1.0</string>
19
- <key>CFBundleSignature</key>
20
- <string>????</string>
21
- <key>CFBundleVersion</key>
22
- <string>1</string>
23
- </dict>
24
- </plist>
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>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>$(EXECUTABLE_NAME)</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>BNDL</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0</string>
19
+ <key>CFBundleSignature</key>
20
+ <string>????</string>
21
+ <key>CFBundleVersion</key>
22
+ <string>1</string>
23
+ </dict>
24
+ </plist>