Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d78d467

Browse files
v1.0.2 update
1 parent 0fb3c3a commit d78d467

File tree

10 files changed

+286
-226
lines changed

10 files changed

+286
-226
lines changed

‎android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ flutter {
7676

7777
dependencies {
7878
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
79-
implementation platform('com.google.firebase:firebase-bom:26.2.0')
79+
//implementation platform('com.google.firebase:firebase-bom:26.2.0')
8080
implementation 'com.google.firebase:firebase-analytics'
8181
implementation 'com.google.firebase:firebase-core:17.0.0'
82-
implementation 'com.google.firebase:firebase-messaging:20.1.5'
82+
implementation 'com.google.firebase:firebase-messaging:20.1.5'
8383
}

‎android/app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,15 @@
3636
android:name="io.flutter.embedding.android.SplashScreenDrawable"
3737
android:resource="@drawable/launch_background"
3838
/>
39+
<intent-filter>
40+
<action android:name="FLUTTER_NOTIFICATION_CLICK" />
41+
<category android:name="android.intent.category.DEFAULT" />
42+
</intent-filter>
3943
<intent-filter>
4044
<action android:name="android.intent.action.MAIN"/>
4145
<category android:name="android.intent.category.LAUNCHER"/>
4246
</intent-filter>
43-
<intent-filter>
44-
<action android:name="FLUTTER_NOTIFICATION_CLICK" />
45-
<category android:name="android.intent.category.DEFAULT" />
46-
</intent-filter>
47+
4748
</activity>
4849
<!-- Don't delete the meta-data below.
4950
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.obounce.oneapp1
2+
3+
import androidx.annotation.NonNull;
4+
import io.flutter.embedding.android.FlutterFragmentActivity
5+
import io.flutter.embedding.engine.FlutterEngine
6+
import io.flutter.plugins.GeneratedPluginRegistrant
7+
8+
class MainActivity: FlutterFragmentActivity() {
9+
override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
10+
GeneratedPluginRegistrant.registerWith(flutterEngine);
11+
}
12+
}

‎android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.3.50'
2+
ext.kotlin_version = '1.3.61'
33
repositories {
44
google()
55
jcenter()

‎integration_test/app_test.dart

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// This is a basic Flutter integration test.
2+
//
3+
// To perform an interaction with a widget in your test, use the WidgetTester
4+
// utility that Flutter provides. For example, you can send tap and scroll
5+
// gestures. You can also use WidgetTester to find child widgets in the widget
6+
// tree, read text, and verify that the values of widget properties are correct.
7+
8+
import 'package:flutter/material.dart';
9+
import 'package:flutter_test/flutter_test.dart';
10+
import 'package:integration_test/integration_test.dart';
11+
12+
import 'package:hashnode/main.dart' as app;
13+
14+
void main() => run(_testMain);
15+
16+
void _testMain() {
17+
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
18+
// Build our app and trigger a frame.
19+
app.main();
20+
21+
// Trigger a frame.
22+
await tester.pumpAndSettle();
23+
24+
// Verify that our counter starts at 0.
25+
expect(find.text('0'), findsOneWidget);
26+
expect(find.text('1'), findsNothing);
27+
28+
// Tap the '+' icon and trigger a frame.
29+
await tester.tap(find.byIcon(Icons.add));
30+
await tester.pump();
31+
32+
// Verify that our counter has incremented.
33+
expect(find.text('0'), findsNothing);
34+
expect(find.text('1'), findsOneWidget);
35+
});
36+
}

‎integration_test/driver.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// This file is provided as a convenience for running integration tests via the
2+
// flutter drive command.
3+
//
4+
// flutter drive --driver integration_test/driver.dart --target integration_test/app_test.dart
5+
6+
import 'package:integration_test/integration_test_driver.dart';
7+
8+
Future<void> main() => integrationDriver();

‎lib/main.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import 'package:firebase_core/firebase_core.dart';
77
import 'package:flutter/material.dart';
8+
import 'package:google_fonts/google_fonts.dart';
89
import 'functions/locator.dart';
910
import 'screens/homepage.dart';
1011
import 'theme/colors.dart';
@@ -13,7 +14,7 @@ Future<void> main() async {
1314
WidgetsFlutterBinding.ensureInitialized();
1415
await Firebase.initializeApp();
1516
setupLocator();
16-
runApp(MyApp());
17+
runApp(MyApp());
1718
}
1819

1920
class MyApp extends StatelessWidget {
@@ -26,6 +27,7 @@ class MyApp extends StatelessWidget {
2627
accentColor: AppColor().mainColor,
2728
primaryIconTheme: IconThemeData(color: AppColor().mainColor),
2829
visualDensity: VisualDensity.comfortable,
30+
textTheme: GoogleFonts.poppinsTextTheme()
2931
),
3032
debugShowCheckedModeBanner: false,
3133
home: HomePgae(),

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /