File tree Expand file tree Collapse file tree 5 files changed +38
-8
lines changed
src/main/kotlin/com/example/example Expand file tree Collapse file tree 5 files changed +38
-8
lines changed Original file line number Diff line number Diff line change @@ -6,22 +6,22 @@ plugins {
66}
77
88android {
9- namespace = " com.codelessly.sdk .example"
9+ namespace = " com.example .example"
1010 compileSdk = flutter. compileSdkVersion
1111 ndkVersion = flutter. ndkVersion
1212
1313 compileOptions {
14- sourceCompatibility = JavaVersion . VERSION_1_8
15- targetCompatibility = JavaVersion . VERSION_1_8
14+ sourceCompatibility = JavaVersion . VERSION_17
15+ targetCompatibility = JavaVersion . VERSION_17
1616 }
1717
1818 kotlinOptions {
19- jvmTarget = JavaVersion . VERSION_1_8
19+ jvmTarget = JavaVersion . VERSION_17
2020 }
2121
2222 defaultConfig {
2323 // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24- applicationId = " com.codelessly.sdk .example"
24+ applicationId = " com.example .example"
2525 // You can update the following values to match your application needs.
2626 // For more information, see: https://flutter.dev/to/review-gradle-config.
2727 minSdk = 23
Original file line number Diff line number Diff line change 1- package com.codelessly.sdk .example
1+ package com.example .example
22
33import io.flutter.embedding.android.FlutterActivity
44
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22distributionPath =wrapper/dists
33zipStoreBase =GRADLE_USER_HOME
44zipStorePath =wrapper/dists
5- distributionUrl =https\://services.gradle.org/distributions/gradle-8.3 -all.zip
5+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.9 -all.zip
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ pluginManagement {
1818
1919plugins {
2020 id " dev.flutter.flutter-plugin-loader" version " 1.0.0"
21- id " com.android.application" version " 8.1.0 " apply false
21+ id " com.android.application" version " 8.3.2 " apply false
2222 id " org.jetbrains.kotlin.android" version " 1.8.22" apply false
2323}
2424
Original file line number Diff line number Diff line change 1+ // This is a basic Flutter widget test.
2+ //
3+ // To perform an interaction with a widget in your test, use the WidgetTester
4+ // utility in the flutter_test package. 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+
11+ import 'package:example/main.dart' ;
12+
13+ void main () {
14+ testWidgets ('Counter increments smoke test' , (WidgetTester tester) async {
15+ // Build our app and trigger a frame.
16+ await tester.pumpWidget (const MyApp ());
17+
18+ // Verify that our counter starts at 0.
19+ expect (find.text ('0' ), findsOneWidget);
20+ expect (find.text ('1' ), findsNothing);
21+
22+ // Tap the '+' icon and trigger a frame.
23+ await tester.tap (find.byIcon (Icons .add));
24+ await tester.pump ();
25+
26+ // Verify that our counter has incremented.
27+ expect (find.text ('0' ), findsNothing);
28+ expect (find.text ('1' ), findsOneWidget);
29+ });
30+ }
You can’t perform that action at this time.
0 commit comments