<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in ShakeDetector.kt</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>c596d6cd - [android][home] &#55358;&#56598; Add DevMenu on Android (#6829)</title>
        <link>http://172.16.0.5:8080/history/expo/android/expoview/src/main/java/host/exp/exponent/utils/ShakeDetector.kt#c596d6cd</link>
        <description>[android][home] &#55358;&#56598; Add DevMenu on Android (#6829)# WhyFixes #6521 # How- Created unversioned `DevMenuManager` class which mostly just delegates calls to versioned `DevMenuModule` modules specific for SDK version. These modules are responsible for providing initial props, dev menu options and actions to run when these options are selected. The manager creates a new `ReactRootView` that bases on kernel&apos;s (home&apos;s) React instance manager and starts `HomeMenu` app which is registered as a second entry point in `home` and then, manager adds this root view to the currently used activity (it must implement `ExperienceActivity`). As I needed to know which experience activity is the current one, I&apos;ve added `sCurrentActivity` static member to that class and just track it using activity&apos;s lifecycle methods.- Backported `DevMenuModule` to all SDK versions included in the client. Including some changes between them - for example hot and fast reloading.- Added support for back button and Android&apos;s menu press (which can be simulated by `adb shell input keyevent 82`).- Removed some unused code related to `Nux` and replaced it with new onboarding screen (see #6793).- Created new `ShakeDetector` which works more like on iOS. The one provided by React Native is annoying in most cases as it actually requires two shakes.- Updated `ReactAndroidCodeTransformer` to turn off showing React Native dev menu in non-standalone apps.- **To do after merging:** Rebuild versioned expoviews.# Test Plan- [x] Test on experience in debug mode- [x] Test on experience in production mode- [x] Test on snacks- [x] Test on older SDKs- [x] Test on simulators- [x] Test that onboarding shows up once you open the experience for the first time or you didn&apos;t accept it yet (clicked `Got it` button).- [x] Test that using dev menu still works once we kill home&apos;s activity.

            List of files:
            /expo/android/expoview/src/main/java/host/exp/exponent/utils/ShakeDetector.kt</description>
        <pubDate>Fri, 21 Feb 2020 08:27:04 +0000</pubDate>
        <dc:creator>Tomasz Sapeta &lt;1714764+tsapeta@users.noreply.github.com&gt;</dc:creator>
    </item>
</channel>
</rss>
