Skip to content

Instantly share code, notes, and snippets.

@andriipanasiuk
Created March 20, 2017 16:29
Show Gist options
  • Save andriipanasiuk/f1c872a5237703603dc9a3efe210cfb1 to your computer and use it in GitHub Desktop.
Save andriipanasiuk/f1c872a5237703603dc9a3efe210cfb1 to your computer and use it in GitHub Desktop.
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.jivesoftware.rnd.smartlingmdn">
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="25"/>
<meta-data android:name="android.support.VERSION" android:value="25.3.0"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.USE_CREDENTIALS"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme">
<activity android:name="com.jivesoftware.rnd.smartlingmdn.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<receiver android:enabled="false" android:name="com.smartling.android.sdk.receiver.LocaleChangedReceiver">
<intent-filter>
<action android:name="android.intent.action.LOCALE_CHANGED"/>
</intent-filter>
</receiver>
<receiver android:enabled="true" android:name="com.smartling.android.sdk.receiver.UpgradeReceiver">
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
</intent-filter>
</receiver>
<receiver android:enabled="true" android:name="com.smartling.android.sdk.receiver.BootCompletedReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
<receiver android:enabled="false" android:name="com.smartling.android.sdk.receiver.OTAConnectionReceiver">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
</intent-filter>
</receiver>
<receiver android:enabled="false" android:name="com.smartling.android.sdk.receiver.EventConnectionReceiver">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
</intent-filter>
</receiver>
<service android:exported="true" android:name="com.smartling.android.sdk.service.ExternalService" android:permission="android.permission.USE_CREDENTIALS"/>
<service android:exported="false" android:name="com.smartling.android.sdk.ota.OTAService" android:permission="android.permission.USE_CREDENTIALS"/>
<service android:exported="false" android:name="com.smartling.android.sdk.context.service.ContextService"/>
<service android:exported="true" android:name="com.smartling.android.sdk.service.EventService" android:permission="android.permission.USE_CREDENTIALS"/>
<meta-data android:name="com.smartling.project.config" android:value="projectId|projectSecret|null|null|ota-serving|verbose|false"/></application>
</manifest>
@dmapr
Copy link

dmapr commented Mar 20, 2017

Got it! The meta-tag is missing from the instant-run configuration. The debug configuration is fine. I've never noticed the instant-run config before. Sorry for all the red herrings.

Full debug manifest.

<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.jivesoftware.rnd.smartlingmdn">

    <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="25"/>

    <meta-data android:name="android.support.VERSION" android:value="25.3.0"/>

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    <uses-permission android:name="android.permission.USE_CREDENTIALS"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme">
        <activity android:name="com.jivesoftware.rnd.smartlingmdn.MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>

        <receiver android:enabled="false" android:name="com.smartling.android.sdk.receiver.LocaleChangedReceiver">
            <intent-filter>
                <action android:name="android.intent.action.LOCALE_CHANGED"/>
            </intent-filter>
        </receiver>
        <receiver android:enabled="true" android:name="com.smartling.android.sdk.receiver.UpgradeReceiver">
            <intent-filter>
                <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
            </intent-filter>
        </receiver>
        <receiver android:enabled="true" android:name="com.smartling.android.sdk.receiver.BootCompletedReceiver">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED"/>
            </intent-filter>
        </receiver>
        <receiver android:enabled="false" android:name="com.smartling.android.sdk.receiver.OTAConnectionReceiver">
            <intent-filter>
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
            </intent-filter>
        </receiver>
        <receiver android:enabled="false" android:name="com.smartling.android.sdk.receiver.EventConnectionReceiver">
            <intent-filter>
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
            </intent-filter>
        </receiver>

        <service android:exported="true" android:name="com.smartling.android.sdk.service.ExternalService" android:permission="android.permission.USE_CREDENTIALS"/>
        <service android:exported="false" android:name="com.smartling.android.sdk.ota.OTAService" android:permission="android.permission.USE_CREDENTIALS"/>
        <service android:exported="false" android:name="com.smartling.android.sdk.context.service.ContextService"/>
        <service android:exported="true" android:name="com.smartling.android.sdk.service.EventService" android:permission="android.permission.USE_CREDENTIALS"/>
    <meta-data android:name="com.smartling.project.config" android:value="projectId|projectSecret|null|null|ota-serving|verbose|false"/></application>

</manifest>

Instant run debug manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.jivesoftware.rnd.smartlingmdn"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="19"
        android:targetSdkVersion="25" />

    <meta-data
        android:name="android.support.VERSION"
        android:value="25.3.0" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.USE_CREDENTIALS" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme" >
        <activity android:name="com.jivesoftware.rnd.smartlingmdn.MainActivity" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <receiver
            android:name="com.smartling.android.sdk.receiver.LocaleChangedReceiver"
            android:enabled="false" >
            <intent-filter>
                <action android:name="android.intent.action.LOCALE_CHANGED" />
            </intent-filter>
        </receiver>
        <receiver
            android:name="com.smartling.android.sdk.receiver.UpgradeReceiver"
            android:enabled="true" >
            <intent-filter>
                <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
            </intent-filter>
        </receiver>
        <receiver
            android:name="com.smartling.android.sdk.receiver.BootCompletedReceiver"
            android:enabled="true" >
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>
        <receiver
            android:name="com.smartling.android.sdk.receiver.OTAConnectionReceiver"
            android:enabled="false" >
            <intent-filter>
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
            </intent-filter>
        </receiver>
        <receiver
            android:name="com.smartling.android.sdk.receiver.EventConnectionReceiver"
            android:enabled="false" >
            <intent-filter>
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
            </intent-filter>
        </receiver>

        <service
            android:name="com.smartling.android.sdk.service.ExternalService"
            android:exported="true"
            android:permission="android.permission.USE_CREDENTIALS" />
        <service
            android:name="com.smartling.android.sdk.ota.OTAService"
            android:exported="false"
            android:permission="android.permission.USE_CREDENTIALS" />
        <service
            android:name="com.smartling.android.sdk.context.service.ContextService"
            android:exported="false" />
        <service
            android:name="com.smartling.android.sdk.service.EventService"
            android:exported="true"
            android:permission="android.permission.USE_CREDENTIALS" />
        <service
            android:name="com.android.tools.fd.runtime.InstantRunService"
            android:exported="true" />
    </application>

</manifest>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment