Skip to content

Commit f0aaa23

Browse files
committed
Configure Android release
1 parent cb593e1 commit f0aaa23

File tree

7 files changed

+28
-70
lines changed

7 files changed

+28
-70
lines changed

android/app/build.gradle

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
plugins {
2-
id "com.android.application"
3-
// START: FlutterFire Configuration
4-
id 'com.google.gms.google-services'
5-
id 'com.google.firebase.crashlytics'
6-
// END: FlutterFire Configuration
2+
id "com.android.application"
73
id "kotlin-android"
84
id "dev.flutter.flutter-gradle-plugin"
5+
id "com.google.gms.google-services"
6+
id "com.google.firebase.crashlytics"
97
}
108

119
def localProperties = new Properties()
@@ -61,6 +59,15 @@ android {
6159
// Signing with the debug keys for now, so `flutter run --release` works.
6260
signingConfig signingConfigs.debug
6361
}
62+
63+
applicationVariants.all { variant ->
64+
variant.outputs.each {
65+
output ->
66+
def name = "observatory-v${variant.versionName}.apk"
67+
68+
output.outputFileName = name
69+
}
70+
}
6471
}
6572
}
6673

android/build.gradle

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
buildscript {
2-
ext.kotlin_version = '1.7.10'
3-
repositories {
4-
google()
5-
mavenCentral()
6-
}
7-
8-
dependencies {
9-
// START: FlutterFire Configuration
10-
classpath 'com.google.gms:google-services:4.3.15'
11-
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
12-
// END: FlutterFire Configuration
13-
classpath 'com.android.tools.build:gradle:7.3.0'
14-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
15-
}
16-
}
17-
181
allprojects {
192
repositories {
203
google()

android/settings.gradle

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,23 @@ pluginManagement {
55
def flutterSdkPath = properties.getProperty("flutter.sdk")
66
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
77
return flutterSdkPath
8-
}
9-
settings.ext.flutterSdkPath = flutterSdkPath()
8+
}()
109

11-
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
10+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
1211

13-
plugins {
14-
id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
12+
repositories {
13+
google()
14+
mavenCentral()
15+
gradlePluginPortal()
1516
}
1617
}
1718

18-
include ":app"
19+
plugins {
20+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21+
id "com.android.application" version "7.3.0" apply false
22+
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
23+
id "com.google.gms.google-services" version "4.4.0" apply false
24+
id "com.google.firebase.crashlytics" version "2.9.9" apply false
25+
}
1926

20-
apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"
27+
include ":app"

lib/main.dart

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import 'package:firebase_core/firebase_core.dart';
44
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
55
import 'package:flutter/foundation.dart';
66
import 'package:flutter/material.dart';
7-
import 'package:flutter/services.dart';
87
import 'package:flutter_riverpod/flutter_riverpod.dart';
98
import 'package:get_it/get_it.dart';
109
import 'package:go_router/go_router.dart';
@@ -21,7 +20,6 @@ import 'package:observatory/tasks/check_waitlist.dart';
2120
import 'package:observatory/tasks/constants.dart';
2221
import 'package:path_provider/path_provider.dart';
2322
import 'package:supabase_flutter/supabase_flutter.dart';
24-
import 'package:uni_links/uni_links.dart';
2523
import 'package:workmanager/workmanager.dart';
2624

2725
Future<void> initSettings() async {
@@ -58,18 +56,6 @@ Future<void> initSupabase() async {
5856
);
5957
}
6058

61-
Future<void> initUniLinks() async {
62-
try {
63-
final String? initialLink = await getInitialLink();
64-
65-
if (initialLink == null) {
66-
return;
67-
}
68-
} on PlatformException {
69-
return;
70-
}
71-
}
72-
7359
@pragma('vm:entry-point')
7460
void callbackDispatcher() {
7561
Workmanager().executeTask((task, inputData) async {

lib/waitlist/ui/collapse_pinned_list_tile.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class CollapsePinnedListTile extends ConsumerWidget {
1616
);
1717

1818
return SwitchListTile(
19-
title: const Text('Group Pinned'),
19+
title: const Text('Collapse Pinned'),
2020
subtitle: const Text(
21-
'Collapse pinned games into a separate category.',
21+
'Collapse pinned games into a separate category on your waitlist.',
2222
),
2323
value: collapse,
2424
onChanged: (value) {

pubspec.lock

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,30 +1558,6 @@ packages:
15581558
url: "https://pub.dev"
15591559
source: hosted
15601560
version: "1.3.2"
1561-
uni_links:
1562-
dependency: "direct main"
1563-
description:
1564-
name: uni_links
1565-
sha256: "051098acfc9e26a9fde03b487bef5d3d228ca8f67693480c6f33fd4fbb8e2b6e"
1566-
url: "https://pub.dev"
1567-
source: hosted
1568-
version: "0.5.1"
1569-
uni_links_platform_interface:
1570-
dependency: transitive
1571-
description:
1572-
name: uni_links_platform_interface
1573-
sha256: "929cf1a71b59e3b7c2d8a2605a9cf7e0b125b13bc858e55083d88c62722d4507"
1574-
url: "https://pub.dev"
1575-
source: hosted
1576-
version: "1.0.0"
1577-
uni_links_web:
1578-
dependency: transitive
1579-
description:
1580-
name: uni_links_web
1581-
sha256: "7539db908e25f67de2438e33cc1020b30ab94e66720b5677ba6763b25f6394df"
1582-
url: "https://pub.dev"
1583-
source: hosted
1584-
version: "0.1.0"
15851561
universal_io:
15861562
dependency: transitive
15871563
description:

pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ dependencies:
1212

1313
cupertino_icons: ^1.0.8
1414
url_launcher: ^6.3.0
15-
uni_links: ^0.5.1
1615
flutter_riverpod: ^2.5.1
1716
cached_network_image: ^3.4.0
1817
flutter_spinkit: ^5.2.1

0 commit comments

Comments
 (0)