Initial commit

This commit is contained in:
Elias Projahn 2020-05-21 20:25:25 +02:00
commit 4be8aa8ff5
47 changed files with 1577 additions and 0 deletions

7
android/.gitignore vendored Normal file
View file

@ -0,0 +1,7 @@
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java

62
android/app/build.gradle Normal file
View file

@ -0,0 +1,62 @@
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 28
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
applicationId "de.johrpan.memor"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

View file

@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.johrpan.memor">
<!-- 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"/>
</manifest>

View file

@ -0,0 +1,44 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.johrpan.memor">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<application
android:name="io.flutter.app.FlutterApplication"
android:label="Memor"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" />
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"></action>
</intent-filter>
</receiver>
<receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" />
</application>
</manifest>

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View file

@ -0,0 +1,6 @@
package de.johrpan.memor
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}

View file

@ -0,0 +1,13 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="23.913044"
android:viewportHeight="23.913044"
android:tint="#FFFFFF">
<group android:translateX="0.95289856"
android:translateY="-0.04347826">
<path
android:fillColor="#FF000000"
android:pathData="m16.7712,1.8652c-0.6192,-0.0255 -1.2205,0.3151 -1.502,0.9121l-0.3066,0.6504C11.9058,2.7828 8.7097,4.2849 7.3239,7.2246L4.8434,12.4883 2.0212,13.502 1.57,14.4609l16.2813,7.6758 0.4512,-0.959 -1.0137,-2.8223 2.4824,-5.2637c1.3858,-2.9398 0.5112,-6.3591 -1.9316,-8.3066l0.3066,-0.6523C18.5214,3.3368 18.1824,2.3928 17.3864,2.0176 17.1874,1.9238 16.9776,1.8737 16.7712,1.8652ZM11.8044,6.1309 L12.2009,6.3184c-0.0939,2.6839 -0.1314,5.0824 -0.1133,7.1953l0.0977,0.0527 5.7012,-4.5684 0.2988,0.1406C17.2298,11.9735 16.3521,14.8015 15.5544,17.625c-0.1097,-0.0803 -0.3251,-0.1952 -0.6484,-0.3477 -0.2727,-0.1285 -0.4756,-0.2106 -0.6074,-0.2441 0.5635,-1.5388 1.2386,-3.539 2.0234,-6.002l-0.0449,-0.0273c-1.7579,1.3758 -3.5322,2.8448 -5.3223,4.4102l-0.2266,-0.1074c0.1229,-2.5131 0.1795,-4.8062 0.1719,-6.8809l-0.0527,-0.0254C9.4478,10.4402 8.2534,12.2124 7.2634,13.7168 7.1848,13.6512 7.0715,13.5835 6.9235,13.5137 6.7482,13.431 6.6101,13.3802 6.5095,13.3613 8.6233,10.5536 10.3888,8.1441 11.8044,6.1309ZM7.4802,18.3633c-0.469,0.995 -0.0438,2.1794 0.9512,2.6484 0.995,0.469 2.1794,0.0438 2.6484,-0.9512z"/>
</group>
</vector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 945 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="39.34426"
android:viewportHeight="39.34426">
<group android:translateX="7.672131"
android:translateY="7.672131">
<path
android:fillColor="#FF000000"
android:pathData="m16.7712,1.8652c-0.6192,-0.0255 -1.2205,0.3151 -1.502,0.9121l-0.3066,0.6504C11.9058,2.7828 8.7097,4.2849 7.3239,7.2246L4.8434,12.4883 2.0212,13.502 1.57,14.4609l16.2813,7.6758 0.4512,-0.959 -1.0137,-2.8223 2.4824,-5.2637c1.3858,-2.9398 0.5112,-6.3591 -1.9316,-8.3066l0.3066,-0.6523C18.5214,3.3368 18.1824,2.3928 17.3864,2.0176 17.1874,1.9238 16.9776,1.8737 16.7712,1.8652ZM11.8044,6.1309 L12.2009,6.3184c-0.0939,2.6839 -0.1314,5.0824 -0.1133,7.1953l0.0977,0.0527 5.7012,-4.5684 0.2988,0.1406C17.2298,11.9735 16.3521,14.8015 15.5544,17.625c-0.1097,-0.0803 -0.3251,-0.1952 -0.6484,-0.3477 -0.2727,-0.1285 -0.4756,-0.2106 -0.6074,-0.2441 0.5635,-1.5388 1.2386,-3.539 2.0234,-6.002l-0.0449,-0.0273c-1.7579,1.3758 -3.5322,2.8448 -5.3223,4.4102l-0.2266,-0.1074c0.1229,-2.5131 0.1795,-4.8062 0.1719,-6.8809l-0.0527,-0.0254C9.4478,10.4402 8.2534,12.2124 7.2634,13.7168 7.1848,13.6512 7.0715,13.5835 6.9235,13.5137 6.7482,13.431 6.6101,13.3802 6.5095,13.3613 8.6233,10.5536 10.3888,8.1441 11.8044,6.1309ZM7.4802,18.3633c-0.469,0.995 -0.0438,2.1794 0.9512,2.6484 0.995,0.469 2.1794,0.0438 2.6484,-0.9512z"/>
</group>
</vector>

View file

@ -0,0 +1,12 @@
<?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" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFC107</color>
</resources>

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting -->
<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>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">@android:color/white</item>
</style>
</resources>

View file

@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.johrpan.memor">
<!-- 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"/>
</manifest>

31
android/build.gradle Normal file
View file

@ -0,0 +1,31 @@
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}

View file

@ -0,0 +1,4 @@
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true

View file

@ -0,0 +1,6 @@
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip

15
android/settings.gradle Normal file
View file

@ -0,0 +1,15 @@
include ':app'
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
def plugins = new Properties()
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
if (pluginsFile.exists()) {
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
}
plugins.each { name, path ->
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
include ":$name"
project(":$name").projectDir = pluginDirectory
}