1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-06 19:52:04 +00:00

Add-to-app samples using plugin (#152)

This commit is contained in:
Andrew Brogdon
2019-10-16 15:53:29 -07:00
committed by GitHub
parent 64cfc2bdc7
commit bfdc21841c
61 changed files with 2124 additions and 89 deletions

View File

@@ -18,7 +18,6 @@ android {
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {

View File

@@ -1,21 +0,0 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

View File

@@ -9,7 +9,6 @@ import io.flutter.embedding.engine.FlutterEngine
import io.flutter.embedding.engine.FlutterEngineCache
import io.flutter.embedding.engine.dart.DartExecutor
import io.flutter.plugin.common.MethodChannel
import io.flutter.view.FlutterMain
const val ENGINE_ID = "1"
@@ -21,9 +20,6 @@ class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
FlutterMain.startInitialization(this)
FlutterMain.ensureInitializationComplete(this, null)
val flutterEngine = FlutterEngine(this)
flutterEngine
.dartExecutor
@@ -42,7 +38,6 @@ class MyApplication : Application() {
reportCounter()
}
"requestCounter" -> {
print("requestCounter")
reportCounter()
}
}

View File

@@ -5,7 +5,6 @@ buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'