Skip to content

Commit 65a5ce0

Browse files
change the project strueture and add api keys
1 parent 50a9683 commit 65a5ce0

File tree

73 files changed

+859
-643
lines changed

Some content is hidden

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

73 files changed

+859
-643
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ migrate_working_dir/
2727
.dart_tool/
2828
.flutter-plugins
2929
.flutter-plugins-dependencies
30-
.packages
3130
.pub-cache/
3231
.pub/
3332
/build/

.metadata

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,38 @@
11
# This file tracks properties of this Flutter project.
22
# Used by Flutter tool to assess capabilities and perform upgrades etc.
33
#
4-
# This file should be version controlled.
4+
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
8-
channel: stable
7+
revision: "2663184aa79047d0a33a14a3b607954f8fdd8730"
8+
channel: "stable"
99

1010
project_type: app
1111

1212
# Tracks metadata for the flutter migrate command
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
17-
base_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
16+
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
17+
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
1818
- platform: android
19-
create_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
20-
base_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
19+
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
20+
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
2121
- platform: ios
22-
create_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
23-
base_revision: b8f7f1f9869bb2d116aa6a70dbeac61000b52849
22+
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
23+
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
24+
- platform: linux
25+
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
26+
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
27+
- platform: macos
28+
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
29+
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
30+
- platform: web
31+
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
32+
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
33+
- platform: windows
34+
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
35+
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
2436

2537
# User provided section
2638

analysis_options.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
23+
rules:
24+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
25+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26+
27+
# Additional information about this file can be found at
28+
# https://dart.dev/guides/language/analysis-options

android/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gradle-wrapper.jar
77
GeneratedPluginRegistrant.java
88

99
# Remember to never publicly share your keystore.
10-
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
10+
# See https://flutter.dev/to/reference-keystore
1111
key.properties
1212
**/*.keystore
1313
**/*.jks

android/app/build.gradle

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,55 +21,51 @@ if (flutterVersionName == null) {
2121
flutterVersionName = '1.0'
2222
}
2323

24-
plugins {
25-
id 'com.android.application'
26-
id 'kotlin-android'
27-
id 'flutter'
28-
}
24+
apply plugin: 'com.android.application'
25+
apply plugin: 'kotlin-android'
26+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2927

3028
android {
31-
compileSdkVersion flutter.compileSdkVersion
32-
ndkVersion flutter.ndkVersion
29+
namespace "com.example.flutter_chatgpt_text_and_image_processing"
30+
compileSdkVersion rootProject.ext.compileSdkVersion
31+
ndkVersion "25.1.8937393"
3332

3433
compileOptions {
3534
sourceCompatibility JavaVersion.VERSION_17
3635
targetCompatibility JavaVersion.VERSION_17
3736
}
3837

39-
kotlinOptions {
40-
jvmTarget = '17'
41-
}
42-
43-
sourceSets {
44-
main.java.srcDirs += 'src/main/kotlin'
45-
}
46-
4738
defaultConfig {
48-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
49-
applicationId "com.example.flutter_chatgpt"
50-
// You can update the following values to match your application needs.
51-
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
52-
minSdkVersion flutter.minSdkVersion
53-
targetSdkVersion flutter.targetSdkVersion
39+
applicationId "com.example.flutter_chatgpt_text_and_image_processing"
40+
minSdkVersion 21
41+
targetSdkVersion rootProject.ext.compileSdkVersion
5442
versionCode flutterVersionCode.toInteger()
5543
versionName flutterVersionName
44+
multiDexEnabled true
5645
}
5746

5847
buildTypes {
5948
release {
60-
minifyEnabled false
61-
shrinkResources false
62-
// TODO: Add your own signing config for the release build.
63-
// Signing with the debug keys for now, so `flutter run --release` works.
6449
signingConfig signingConfigs.debug
6550
}
6651
}
52+
53+
sourceSets {
54+
main.java.srcDirs += 'src/main/kotlin'
55+
}
6756
}
6857

6958
flutter {
7059
source '../..'
7160
}
7261

62+
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
63+
kotlinOptions {
64+
jvmTarget = '17'
65+
}
66+
}
67+
7368
dependencies {
74-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
69+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
70+
implementation 'androidx.multidex:multidex:2.0.1'
7571
}

android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.flutter_chatgpt">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- The INTERNET permission is required for development. Specifically,
43
the Flutter tool needs it to communicate with the running application
54
to allow setting breakpoints, to provide hot reload, etc.

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.flutter_chatgpt">
2+
package="com.example.flutter_chatgpt_text_and_image_processing">
33
<application
44
android:label="flutter_chatgpt"
55
android:name="${applicationName}"

android/app/src/main/kotlin/com/example/flutter_chatgpt/MainActivity.kt

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.example.flutter_chatgpt_text_and_image_processing
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity: FlutterActivity()

android/app/src/profile/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.flutter_chatgpt">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- The INTERNET permission is required for development. Specifically,
43
the Flutter tool needs it to communicate with the running application
54
to allow setting breakpoints, to provide hot reload, etc.

0 commit comments

Comments
 (0)