спасибо заранее
Просто пытаюсь создать пустое приложение с мгновенной функциональностью.Устанавливаемая часть просто отлично работает, и модуль мгновенного приложения также запускается из Android Studio, но при загрузке в игровой магазин опция Попробовать сейчас не отображается, и когда отображаются ссылки на мгновенное приложение в браузере или открывается из чата, отображаетсяне найдено.Вслед за Google I / O видео конвертации приложения в мгновенные и кодовые лабораторные инструкции и некоторые другие блоги и видео, но не в состоянии выяснить, в чем проблема.
ссылка на файл assetJson
Базовый модуль: gradle:
apply plugin: 'com.android.feature'
android {
compileSdkVersion 27
baseFeature true
defaultConfig {
minSdkVersion 24
targetSdkVersion 27
versionCode 1
versionName "1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
application project(":appmodule")
}
манифест:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.demo.anil.tictactoe">
<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">
<!--<meta-data android:name="asset_statements" android:resource="@string/asset_statements" />-->
<!--<meta-data-->
<!--android:name="default-url"-->
<!--android:value="https://anilsharma92.000webhostapp.com/game" />-->
<activity android:name=".SplashActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
android:name="default-url"
android:value="https://anilsharma92.000webhostapp.com/game" />
</activity>
<activity android:name=".GameActivity">
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:scheme="http" />
<data android:host="anilsharma92.000webhostapp.com" />
<data android:pathPattern="/game" />
</intent-filter>
</activity>
<activity android:name=".ExtraActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
<data android:scheme="http" />
<data android:host="anilsharma92.000webhostapp.com" />
<data android:pathPattern="/extra" />
</intent-filter>
</activity>
</application>
</manifest>
модуль приложения:
манифест:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.demo.anil.appmodule">
<!-- <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" /> -->
<application
android:label="@string/app_name"
android:theme="@style/AppTheme"
>
<meta-data android:name="asset_statements" android:resource="@string/asset_statements" />
<!--<meta-data-->
<!--android:name="default-url"-->
<!--android:value="https://anilsharma92.000webhostapp.com/game" />-->
<activity android:name=".LoginActivity" />
<activity android:name=".FinishActivity"/>
</application>
</manifest>
gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.demo.anil.appmodule"
minSdkVersion 24
targetSdkVersion 27
versionCode 1
versionName "1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation project(':app-base')
}
мгновенный выпуск приложения:
apply plugin: 'com.android.instantapp'
android {
compileSdkVersion 27
defaultConfig {
minSdkVersion 24
targetSdkVersion 27
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation project(":app-base")
}
полный код доступен по адресу: https://gitlab.com/jr.anilsharma/instant-app