在口味中添加不同的初始屏幕是否可能?离子3

时间:2018-07-26 16:26:39

标签: android ionic-framework ionic2 ionic3

我想知道是否可以像使用此代码对图标和其他变量那样添加其他启动画面:

productFlavors {
         espatolero {
            manifestPlaceholders = [ appName: "E y L inmobiliaria", launcherName: "Espatolero y Lorenzo", appIcon:"@drawable/icon", packageId: "com.ionicframework.clientapp897753_espatolero"]
            applicationIdSuffix ".espatolero"
            resValue "string", "api_key", ""
            resValue "string", "images_url", "/espatolero/"
        }

        ardizzone {
            manifestPlaceholders = [ appName: "Ardizzone",launcherName: "Ardizzone inmobiliaria", appIcon:"@drawable/icon", packageId: "com.ionicframework.clientapp897753_ardizzone"]
            applicationIdSuffix ".ardizzone"
            resValue "string", "api_key", ""
            resValue "string", "images_url", "/ardizzone/"
        }
    }

然后在androidManifest中,我可以使用manifestPlaceholders中定义的变量。但是我在清单中看不到有关启动画面的任何内容,这是代码:

<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="${packageId}" xmlns:android="http://schemas.android.com/apk/res/android">
    <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
    <uses-permission android:name="android.permission.INTERNET" />
    <application android:hardwareAccelerated="true" android:icon="${appIcon}" android:label="${appName}" android:supportsRtl="true">
        <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="${appName}" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
            <intent-filter android:label="${launcherName}">
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <meta-data android:name="com.google.android.geo.API_KEY" android:value="AIzaSyCns75R_b4sacOfhzS7gAW9f_5y7P_sNMg" />
        <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
        <provider android:authorities="${applicationId}.sharing.provider" android:exported="false" android:grantUriPermissions="true" android:name="nl.xservices.plugins.FileProvider">
            <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/sharing_paths" />
        </provider>
    </application>
    <uses-sdk android:minSdkVersion="19" android:targetSdkVersion="26" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.WRITE_CONTACTS" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-feature android:name="android.hardware.location.gps" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-feature android:glEsVersion="0x00020000" android:required="true" />
    <uses-feature android:name="android.hardware.location" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-feature android:name="android.hardware.telephony" android:required="false" />
</manifest>

0 个答案:

没有答案