@hedia/recommendation-screen 2.1.34-alpha.9 → 2.1.34
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.
- package/{src → dist/src}/RecommendationScreen.d.ts +3 -3
- package/{src → dist/src}/RecommendationScreen.js +6 -6
- package/{src → dist/src}/locale/da/messages.po +92 -92
- package/{src → dist/src}/locale/de/messages.po +92 -92
- package/{src → dist/src}/locale/en/messages.po +92 -92
- package/{src → dist/src}/locale/es/messages.js +1 -1
- package/{src → dist/src}/locale/es/messages.po +92 -92
- package/{src → dist/src}/locale/fr/messages.po +92 -92
- package/{src → dist/src}/locale/it/messages.po +92 -92
- package/package.json +22 -21
- package/.flowconfig +0 -65
- package/.github/pull_request_template.md +0 -6
- package/.github/workflows/ci.yaml +0 -17
- package/.github/workflows/publish-release-package.yaml +0 -17
- package/.github/workflows/validate-pr-title.yaml +0 -20
- package/.linguirc +0 -6
- package/.npmpackagejsonlintrc.json +0 -12
- package/.prettierignore +0 -2
- package/.prettierrc +0 -25
- package/Changelog.md +0 -9
- package/android/app/BUCK +0 -55
- package/android/app/build.gradle +0 -228
- package/android/app/build_defs.bzl +0 -19
- package/android/app/debug.keystore +0 -0
- package/android/app/proguard-rules.pro +0 -10
- package/android/app/src/debug/AndroidManifest.xml +0 -13
- package/android/app/src/debug/java/com/hediarecommendationscreen/ReactNativeFlipper.java +0 -72
- package/android/app/src/main/AndroidManifest.xml +0 -25
- package/android/app/src/main/assets/fonts/AntDesign.ttf +0 -0
- package/android/app/src/main/assets/fonts/Entypo.ttf +0 -0
- package/android/app/src/main/assets/fonts/EvilIcons.ttf +0 -0
- package/android/app/src/main/assets/fonts/Feather.ttf +0 -0
- package/android/app/src/main/assets/fonts/FontAwesome.ttf +0 -0
- package/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf +0 -0
- package/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf +0 -0
- package/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf +0 -0
- package/android/app/src/main/assets/fonts/Fontisto.ttf +0 -0
- package/android/app/src/main/assets/fonts/Foundation.ttf +0 -0
- package/android/app/src/main/assets/fonts/Ionicons.ttf +0 -0
- package/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf +0 -0
- package/android/app/src/main/assets/fonts/MaterialIcons.ttf +0 -0
- package/android/app/src/main/assets/fonts/Octicons.ttf +0 -0
- package/android/app/src/main/assets/fonts/Roboto-Black.ttf +0 -0
- package/android/app/src/main/assets/fonts/Roboto-BlackItalic.ttf +0 -0
- package/android/app/src/main/assets/fonts/Roboto-Bold.ttf +0 -0
- package/android/app/src/main/assets/fonts/Roboto-BoldItalic.ttf +0 -0
- package/android/app/src/main/assets/fonts/Roboto-Italic.ttf +0 -0
- package/android/app/src/main/assets/fonts/Roboto-Light.ttf +0 -0
- package/android/app/src/main/assets/fonts/Roboto-LightItalic.ttf +0 -0
- package/android/app/src/main/assets/fonts/Roboto-Medium.ttf +0 -0
- package/android/app/src/main/assets/fonts/Roboto-MediumItalic.ttf +0 -0
- package/android/app/src/main/assets/fonts/Roboto-Regular.ttf +0 -0
- package/android/app/src/main/assets/fonts/Roboto-Thin.ttf +0 -0
- package/android/app/src/main/assets/fonts/Roboto-ThinItalic.ttf +0 -0
- package/android/app/src/main/assets/fonts/SimpleLineIcons.ttf +0 -0
- package/android/app/src/main/assets/fonts/Zocial.ttf +0 -0
- package/android/app/src/main/java/com/hediarecommendationscreen/MainActivity.java +0 -15
- package/android/app/src/main/java/com/hediarecommendationscreen/MainApplication.java +0 -80
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/values/color.xml +0 -3
- package/android/app/src/main/res/values/strings.xml +0 -3
- package/android/app/src/main/res/values/styles.xml +0 -11
- package/android/build.gradle +0 -38
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/android/gradle.properties +0 -28
- package/android/gradlew +0 -185
- package/android/gradlew.bat +0 -89
- package/android/settings.gradle +0 -3
- package/assets/fonts/Roboto/LICENSE.txt +0 -202
- package/assets/fonts/Roboto/Roboto-Black.ttf +0 -0
- package/assets/fonts/Roboto/Roboto-BlackItalic.ttf +0 -0
- package/assets/fonts/Roboto/Roboto-Bold.ttf +0 -0
- package/assets/fonts/Roboto/Roboto-BoldItalic.ttf +0 -0
- package/assets/fonts/Roboto/Roboto-Italic.ttf +0 -0
- package/assets/fonts/Roboto/Roboto-Light.ttf +0 -0
- package/assets/fonts/Roboto/Roboto-LightItalic.ttf +0 -0
- package/assets/fonts/Roboto/Roboto-Medium.ttf +0 -0
- package/assets/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
- package/assets/fonts/Roboto/Roboto-Regular.ttf +0 -0
- package/assets/fonts/Roboto/Roboto-Thin.ttf +0 -0
- package/assets/fonts/Roboto/Roboto-ThinItalic.ttf +0 -0
- package/babel.config.js +0 -18
- package/ignore-git.sh +0 -46
- package/ignore-publish.sh +0 -33
- package/index-git.sh +0 -5
- package/ios/HediaRecommendationScreen/AppDelegate.h +0 -8
- package/ios/HediaRecommendationScreen/AppDelegate.m +0 -61
- package/ios/HediaRecommendationScreen/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
- package/ios/HediaRecommendationScreen/Images.xcassets/Contents.json +0 -6
- package/ios/HediaRecommendationScreen/Info.plist +0 -90
- package/ios/HediaRecommendationScreen/LaunchScreen.storyboard +0 -47
- package/ios/HediaRecommendationScreen/main.m +0 -9
- package/ios/HediaRecommendationScreen.xcodeproj/project.pbxproj +0 -778
- package/ios/HediaRecommendationScreen.xcodeproj/xcshareddata/xcschemes/HediaRecommendationScreen-tvOS.xcscheme +0 -88
- package/ios/HediaRecommendationScreen.xcodeproj/xcshareddata/xcschemes/HediaRecommendationScreen.xcscheme +0 -88
- package/ios/HediaRecommendationScreen.xcworkspace/contents.xcworkspacedata +0 -10
- package/ios/HediaRecommendationScreen.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/HediaRecommendationScreenTests/HediaRecommendationScreenTests.m +0 -65
- package/ios/HediaRecommendationScreenTests/Info.plist +0 -24
- package/ios/Podfile +0 -32
- package/ios/Podfile.lock +0 -544
- package/jest.config.js +0 -197
- package/jest.mock.js +0 -1
- package/metro.config.js +0 -17
- package/react-native.config.js +0 -7
- package/src/__tests__/RecommendationScreen.test.d.ts +0 -1
- package/src/__tests__/RecommendationScreen.test.js +0 -965
- package/src/__tests__/RecommendationUtils.test.d.ts +0 -1
- package/src/__tests__/RecommendationUtils.test.js +0 -216
- package/src/__tests__/Translate.test.d.ts +0 -1
- package/src/__tests__/Translate.test.js +0 -27
- package/src/__tests__/Utils.test.d.ts +0 -1
- package/src/__tests__/Utils.test.js +0 -66
- package/src/__tests__/Validations.test.d.ts +0 -1
- package/src/__tests__/Validations.test.js +0 -465
- package/src/__tests__/components/Activity.test.d.ts +0 -1
- package/src/__tests__/components/Activity.test.js +0 -86
- package/src/__tests__/components/Emotion.test.d.ts +0 -1
- package/src/__tests__/components/Emotion.test.js +0 -70
- package/src/__tests__/components/Header.test.d.ts +0 -1
- package/src/__tests__/components/Header.test.js +0 -36
- package/src/__tests__/components/InfoBars.test.d.ts +0 -1
- package/src/__tests__/components/InfoBars.test.js +0 -130
- package/src/__tests__/components/InvisibleNumberInput.test.d.ts +0 -1
- package/src/__tests__/components/InvisibleNumberInput.test.js +0 -160
- package/src/__tests__/components/LimitationMessage.test.d.ts +0 -1
- package/src/__tests__/components/LimitationMessage.test.js +0 -47
- package/src/__tests__/components/MoodIcon.test.d.ts +0 -1
- package/src/__tests__/components/MoodIcon.test.js +0 -30
- package/src/__tests__/components/RecommendationModal.test.d.ts +0 -1
- package/src/__tests__/components/RecommendationModal.test.js +0 -98
- package/src/__tests__/components/RecommendedCarbs.test.d.ts +0 -1
- package/src/__tests__/components/RecommendedCarbs.test.js +0 -120
- package/src/__tests__/components/RecommendedInsulin.test.d.ts +0 -1
- package/src/__tests__/components/RecommendedInsulin.test.js +0 -154
- package/src/__tests__/components/Remeasure.test.d.ts +0 -1
- package/src/__tests__/components/Remeasure.test.js +0 -78
- package/src/__tests__/components/TransferToLogbook.test.d.ts +0 -1
- package/src/__tests__/components/TransferToLogbook.test.js +0 -30
- package/src/__tests__/components/TwoOptionModal.test.d.ts +0 -1
- package/src/__tests__/components/TwoOptionModal.test.js +0 -65
- package/src/__tests__/utils.d.ts +0 -16
- package/src/__tests__/utils.js +0 -126
- package/tsconfig.json +0 -72
- package/tslint.json +0 -193
- package/typedoc.json +0 -13
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{src → dist/src}/assets/activity/Cyclist.png +0 -0
- /package/{src → dist/src}/assets/activity/Other.png +0 -0
- /package/{src → dist/src}/assets/activity/Runner.png +0 -0
- /package/{src → dist/src}/assets/activity/Swimmer.png +0 -0
- /package/{src → dist/src}/assets/activity/Walk.png +0 -0
- /package/{src → dist/src}/assets/mood/happy.png +0 -0
- /package/{src → dist/src}/assets/mood/happy_active.png +0 -0
- /package/{src → dist/src}/assets/mood/neutral.png +0 -0
- /package/{src → dist/src}/assets/mood/neutral_active.png +0 -0
- /package/{src → dist/src}/assets/mood/sad.png +0 -0
- /package/{src → dist/src}/assets/mood/sad_active.png +0 -0
- /package/{src → dist/src}/assets/mood/semi_happy.png +0 -0
- /package/{src → dist/src}/assets/mood/semi_happy_active.png +0 -0
- /package/{src → dist/src}/assets/mood/semi_sad.png +0 -0
- /package/{src → dist/src}/assets/mood/semi_sad_active.png +0 -0
- /package/{src → dist/src}/components/Header.d.ts +0 -0
- /package/{src → dist/src}/components/Header.js +0 -0
- /package/{src → dist/src}/components/Icon.d.ts +0 -0
- /package/{src → dist/src}/components/Icon.js +0 -0
- /package/{src → dist/src}/components/InfoBars.d.ts +0 -0
- /package/{src → dist/src}/components/InfoBars.js +0 -0
- /package/{src → dist/src}/components/InvisibleNumberInput.d.ts +0 -0
- /package/{src → dist/src}/components/InvisibleNumberInput.js +0 -0
- /package/{src → dist/src}/components/LimitationMessage.d.ts +0 -0
- /package/{src → dist/src}/components/LimitationMessage.js +0 -0
- /package/{src → dist/src}/components/LineSeparator.d.ts +0 -0
- /package/{src → dist/src}/components/LineSeparator.js +0 -0
- /package/{src → dist/src}/components/RecentInsulin.d.ts +0 -0
- /package/{src → dist/src}/components/RecentInsulin.js +0 -0
- /package/{src → dist/src}/components/RecommendationModal.d.ts +0 -0
- /package/{src → dist/src}/components/RecommendationModal.js +0 -0
- /package/{src → dist/src}/components/RecommendedCarbs.d.ts +0 -0
- /package/{src → dist/src}/components/RecommendedCarbs.js +0 -0
- /package/{src → dist/src}/components/RecommendedInsulin.d.ts +0 -0
- /package/{src → dist/src}/components/RecommendedInsulin.js +0 -0
- /package/{src → dist/src}/components/Remeasure.d.ts +0 -0
- /package/{src → dist/src}/components/Remeasure.js +0 -0
- /package/{src → dist/src}/components/TransferToLogbook.d.ts +0 -0
- /package/{src → dist/src}/components/TransferToLogbook.js +0 -0
- /package/{src → dist/src}/components/TwoOptionModal.d.ts +0 -0
- /package/{src → dist/src}/components/TwoOptionModal.js +0 -0
- /package/{src → dist/src}/components/activity/Activity.d.ts +0 -0
- /package/{src → dist/src}/components/activity/Activity.js +0 -0
- /package/{src → dist/src}/components/activity/ActivityIcon.d.ts +0 -0
- /package/{src → dist/src}/components/activity/ActivityIcon.js +0 -0
- /package/{src → dist/src}/components/activity/ActivityIntensity.d.ts +0 -0
- /package/{src → dist/src}/components/activity/ActivityIntensity.js +0 -0
- /package/{src → dist/src}/components/mood/Emotion.d.ts +0 -0
- /package/{src → dist/src}/components/mood/Emotion.js +0 -0
- /package/{src → dist/src}/components/mood/MoodIcon.d.ts +0 -0
- /package/{src → dist/src}/components/mood/MoodIcon.js +0 -0
- /package/{src → dist/src}/locale/da/messages.js +0 -0
- /package/{src → dist/src}/locale/de/messages.js +0 -0
- /package/{src → dist/src}/locale/en/messages.js +0 -0
- /package/{src → dist/src}/locale/fr/messages.js +0 -0
- /package/{src → dist/src}/locale/i18nUtils.d.ts +0 -0
- /package/{src → dist/src}/locale/i18nUtils.js +0 -0
- /package/{src → dist/src}/locale/it/messages.js +0 -0
- /package/{src → dist/src}/types/enum.d.ts +0 -0
- /package/{src → dist/src}/types/enum.js +0 -0
- /package/{src → dist/src}/types/types.d.ts +0 -0
- /package/{src → dist/src}/types/types.js +0 -0
- /package/{src → dist/src}/utils/AttentionMessages.d.ts +0 -0
- /package/{src → dist/src}/utils/AttentionMessages.js +0 -0
- /package/{src → dist/src}/utils/Constants.d.ts +0 -0
- /package/{src → dist/src}/utils/Constants.js +0 -0
- /package/{src → dist/src}/utils/RecommendationError.d.ts +0 -0
- /package/{src → dist/src}/utils/RecommendationError.js +0 -0
- /package/{src → dist/src}/utils/RecommendationUtils.d.ts +0 -0
- /package/{src → dist/src}/utils/RecommendationUtils.js +0 -0
- /package/{src → dist/src}/utils/Translations.d.ts +0 -0
- /package/{src → dist/src}/utils/Translations.js +0 -0
- /package/{src → dist/src}/utils/Utils.d.ts +0 -0
- /package/{src → dist/src}/utils/Utils.js +0 -0
- /package/{src → dist/src}/utils/Validations.d.ts +0 -0
- /package/{src → dist/src}/utils/Validations.js +0 -0
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Scheme
|
|
3
|
-
LastUpgradeVersion = "1130"
|
|
4
|
-
version = "1.3">
|
|
5
|
-
<BuildAction
|
|
6
|
-
parallelizeBuildables = "YES"
|
|
7
|
-
buildImplicitDependencies = "YES">
|
|
8
|
-
<BuildActionEntries>
|
|
9
|
-
<BuildActionEntry
|
|
10
|
-
buildForTesting = "YES"
|
|
11
|
-
buildForRunning = "YES"
|
|
12
|
-
buildForProfiling = "YES"
|
|
13
|
-
buildForArchiving = "YES"
|
|
14
|
-
buildForAnalyzing = "YES">
|
|
15
|
-
<BuildableReference
|
|
16
|
-
BuildableIdentifier = "primary"
|
|
17
|
-
BlueprintIdentifier = "2D02E47A1E0B4A5D006451C7"
|
|
18
|
-
BuildableName = "HediaRecommendationScreen-tvOS.app"
|
|
19
|
-
BlueprintName = "HediaRecommendationScreen-tvOS"
|
|
20
|
-
ReferencedContainer = "container:HediaRecommendationScreen.xcodeproj">
|
|
21
|
-
</BuildableReference>
|
|
22
|
-
</BuildActionEntry>
|
|
23
|
-
</BuildActionEntries>
|
|
24
|
-
</BuildAction>
|
|
25
|
-
<TestAction
|
|
26
|
-
buildConfiguration = "Debug"
|
|
27
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
28
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
29
|
-
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
30
|
-
<Testables>
|
|
31
|
-
<TestableReference
|
|
32
|
-
skipped = "NO">
|
|
33
|
-
<BuildableReference
|
|
34
|
-
BuildableIdentifier = "primary"
|
|
35
|
-
BlueprintIdentifier = "2D02E48F1E0B4A5D006451C7"
|
|
36
|
-
BuildableName = "HediaRecommendationScreen-tvOSTests.xctest"
|
|
37
|
-
BlueprintName = "HediaRecommendationScreen-tvOSTests"
|
|
38
|
-
ReferencedContainer = "container:HediaRecommendationScreen.xcodeproj">
|
|
39
|
-
</BuildableReference>
|
|
40
|
-
</TestableReference>
|
|
41
|
-
</Testables>
|
|
42
|
-
</TestAction>
|
|
43
|
-
<LaunchAction
|
|
44
|
-
buildConfiguration = "Debug"
|
|
45
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
46
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
47
|
-
launchStyle = "0"
|
|
48
|
-
useCustomWorkingDirectory = "NO"
|
|
49
|
-
ignoresPersistentStateOnLaunch = "NO"
|
|
50
|
-
debugDocumentVersioning = "YES"
|
|
51
|
-
debugServiceExtension = "internal"
|
|
52
|
-
allowLocationSimulation = "YES">
|
|
53
|
-
<BuildableProductRunnable
|
|
54
|
-
runnableDebuggingMode = "0">
|
|
55
|
-
<BuildableReference
|
|
56
|
-
BuildableIdentifier = "primary"
|
|
57
|
-
BlueprintIdentifier = "2D02E47A1E0B4A5D006451C7"
|
|
58
|
-
BuildableName = "HediaRecommendationScreen-tvOS.app"
|
|
59
|
-
BlueprintName = "HediaRecommendationScreen-tvOS"
|
|
60
|
-
ReferencedContainer = "container:HediaRecommendationScreen.xcodeproj">
|
|
61
|
-
</BuildableReference>
|
|
62
|
-
</BuildableProductRunnable>
|
|
63
|
-
</LaunchAction>
|
|
64
|
-
<ProfileAction
|
|
65
|
-
buildConfiguration = "Release"
|
|
66
|
-
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
67
|
-
savedToolIdentifier = ""
|
|
68
|
-
useCustomWorkingDirectory = "NO"
|
|
69
|
-
debugDocumentVersioning = "YES">
|
|
70
|
-
<BuildableProductRunnable
|
|
71
|
-
runnableDebuggingMode = "0">
|
|
72
|
-
<BuildableReference
|
|
73
|
-
BuildableIdentifier = "primary"
|
|
74
|
-
BlueprintIdentifier = "2D02E47A1E0B4A5D006451C7"
|
|
75
|
-
BuildableName = "HediaRecommendationScreen-tvOS.app"
|
|
76
|
-
BlueprintName = "HediaRecommendationScreen-tvOS"
|
|
77
|
-
ReferencedContainer = "container:HediaRecommendationScreen.xcodeproj">
|
|
78
|
-
</BuildableReference>
|
|
79
|
-
</BuildableProductRunnable>
|
|
80
|
-
</ProfileAction>
|
|
81
|
-
<AnalyzeAction
|
|
82
|
-
buildConfiguration = "Debug">
|
|
83
|
-
</AnalyzeAction>
|
|
84
|
-
<ArchiveAction
|
|
85
|
-
buildConfiguration = "Release"
|
|
86
|
-
revealArchiveInOrganizer = "YES">
|
|
87
|
-
</ArchiveAction>
|
|
88
|
-
</Scheme>
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Scheme
|
|
3
|
-
LastUpgradeVersion = "1210"
|
|
4
|
-
version = "1.3">
|
|
5
|
-
<BuildAction
|
|
6
|
-
parallelizeBuildables = "YES"
|
|
7
|
-
buildImplicitDependencies = "YES">
|
|
8
|
-
<BuildActionEntries>
|
|
9
|
-
<BuildActionEntry
|
|
10
|
-
buildForTesting = "YES"
|
|
11
|
-
buildForRunning = "YES"
|
|
12
|
-
buildForProfiling = "YES"
|
|
13
|
-
buildForArchiving = "YES"
|
|
14
|
-
buildForAnalyzing = "YES">
|
|
15
|
-
<BuildableReference
|
|
16
|
-
BuildableIdentifier = "primary"
|
|
17
|
-
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
|
18
|
-
BuildableName = "HediaRecommendationScreen.app"
|
|
19
|
-
BlueprintName = "HediaRecommendationScreen"
|
|
20
|
-
ReferencedContainer = "container:HediaRecommendationScreen.xcodeproj">
|
|
21
|
-
</BuildableReference>
|
|
22
|
-
</BuildActionEntry>
|
|
23
|
-
</BuildActionEntries>
|
|
24
|
-
</BuildAction>
|
|
25
|
-
<TestAction
|
|
26
|
-
buildConfiguration = "Debug"
|
|
27
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
28
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
29
|
-
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
30
|
-
<Testables>
|
|
31
|
-
<TestableReference
|
|
32
|
-
skipped = "NO">
|
|
33
|
-
<BuildableReference
|
|
34
|
-
BuildableIdentifier = "primary"
|
|
35
|
-
BlueprintIdentifier = "00E356ED1AD99517003FC87E"
|
|
36
|
-
BuildableName = "HediaRecommendationScreenTests.xctest"
|
|
37
|
-
BlueprintName = "HediaRecommendationScreenTests"
|
|
38
|
-
ReferencedContainer = "container:HediaRecommendationScreen.xcodeproj">
|
|
39
|
-
</BuildableReference>
|
|
40
|
-
</TestableReference>
|
|
41
|
-
</Testables>
|
|
42
|
-
</TestAction>
|
|
43
|
-
<LaunchAction
|
|
44
|
-
buildConfiguration = "Debug"
|
|
45
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
46
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
47
|
-
launchStyle = "0"
|
|
48
|
-
useCustomWorkingDirectory = "NO"
|
|
49
|
-
ignoresPersistentStateOnLaunch = "NO"
|
|
50
|
-
debugDocumentVersioning = "YES"
|
|
51
|
-
debugServiceExtension = "internal"
|
|
52
|
-
allowLocationSimulation = "YES">
|
|
53
|
-
<BuildableProductRunnable
|
|
54
|
-
runnableDebuggingMode = "0">
|
|
55
|
-
<BuildableReference
|
|
56
|
-
BuildableIdentifier = "primary"
|
|
57
|
-
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
|
58
|
-
BuildableName = "HediaRecommendationScreen.app"
|
|
59
|
-
BlueprintName = "HediaRecommendationScreen"
|
|
60
|
-
ReferencedContainer = "container:HediaRecommendationScreen.xcodeproj">
|
|
61
|
-
</BuildableReference>
|
|
62
|
-
</BuildableProductRunnable>
|
|
63
|
-
</LaunchAction>
|
|
64
|
-
<ProfileAction
|
|
65
|
-
buildConfiguration = "Release"
|
|
66
|
-
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
67
|
-
savedToolIdentifier = ""
|
|
68
|
-
useCustomWorkingDirectory = "NO"
|
|
69
|
-
debugDocumentVersioning = "YES">
|
|
70
|
-
<BuildableProductRunnable
|
|
71
|
-
runnableDebuggingMode = "0">
|
|
72
|
-
<BuildableReference
|
|
73
|
-
BuildableIdentifier = "primary"
|
|
74
|
-
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
|
75
|
-
BuildableName = "HediaRecommendationScreen.app"
|
|
76
|
-
BlueprintName = "HediaRecommendationScreen"
|
|
77
|
-
ReferencedContainer = "container:HediaRecommendationScreen.xcodeproj">
|
|
78
|
-
</BuildableReference>
|
|
79
|
-
</BuildableProductRunnable>
|
|
80
|
-
</ProfileAction>
|
|
81
|
-
<AnalyzeAction
|
|
82
|
-
buildConfiguration = "Debug">
|
|
83
|
-
</AnalyzeAction>
|
|
84
|
-
<ArchiveAction
|
|
85
|
-
buildConfiguration = "Release"
|
|
86
|
-
revealArchiveInOrganizer = "YES">
|
|
87
|
-
</ArchiveAction>
|
|
88
|
-
</Scheme>
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
#import <UIKit/UIKit.h>
|
|
2
|
-
#import <XCTest/XCTest.h>
|
|
3
|
-
|
|
4
|
-
#import <React/RCTLog.h>
|
|
5
|
-
#import <React/RCTRootView.h>
|
|
6
|
-
|
|
7
|
-
#define TIMEOUT_SECONDS 600
|
|
8
|
-
#define TEXT_TO_LOOK_FOR @"Welcome to React"
|
|
9
|
-
|
|
10
|
-
@interface HediaRecommendationScreenTests : XCTestCase
|
|
11
|
-
|
|
12
|
-
@end
|
|
13
|
-
|
|
14
|
-
@implementation HediaRecommendationScreenTests
|
|
15
|
-
|
|
16
|
-
- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
|
|
17
|
-
{
|
|
18
|
-
if (test(view)) {
|
|
19
|
-
return YES;
|
|
20
|
-
}
|
|
21
|
-
for (UIView *subview in [view subviews]) {
|
|
22
|
-
if ([self findSubviewInView:subview matching:test]) {
|
|
23
|
-
return YES;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return NO;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
- (void)testRendersWelcomeScreen
|
|
30
|
-
{
|
|
31
|
-
UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
|
|
32
|
-
NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
|
|
33
|
-
BOOL foundElement = NO;
|
|
34
|
-
|
|
35
|
-
__block NSString *redboxError = nil;
|
|
36
|
-
#ifdef DEBUG
|
|
37
|
-
RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
|
|
38
|
-
if (level >= RCTLogLevelError) {
|
|
39
|
-
redboxError = message;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
#endif
|
|
43
|
-
|
|
44
|
-
while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
|
|
45
|
-
[[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
|
|
46
|
-
[[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
|
|
47
|
-
|
|
48
|
-
foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
|
|
49
|
-
if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
|
|
50
|
-
return YES;
|
|
51
|
-
}
|
|
52
|
-
return NO;
|
|
53
|
-
}];
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
#ifdef DEBUG
|
|
57
|
-
RCTSetLogFunction(RCTDefaultLogFunction);
|
|
58
|
-
#endif
|
|
59
|
-
|
|
60
|
-
XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
|
|
61
|
-
XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
@end
|
|
@@ -1,24 +0,0 @@
|
|
|
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>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>
|
package/ios/Podfile
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
require_relative '../node_modules/react-native/scripts/react_native_pods'
|
|
2
|
-
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
|
3
|
-
|
|
4
|
-
platform :ios, '11.0'
|
|
5
|
-
|
|
6
|
-
target 'HediaRecommendationScreen' do
|
|
7
|
-
config = use_native_modules!
|
|
8
|
-
|
|
9
|
-
use_react_native!(
|
|
10
|
-
:path => config[:reactNativePath],
|
|
11
|
-
# to enable hermes on iOS, change `false` to `true` and then install pods
|
|
12
|
-
:hermes_enabled => false
|
|
13
|
-
)
|
|
14
|
-
|
|
15
|
-
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
|
|
16
|
-
|
|
17
|
-
target 'HediaRecommendationScreenTests' do
|
|
18
|
-
inherit! :complete
|
|
19
|
-
# Pods for testing
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
# Enables Flipper.
|
|
23
|
-
#
|
|
24
|
-
# Note that if you have use_frameworks! enabled, Flipper will not work and
|
|
25
|
-
# you should disable the next line.
|
|
26
|
-
use_flipper!()
|
|
27
|
-
|
|
28
|
-
post_install do |installer|
|
|
29
|
-
react_native_post_install(installer)
|
|
30
|
-
__apply_Xcode_12_5_M1_post_install_workaround(installer)
|
|
31
|
-
end
|
|
32
|
-
end
|