<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yuji Numata</title>
    <description>The latest articles on DEV Community by Yuji Numata (@yujinumata).</description>
    <link>https://dev.to/yujinumata</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4258724%2F971a3e90-6b7a-416d-914e-90b556672578.png</url>
      <title>DEV Community: Yuji Numata</title>
      <link>https://dev.to/yujinumata</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yujinumata"/>
    <language>en</language>
    <item>
      <title>My signing plugin's tests passed. The release bundle was still debug-signed.</title>
      <dc:creator>Yuji Numata</dc:creator>
      <pubDate>Sat, 28 Nov 2026 09:37:00 +0000</pubDate>
      <link>https://dev.to/yujinumata/my-signing-plugins-tests-passed-the-release-bundle-was-still-debug-signed-10e6</link>
      <guid>https://dev.to/yujinumata/my-signing-plugins-tests-passed-the-release-bundle-was-still-debug-signed-10e6</guid>
      <description>&lt;p&gt;My signing plugin had unit tests. They passed. The release bundle it produced was still signed with the Android debug key, and I only found out by accident.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it happened
&lt;/h2&gt;

&lt;p&gt;A bare Expo project gets its &lt;code&gt;android/&lt;/code&gt; folder from &lt;code&gt;expo prebuild&lt;/code&gt;. In that generated &lt;code&gt;build.gradle&lt;/code&gt;, the &lt;code&gt;release&lt;/code&gt; build type points at the debug signing config. Play Console refuses a debug-signed upload, so you have to change that line. Since &lt;code&gt;expo prebuild --clean&lt;/code&gt; throws the folder away, I change it from a config plugin that rewrites the file on every prebuild.&lt;/p&gt;

&lt;p&gt;The plugin looked for the old form of the line. Recent React Native templates (I noticed it on 0.81) add an equals sign:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight diff"&gt;&lt;code&gt;&lt;span class="gd"&gt;- signingConfig signingConfigs.debug&lt;/span&gt;
&lt;span class="gi"&gt;+ signingConfig = signingConfigs.debug&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My regex didn't match, so the plugin quietly did nothing. The build succeeded. My tests fed the plugin a copy of the old template, so they were green too.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I found it
&lt;/h2&gt;

&lt;p&gt;Someone in the comments on my last post suggested reading the merged manifest after the build, not just &lt;code&gt;app.json&lt;/code&gt;. While I was adding that, I ran &lt;code&gt;keytool&lt;/code&gt; on the bundle out of curiosity:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;keytool -printcert -jarfile android/app/build/outputs/bundle/release/app-release.aab
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The owner line said &lt;code&gt;CN=Android Debug, O=Android, C=US&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If you build locally, that command is worth running once. Your own key shows your own name there. If you see Android Debug, Play will reject the file. If you're on a machine with a non-English locale, add &lt;code&gt;-J-Duser.language=en&lt;/code&gt; so the labels come out in English.&lt;/p&gt;

&lt;h2&gt;
  
  
  The manifest check
&lt;/h2&gt;

&lt;p&gt;The second check is the one from the comment. Play reads the manifest after every library has merged its permissions in. After a local release build, that file is here:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;android/app/build/intermediates/bundle_manifest/release/processApplicationManifestReleaseForBundle/AndroidManifest.xml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I compare it with &lt;code&gt;package.json&lt;/code&gt;. If an ads library is installed, &lt;code&gt;com.google.android.gms.permission.AD_ID&lt;/code&gt; has to be in that file, or the Advertising ID answer in Play Console won't match. A billing library needs &lt;code&gt;com.android.vending.BILLING&lt;/code&gt;. And the template adds a few you probably don't use, like &lt;code&gt;SYSTEM_ALERT_WINDOW&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  A script for both
&lt;/h2&gt;

&lt;p&gt;I put both checks in a small CLI with no dependencies. It needs Node 18+ and a JDK:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx github:ykisoftware/expo-play-check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It exits 1 when something will bounce, so it can sit in CI. The source is on GitHub under the same name, MIT licensed.&lt;/p&gt;

&lt;p&gt;What I took from this: a test that runs on a fixture only proves the fixture. The bundle is the thing Play reads, so now I check the bundle.&lt;/p&gt;

&lt;p&gt;I found this while building my Expo starter kit, which runs the same checks after each release build. It's paid and linked from the README. The script works without it.&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>expo</category>
      <category>android</category>
      <category>testing</category>
    </item>
    <item>
      <title>Five things that broke my Expo releases on Google Play</title>
      <dc:creator>Yuji Numata</dc:creator>
      <pubDate>Sun, 22 Nov 2026 12:26:17 +0000</pubDate>
      <link>https://dev.to/yujinumata/five-things-that-broke-my-expo-releases-on-google-play-1n4i</link>
      <guid>https://dev.to/yujinumata/five-things-that-broke-my-expo-releases-on-google-play-1n4i</guid>
      <description>&lt;p&gt;Over the past few months I've put more than twenty small Expo apps on Google Play. None of them have a backend. They keep data on the phone and earn from one banner, and some sell a single "Remove ads" purchase.&lt;/p&gt;

&lt;p&gt;They're simple apps, but the release side kept tripping me up. These five cost me the most time.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The first release build signs with the debug key
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;expo prebuild&lt;/code&gt; generates an Android project whose release build is signed with the debug keystore. Gradle doesn't warn you. The build succeeds, and Play Console rejects the upload because it's debug-signed.&lt;/p&gt;

&lt;p&gt;You need your own upload key and a signing config for release. I keep that in a small config plugin, so it survives &lt;code&gt;expo prebuild --clean&lt;/code&gt;, which deletes the whole &lt;code&gt;android/&lt;/code&gt; folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Pin the JDK
&lt;/h2&gt;

&lt;p&gt;My machine's default JDK was 24. With it, the CMake step for some native modules prints a warning about a restricted method, and the Android Gradle Plugin treats that warning as a failure. I tried JVM flags first. They didn't help, because CMake runs in a separate process.&lt;/p&gt;

&lt;p&gt;One line in &lt;code&gt;android/gradle.properties&lt;/code&gt; fixed it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight properties"&gt;&lt;code&gt;&lt;span class="na"&gt;org.gradle.java.home&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;C&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nc"&gt;Program&lt;/span&gt; &lt;span class="nc"&gt;Files&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nc"&gt;Java&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;jdk&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;17&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use forward slashes. With backslashes the path gets mangled and Gradle says your Java home is invalid.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Don't upgrade the Expo SDK in place
&lt;/h2&gt;

&lt;p&gt;I bumped the SDK in an existing project. TypeScript passed, tests passed, the release build signed. The app crashed on launch.&lt;/p&gt;

&lt;p&gt;A package from the old SDK had stayed in &lt;code&gt;node_modules&lt;/code&gt;, and nothing complained until the native side loaded it. I pin the SDK now. Before each release build, a script checks that every installed Expo package belongs to the same SDK.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Blocked permissions you forgot about
&lt;/h2&gt;

&lt;p&gt;Some of my apps started without ads, so &lt;code&gt;app.json&lt;/code&gt; blocked the advertising ID permission. Months later I added AdMob and declared ad ID usage in Play Console. The release was rejected before review, because the declaration and the manifest disagreed.&lt;/p&gt;

&lt;p&gt;If you add ads to an older app, search &lt;code&gt;app.json&lt;/code&gt; for &lt;code&gt;blockedPermissions&lt;/code&gt; first.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Design the "Remove ads" purchase for the bad cases
&lt;/h2&gt;

&lt;p&gt;Checking the purchase once and saving a flag is easy, but refunds never bring the ads back. So the app asks Google Play again on every launch.&lt;/p&gt;

&lt;p&gt;That creates the opposite problem. Phones go offline, and Play Billing sometimes just fails to connect. If you treat "no answer" as "not purchased", a paying user sees ads on the train. I keep the last answer and change it only when the store actually replies.&lt;/p&gt;

&lt;p&gt;Also acknowledge every purchase. Google refunds one automatically if the app doesn't acknowledge it within three days.&lt;/p&gt;

&lt;h2&gt;
  
  
  The kit
&lt;/h2&gt;

&lt;p&gt;I got tired of setting this up again for each app, so I turned it into a starter kit. It's Expo SDK 54, Android-first, with no backend. The fixes above are built in, along with a script that refuses to build when the package name is still &lt;code&gt;com.example&lt;/code&gt;, the ad IDs are Google's test ones, or the privacy policy URL is missing.&lt;/p&gt;

&lt;p&gt;It's paid. You can find it here: &lt;a href="https://ykisoftware.gumroad.com/l/bksfs" rel="noopener noreferrer"&gt;https://ykisoftware.gumroad.com/l/bksfs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you've run into any of these, or something I missed, I'd like to hear about it in the comments.&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>expo</category>
      <category>android</category>
      <category>mobile</category>
    </item>
  </channel>
</rss>
