<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>thread Re: Android 12 - ReaderSDK - parameter exported in AndroidManifest.xml in Archived Discussions (Read Only)</title>
    <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Android-12-ReaderSDK-parameter-exported-in-AndroidManifest-xml/m-p/328997#M92845</link>
    <description>&lt;P&gt;Hey there &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/418130"&gt;@mark_natera&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;While these forums are for Developer discussions since there haven't been any responses from fellow developers I would advise you to request support or ask this question via our &lt;A href="https://developer.squareup.com/us/en" target="_blank"&gt;Developer Portal&lt;/A&gt;&amp;nbsp;and select Support from the top header.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;P.S.&amp;nbsp;&lt;/STRONG&gt;&lt;EM&gt;Welcome&lt;/EM&gt; to the &lt;A href="https://www.sellercommunity.com/t5/Orientation-Etiquette/Orientation-Welcome-to-the-Seller-Community/m-p/190104#M152" target="_blank"&gt;Seller Community&lt;/A&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 22:00:14 GMT</pubDate>
    <dc:creator>JJ_</dc:creator>
    <dc:date>2021-12-23T22:00:14Z</dc:date>
    <item>
      <title>Android 12 - ReaderSDK - parameter exported in AndroidManifest.xml</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Android-12-ReaderSDK-parameter-exported-in-AndroidManifest-xml/m-p/328672#M92844</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;we are using Square ReaderSDK library for implementing communication of Reader with our Point of Sale Android application. We set these two fields for the building of the app to the latest version, because of the need of other libraries, which are requiring it for the correct working:&lt;BR /&gt;&lt;STRONG&gt;compileSdkVersion 31&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;buildToolsVersion 31&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then we also implemented latest Square libs for the above functionality:&lt;BR /&gt;&lt;STRONG&gt;implementation "com.squareup.sdk.reader:reader-sdk-$SQUARE_READER_SDK_APPLICATION_ID:1.5.1"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;runtimeOnly "com.squareup.sdk.reader:reader-sdk-internals:1.5.1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, once we tried to build the app even for debug purposes, we received the error message:&lt;BR /&gt;&lt;EM&gt;Manifest merger failed : android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify an explicit value for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;android:exported&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;when the corresponding component has an intent filter defined. See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developer.android.com/guide/topics/manifest/activity-element#exported" target="_blank" rel="noopener nofollow ugc"&gt;&amp;lt;activity&amp;gt; &amp;nbsp;|&amp;nbsp; Android Developers&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for details.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We found, that it’s caused by missing the field&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;android:exported&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for any component in AndroidManifest.xml file which includes parameter with the body. So we went through the merged manifest (once we decreased/reverted the build version and tried to find which components are missing this field and are blocking us from success building). And it looks like, that this files defined within dependent libraries are missing it:&lt;BR /&gt;&lt;EM&gt;com.squareup.ui.ApiActivity&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;com.squareup.ui.LocationActivity&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;com.squareup.ui.main.ApiMainActivity&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;com.squareup.queue.QueueService$BootReceiver&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;com.squareup.notification.LocaleChangeReceiver&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;com.squareup.cardreader.ble.lock.PosMarkerReceiver&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a possibility to add that exported field into this SquareReaderSDK library with also all their dependencies so that it will support also the latest Android version 12 (build version code 31)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 08:29:25 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Android-12-ReaderSDK-parameter-exported-in-AndroidManifest-xml/m-p/328672#M92844</guid>
      <dc:creator>mark_natera</dc:creator>
      <dc:date>2021-12-22T08:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Android 12 - ReaderSDK - parameter exported in AndroidManifest.xml</title>
      <link>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Android-12-ReaderSDK-parameter-exported-in-AndroidManifest-xml/m-p/328997#M92845</link>
      <description>&lt;P&gt;Hey there &lt;a href="https://community.squareup.com/t5/user/viewprofilepage/user-id/418130"&gt;@mark_natera&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;While these forums are for Developer discussions since there haven't been any responses from fellow developers I would advise you to request support or ask this question via our &lt;A href="https://developer.squareup.com/us/en" target="_blank"&gt;Developer Portal&lt;/A&gt;&amp;nbsp;and select Support from the top header.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;P.S.&amp;nbsp;&lt;/STRONG&gt;&lt;EM&gt;Welcome&lt;/EM&gt; to the &lt;A href="https://www.sellercommunity.com/t5/Orientation-Etiquette/Orientation-Welcome-to-the-Seller-Community/m-p/190104#M152" target="_blank"&gt;Seller Community&lt;/A&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 22:00:14 GMT</pubDate>
      <guid>https://community.squareup.com/t5/Archived-Discussions-Read-Only/Android-12-ReaderSDK-parameter-exported-in-AndroidManifest-xml/m-p/328997#M92845</guid>
      <dc:creator>JJ_</dc:creator>
      <dc:date>2021-12-23T22:00:14Z</dc:date>
    </item>
  </channel>
</rss>

