AndroidManifest.xml 3.24 KB
Newer Older
Jidong Chen's avatar
init  
Jidong Chen committed
1
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
yangwu.jia's avatar
yangwu.jia committed
2 3
          xmlns:tools="http://schemas.android.com/tools"
          package="com.taobao.idlefish.flutterboostexample">
Jidong Chen's avatar
init  
Jidong Chen committed
4 5 6 7 8 9 10

    <!-- The INTERNET permission is required for development. Specifically,
         flutter needs it to communicate with the running application
         to allow setting breakpoints, to provide hot reload, etc.
    -->
    <uses-permission android:name="android.permission.INTERNET"/>

Yacumima's avatar
Yacumima committed
11 12 13 14
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

Jidong Chen's avatar
init  
Jidong Chen committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
    <!-- io.flutter.app.FlutterApplication is an android.app.Application that
         calls FlutterMain.startInitialization(this); in its onCreate method.
         In most cases you can leave this as-is, but you if you want to provide
         additional functionality it is fine to subclass or reimplement
         FlutterApplication and put your custom class here. -->
    <application
        android:name=".MyApplication"
        android:label="flutter_boost_example"
        android:icon="@mipmap/ic_launcher">
        <activity
            android:name=".MainActivity"
            android:launchMode="singleTop"
            android:theme="@style/Theme.AppCompat"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>

yangwu.jia's avatar
yangwu.jia committed
37 38

        <activity
yangwu.jia's avatar
yangwu.jia committed
39
                android:name="com.idlefish.flutterboost.containers.BoostFlutterActivity"
yangwu.jia's avatar
yangwu.jia committed
40 41 42 43
                android:theme="@style/Theme.AppCompat"
                android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
                android:hardwareAccelerated="true"
                android:windowSoftInputMode="adjustResize" >
44
                <meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/page_loading"/>
yangwu.jia's avatar
yangwu.jia committed
45

yangwu.jia's avatar
yangwu.jia committed
46
        </activity>
47
        
Jidong Chen's avatar
init  
Jidong Chen committed
48 49 50 51 52
        <activity
            android:name=".FlutterFragmentPageActivity"
            android:theme="@style/Theme.AppCompat"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
            android:hardwareAccelerated="true"
53 54 55 56
            android:windowSoftInputMode="adjustResize">
            <meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/page_loading"/>

        </activity>
Jidong Chen's avatar
init  
Jidong Chen committed
57 58 59 60 61 62

        <activity
            android:name=".NativePageActivity"
            android:theme="@style/Theme.AppCompat"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
            android:windowSoftInputMode="adjustResize"/>
yangwu.jia's avatar
yangwu.jia committed
63 64 65
        <meta-data android:name="flutterEmbedding"
                   android:value="2">
        </meta-data>
Jidong Chen's avatar
init  
Jidong Chen committed
66 67
    </application>
</manifest>