-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#147805691] Add MixPanel support (#25)
* [#147805691] Add MixPanel support * [#147805691] Improve MixPanel support, from code review * [#148019251] Add analytics for app state changes (#28) * [#148019251] Add analytics for app state changes * [#148019251] Improve analytics for app state changes, from code review * [#148019251] Improve naming and types for app state changes, from code review
- Loading branch information
Showing
29 changed files
with
658 additions
and
159 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,3 +1,7 @@ | ||
rootProject.name = 'ItaliaApp' | ||
include ':react-native-sha256' | ||
project(':react-native-sha256').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sha256/android') | ||
include ':react-native-mixpanel' | ||
project(':react-native-mixpanel').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-mixpanel/android') | ||
|
||
include ':app' |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,110 +1,110 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>ItaliaApp</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>0.1</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>13</string> | ||
<key>ITSAppUsesNonExemptEncryption</key> | ||
<false/> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>NSAppTransportSecurity</key> | ||
<dict> | ||
<key>NSExceptionDomains</key> | ||
<dict> | ||
<key>localhost</key> | ||
<dict> | ||
<key>NSExceptionAllowsInsecureHTTPLoads</key> | ||
<true/> | ||
</dict> | ||
<key>teamdigitale.it</key> | ||
<dict> | ||
<key>NSIncludesSubdomains</key> | ||
<true/> | ||
</dict> | ||
</dict> | ||
</dict> | ||
<key>NSLocationWhenInUseUsageDescription</key> | ||
<string></string> | ||
<key>UIAppFonts</key> | ||
<array> | ||
<string>TitilliumWeb-Black.ttf</string> | ||
<string>TitilliumWeb-Bold.ttf</string> | ||
<string>TitilliumWeb-BoldItalic.ttf</string> | ||
<string>TitilliumWeb-ExtraLight.ttf</string> | ||
<string>TitilliumWeb-ExtraLightItalic.ttf</string> | ||
<string>TitilliumWeb-Italic.ttf</string> | ||
<string>TitilliumWeb-Light.ttf</string> | ||
<string>TitilliumWeb-LightItalic.ttf</string> | ||
<string>TitilliumWeb-Regular.ttf</string> | ||
<string>TitilliumWeb-SemiBold.ttf</string> | ||
<string>TitilliumWeb-SemiBoldItalic.ttf</string> | ||
<string>Andale Mono.ttf</string> | ||
<string>Arial Black.ttf</string> | ||
<string>Arial.ttf</string> | ||
<string>Comic Sans MS.ttf</string> | ||
<string>Courier New.ttf</string> | ||
<string>Entypo.ttf</string> | ||
<string>EvilIcons.ttf</string> | ||
<string>FontAwesome.ttf</string> | ||
<string>Foundation.ttf</string> | ||
<string>Georgia.ttf</string> | ||
<string>Ionicons.ttf</string> | ||
<string>MaterialIcons.ttf</string> | ||
<string>Microsoft Sans Serif.ttf</string> | ||
<string>Octicons.ttf</string> | ||
<string>Roboto_medium.ttf</string> | ||
<string>Roboto.ttf</string> | ||
<string>rubicon-icon-font.ttf</string> | ||
<string>Rubik-Black.ttf</string> | ||
<string>Rubik-BlackItalic.ttf</string> | ||
<string>Rubik-Bold.ttf</string> | ||
<string>Rubik-BoldItalic.ttf</string> | ||
<string>Rubik-Italic.ttf</string> | ||
<string>Rubik-Light.ttf</string> | ||
<string>Rubik-LightItalic.ttf</string> | ||
<string>Rubik-Medium.ttf</string> | ||
<string>Rubik-MediumItalic.ttf</string> | ||
<string>Rubik-Regular.ttf</string> | ||
<string>SanFrancisco.ttf</string> | ||
<string>SanFranciscoBold.ttf</string> | ||
<string>SanFranciscoThin.ttf</string> | ||
<string>SF-UI-Text-Regular.otf</string> | ||
<string>Skia.ttf</string> | ||
<string>Times New Roman.ttf</string> | ||
<string>Zocial.ttf</string> | ||
</array> | ||
<key>UILaunchStoryboardName</key> | ||
<string>LaunchScreen</string> | ||
<key>UIRequiredDeviceCapabilities</key> | ||
<array> | ||
<string>armv7</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
<key>UIViewControllerBasedStatusBarAppearance</key> | ||
<false/> | ||
</dict> | ||
</plist> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>ItaliaApp</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>0.1</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>12</string> | ||
<key>ITSAppUsesNonExemptEncryption</key> | ||
<false/> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>NSAppTransportSecurity</key> | ||
<dict> | ||
<key>NSExceptionDomains</key> | ||
<dict> | ||
<key>localhost</key> | ||
<dict> | ||
<key>NSExceptionAllowsInsecureHTTPLoads</key> | ||
<true/> | ||
</dict> | ||
<key>teamdigitale.it</key> | ||
<dict> | ||
<key>NSIncludesSubdomains</key> | ||
<true/> | ||
</dict> | ||
</dict> | ||
</dict> | ||
<key>NSLocationWhenInUseUsageDescription</key> | ||
<string/> | ||
<key>UIAppFonts</key> | ||
<array> | ||
<string>TitilliumWeb-Black.ttf</string> | ||
<string>TitilliumWeb-Bold.ttf</string> | ||
<string>TitilliumWeb-BoldItalic.ttf</string> | ||
<string>TitilliumWeb-ExtraLight.ttf</string> | ||
<string>TitilliumWeb-ExtraLightItalic.ttf</string> | ||
<string>TitilliumWeb-Italic.ttf</string> | ||
<string>TitilliumWeb-Light.ttf</string> | ||
<string>TitilliumWeb-LightItalic.ttf</string> | ||
<string>TitilliumWeb-Regular.ttf</string> | ||
<string>TitilliumWeb-SemiBold.ttf</string> | ||
<string>TitilliumWeb-SemiBoldItalic.ttf</string> | ||
<string>Andale Mono.ttf</string> | ||
<string>Arial Black.ttf</string> | ||
<string>Arial.ttf</string> | ||
<string>Comic Sans MS.ttf</string> | ||
<string>Courier New.ttf</string> | ||
<string>Entypo.ttf</string> | ||
<string>EvilIcons.ttf</string> | ||
<string>FontAwesome.ttf</string> | ||
<string>Foundation.ttf</string> | ||
<string>Georgia.ttf</string> | ||
<string>Ionicons.ttf</string> | ||
<string>MaterialIcons.ttf</string> | ||
<string>Microsoft Sans Serif.ttf</string> | ||
<string>Octicons.ttf</string> | ||
<string>Roboto_medium.ttf</string> | ||
<string>Roboto.ttf</string> | ||
<string>rubicon-icon-font.ttf</string> | ||
<string>Rubik-Black.ttf</string> | ||
<string>Rubik-BlackItalic.ttf</string> | ||
<string>Rubik-Bold.ttf</string> | ||
<string>Rubik-BoldItalic.ttf</string> | ||
<string>Rubik-Italic.ttf</string> | ||
<string>Rubik-Light.ttf</string> | ||
<string>Rubik-LightItalic.ttf</string> | ||
<string>Rubik-Medium.ttf</string> | ||
<string>Rubik-MediumItalic.ttf</string> | ||
<string>Rubik-Regular.ttf</string> | ||
<string>SanFrancisco.ttf</string> | ||
<string>SanFranciscoBold.ttf</string> | ||
<string>SanFranciscoThin.ttf</string> | ||
<string>SF-UI-Text-Regular.otf</string> | ||
<string>Skia.ttf</string> | ||
<string>Times New Roman.ttf</string> | ||
<string>Zocial.ttf</string> | ||
</array> | ||
<key>UILaunchStoryboardName</key> | ||
<string>LaunchScreen</string> | ||
<key>UIRequiredDeviceCapabilities</key> | ||
<array> | ||
<string>armv7</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
<key>UIViewControllerBasedStatusBarAppearance</key> | ||
<false/> | ||
</dict> | ||
</plist> |
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,3 @@ | ||
target 'ItaliaApp' do | ||
pod 'Mixpanel' | ||
end |
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,12 @@ | ||
PODS: | ||
- Mixpanel (3.1.8) | ||
|
||
DEPENDENCIES: | ||
- Mixpanel | ||
|
||
SPEC CHECKSUMS: | ||
Mixpanel: 1e04a58533472e5675ea0a476af02ee8751aaa08 | ||
|
||
PODFILE CHECKSUM: 1cd94c23b0e1bee7956ffd2a34c72e4aa08b7e8e | ||
|
||
COCOAPODS: 1.2.1 |
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,21 @@ | ||
/** | ||
* Defines actions related to React Native's `AppState` changes. | ||
* | ||
* @flow | ||
*/ | ||
|
||
import type { ApplicationState, ApplicationStateAction } from './types' | ||
|
||
const APPLICATION_STATE_CHANGE_ACTION = 'APPLICATION_STATE_CHANGE_ACTION' | ||
|
||
function appStateChange(appState: ApplicationState): ApplicationStateAction { | ||
return { | ||
type: APPLICATION_STATE_CHANGE_ACTION, | ||
name: appState, | ||
} | ||
} | ||
|
||
module.exports = { | ||
APPLICATION_STATE_CHANGE_ACTION, | ||
appStateChange, | ||
} |
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,15 +1,17 @@ | ||
/** | ||
* Aggregates all the actions available to components. | ||
* | ||
* | ||
* @flow | ||
*/ | ||
|
||
'use strict' | ||
|
||
import loginActions from './login' | ||
import userActions from './user' | ||
import appStateActions from './appState' | ||
|
||
module.exports = { | ||
...loginActions, | ||
...userActions, | ||
...appStateActions, | ||
} |
Oops, something went wrong.