Initial commit

This commit is contained in:
vjrj 2018-06-08 11:30:33 +02:00
commit c4438365ab
78 changed files with 1900 additions and 0 deletions

View file

@ -0,0 +1,39 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.comunes.firesflutter">
<!-- 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"/>
<!-- 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="io.flutter.app.FlutterApplication"
android:label="All Against The Fire!"
android:icon="@mipmap/launch_image">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- This keeps the window background of the activity showing
until Flutter renders its first frame. It can be removed if
there is no splash screen (such as the default splash screen
defined in @style/LaunchTheme). -->
<meta-data
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
android:value="true" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>

View file

@ -0,0 +1,14 @@
package org.comunes.firesflutter;
import android.os.Bundle;
import io.flutter.app.FlutterActivity;
import io.flutter.plugins.GeneratedPluginRegistrant;
public class MainActivity extends FlutterActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
GeneratedPluginRegistrant.registerWith(this);
}
}

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white"/>
<item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image"/>
</item>
</layer-list>

View file

@ -0,0 +1,35 @@
#!/bin/bash
BASE=../../../../../images/logo-1024.png
IOS=../../../../../ios/Runner/Assets.xcassets/LaunchImage.imageset
IOSICON=../../../../../ios/Runner/Assets.xcassets/AppIcon.appiconset
# ls $BASE
# ls $IOS
convert $BASE -resize 48x mipmap-mdpi/launch_image.png
convert $BASE -resize 72x mipmap-hdpi/launch_image.png
convert $BASE -resize 96x mipmap-xhdpi/launch_image.png
convert $BASE -resize 144x mipmap-xxhdpi/launch_image.png
convert $BASE -resize 192x mipmap-xxxhdpi/launch_image.png
cp mipmap-mdpi/launch_image.png $IOS/LaunchImage.png
cp mipmap-xhdpi/launch_image.png $IOS/LaunchImage@2x.png
cp mipmap-xxhdpi/launch_image.png $IOS/LaunchImage@3x.png
cp mipmap-xxxhdpi/launch_image.png $IOS/LaunchImage@4x.png
convert $BASE -resize 1024x1024 $IOSICON/Icon-App-1024x1024@1x.png
convert $BASE -resize 20x20 $IOSICON/Icon-App-20x20@1x.png
convert $BASE -resize 40x40 $IOSICON/Icon-App-20x20@2x.png
convert $BASE -resize 60x60 $IOSICON/Icon-App-20x20@3x.png
convert $BASE -resize 29x29 $IOSICON/Icon-App-29x29@1x.png
convert $BASE -resize 58x58 $IOSICON/Icon-App-29x29@2x.png
convert $BASE -resize 87x87 $IOSICON/Icon-App-29x29@3x.png
convert $BASE -resize 40x40 $IOSICON/Icon-App-40x40@1x.png
convert $BASE -resize 80x80 $IOSICON/Icon-App-40x40@2x.png
convert $BASE -resize 120x120 $IOSICON/Icon-App-40x40@3x.png
convert $BASE -resize 120x120 $IOSICON/Icon-App-60x60@2x.png
convert $BASE -resize 180x180 $IOSICON/Icon-App-60x60@3x.png
convert $BASE -resize 76x76 $IOSICON/Icon-App-76x76@1x.png
convert $BASE -resize 152x152 $IOSICON/Icon-App-76x76@2x.png
convert $BASE -resize 167x167 $IOSICON/Icon-App-83.5x83.5@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7 KiB

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
</resources>