New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created analytics module #6663
Created analytics module #6663
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a solid pull request! I left some comments, I hope you find them useful. 🙂
packages/expo-firebase-analytics/ios/EXFirebaseAnalytics/EXFirebaseAnalytics.m
Outdated
Show resolved
Hide resolved
packages/expo-firebase-analytics/ios/EXFirebaseAnalytics/EXFirebaseAnalytics.m
Outdated
Show resolved
Hide resolved
packages/expo-firebase-analytics/ios/EXFirebaseAnalytics/EXFirebaseAnalytics.m
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a solid pull request! I left some comments, I hope you find them useful. 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still wrapping my mind around everything that is Expo, but here are couple comments so far from my side.
Generally, everything looks pretty good. 👍 As for the Firebase App initialization, we should probably move that to a separate module later on, but it's find to keep this in here for now.
...analytics/android/src/main/java/expo/modules/firebase/analytics/FirebaseAnalyticsModule.java
Outdated
Show resolved
Hide resolved
@@ -55,6 +55,8 @@ export function getTestModules() { | |||
|
|||
if (Platform.OS === 'android') { | |||
modules.push(require('./tests/JSC')); | |||
} else if (Platform.OS === 'ios') { | |||
modules.push(require('./tests/FirebaseAnalytics')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else
should indeed be removed here, implies that there is a relationship with the JSC test above, but there isn't.
Currently all the tests fail on Android, so it's better to keep them disabled until fixed.
@EvanBacon we are interested in all Firebase services in managed flow. Would you please explain what will change after this PR will be merged for us? :) |
Moved to #7017 |
Why
Utilize some of the existing Google Services that we include with expo-notifications.
AdSupport
IDFA analytics feature of Firebase disable_idfa_collectionHow
expo-firebase-analytics
(from scratch) which does the most bare-bones binding to the native Firebase analytics packages.Test Plan
bare-expo
should show analytics working in the Firebase console. You'll want to start the native app in debug mode (this should modifyapps/bare-expo/ios/BareExpo.xcodeproj/xcshareddata/xcschemes/BareExpo.xcscheme
).GoogleServices-info.plist
inbare-expo
then build the app and use the following to start the native iOS app at runtime (this seems to not work for analytics on Android) (bare expo currently runs this in CI on iOS)