Created
June 24, 2018 15:38
-
-
Save lucacasonato/3817697e202fe524da05e863fc14373a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.") | |
} | |
apply plugin: 'com.android.application' | |
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" | |
android { | |
compileSdkVersion 27 | |
lintOptions { | |
disable 'InvalidPackage' | |
} | |
defaultConfig { | |
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). | |
applicationId "ga.ocrooster.app" | |
minSdkVersion 16 | |
targetSdkVersion 27 | |
versionCode 1000 | |
versionName "1.0.0" | |
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
} | |
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 { | |
testImplementation 'junit:junit:4.12' | |
androidTestImplementation 'com.android.support.test:runner:1.0.1' | |
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' | |
compile 'com.google.firebase:firebase-messaging:17.0.0' | |
} | |
apply plugin: 'com.google.gms.google-services' | |
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
google() | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:3.0.1' | |
classpath 'com.google.gms:google-services:4.0.1' // google-services plugin | |
} | |
} | |
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="ga.ocrooster.app"> | |
<!-- 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="OC Rooster" | |
android:icon="@mipmap/ic_launcher"> | |
<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> | |
<intent-filter> | |
<action android:name="FLUTTER_NOTIFICATION_CLICK" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
</intent-filter> | |
</activity> | |
</application> | |
</manifest> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment