Skip to content

Commit d3090bb

Browse files
committed
fixup: gitignore 2
1 parent f180d61 commit d3090bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1328
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// Copyright 2014 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
plugins {
6+
id "com.android.application"
7+
id "dev.flutter.flutter-gradle-plugin"
8+
}
9+
10+
def localProperties = new Properties()
11+
def localPropertiesFile = rootProject.file('local.properties')
12+
if (localPropertiesFile.exists()) {
13+
localPropertiesFile.withInputStream { stream ->
14+
localProperties.load(stream)
15+
}
16+
}
17+
18+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
19+
if (flutterVersionCode == null) {
20+
flutterVersionCode = '1'
21+
}
22+
23+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
24+
if (flutterVersionName == null) {
25+
flutterVersionName = '1.0'
26+
}
27+
28+
android {
29+
namespace "com.yourcompany.microbenchmarks"
30+
compileSdk flutter.compileSdkVersion
31+
32+
// Flutter's CI installs the NDK at a non-standard path.
33+
// This non-standard structure is initially created by
34+
// https://github.com/flutter/engine/blob/3.27.0/tools/android_sdk/create_cipd_packages.sh.
35+
String systemNdkPath = System.getenv("ANDROID_NDK_PATH")
36+
if (systemNdkPath != null) {
37+
ndkVersion = flutter.ndkVersion
38+
ndkPath = systemNdkPath
39+
}
40+
41+
compileOptions {
42+
sourceCompatibility JavaVersion.VERSION_1_8
43+
targetCompatibility JavaVersion.VERSION_1_8
44+
}
45+
46+
defaultConfig {
47+
minSdkVersion flutter.minSdkVersion
48+
targetSdkVersion flutter.targetSdkVersion
49+
versionCode flutterVersionCode.toInteger()
50+
versionName flutterVersionName
51+
}
52+
53+
buildTypes {
54+
release {
55+
// TODO: Add your own signing config for the release build.
56+
// Signing with the debug keys for now, so `flutter run --release` works.
57+
signingConfig signingConfigs.debug
58+
}
59+
}
60+
}
61+
62+
flutter {
63+
source '../..'
64+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!-- Copyright 2014 The Flutter Authors. All rights reserved.
2+
Use of this source code is governed by a BSD-style license that can be
3+
found in the LICENSE file. -->
4+
5+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
6+
7+
<uses-permission android:name="android.permission.INTERNET"/>
8+
9+
<application android:name="${applicationName}" android:label="microbenchmarks" android:icon="@mipmap/ic_launcher">
10+
<activity android:name="io.flutter.embedding.android.FlutterActivity"
11+
android:launchMode="singleTop"
12+
android:theme="@android:style/Theme.Black.NoTitleBar"
13+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
14+
android:hardwareAccelerated="true"
15+
android:windowSoftInputMode="adjustResize"
16+
android:exported="true">
17+
<intent-filter>
18+
<action android:name="android.intent.action.MAIN"/>
19+
<category android:name="android.intent.category.LAUNCHER"/>
20+
</intent-filter>
21+
</activity>
22+
<!-- Don't delete the meta-data below.
23+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
24+
<meta-data
25+
android:name="flutterEmbedding"
26+
android:value="2" />
27+
</application>
28+
</manifest>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package io.flutter.plugins;
2+
3+
import androidx.annotation.Keep;
4+
import androidx.annotation.NonNull;
5+
import io.flutter.Log;
6+
7+
import io.flutter.embedding.engine.FlutterEngine;
8+
9+
/**
10+
* Generated file. Do not edit.
11+
* This file is generated by the Flutter tool based on the
12+
* plugins that support the Android platform.
13+
*/
14+
@Keep
15+
public final class GeneratedPluginRegistrant {
16+
private static final String TAG = "GeneratedPluginRegistrant";
17+
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
18+
try {
19+
flutterEngine.getPlugins().add(new dev.fluttercommunity.plus.packageinfo.PackageInfoPlugin());
20+
} catch (Exception e) {
21+
Log.e(TAG, "Error registering plugin package_info_plus, dev.fluttercommunity.plus.packageinfo.PackageInfoPlugin", e);
22+
}
23+
try {
24+
flutterEngine.getPlugins().add(new io.sentry.flutter.SentryFlutterPlugin());
25+
} catch (Exception e) {
26+
Log.e(TAG, "Error registering plugin sentry_flutter, io.sentry.flutter.SentryFlutterPlugin", e);
27+
}
28+
}
29+
}
544 Bytes
Loading
442 Bytes
Loading
721 Bytes
Loading
1.01 KB
Loading
1.41 KB
Loading
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright 2014 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
allprojects {
6+
repositories {
7+
google()
8+
mavenCentral()
9+
}
10+
}
11+
12+
rootProject.layout.buildDirectory.value(rootProject.layout.buildDirectory.dir("../../build").get())
13+
14+
subprojects {
15+
project.layout.buildDirectory.value(rootProject.layout.buildDirectory.dir(project.name).get())
16+
}
17+
subprojects {
18+
project.evaluationDependsOn(':app')
19+
20+
dependencyLocking {
21+
ignoredDependencies.add('io.flutter:*')
22+
lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile")
23+
lockAllConfigurations()
24+
}
25+
}
26+
27+
tasks.register("clean", Delete) {
28+
delete rootProject.layout.buildDirectory
29+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
2+
android.useAndroidX=true
3+
android.enableJetifier=true

0 commit comments

Comments
 (0)