Skip to content

Commit

Permalink
Merge pull request #2 from ArpitAswal/newfeature
Browse files Browse the repository at this point in the history
Newfeature
  • Loading branch information
ArpitAswal authored Jan 11, 2025
2 parents 55f1762 + 2558fef commit 9f63b83
Show file tree
Hide file tree
Showing 36 changed files with 3,125 additions and 775 deletions.
4 changes: 4 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.CAMERA." />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<queries>
<intent>
<action android:name="android.speech.RecognitionService" />
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
4 changes: 2 additions & 2 deletions android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.1.0" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
id "com.android.application" version "8.5.0" apply false
id "org.jetbrains.kotlin.android" version "1.9.0" apply false
}

include ":app"
Binary file added assets/images/botImage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
268 changes: 0 additions & 268 deletions lib/controllers/home_controller.dart

This file was deleted.

38 changes: 38 additions & 0 deletions lib/data/adapters/models_adapter.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import 'package:hive/hive.dart';

part 'models_adapter.g.dart';

@HiveType(typeId: 0)
class HiveChatBox extends HiveObject {
@HiveField(0)
String id;

@HiveField(1)
String title;

@HiveField(2)
List<HiveChatBoxMessages> messages;

HiveChatBox({required this.id, required this.title, required this.messages});
}

@HiveType(typeId: 1)
class HiveChatBoxMessages extends HiveObject {
@HiveField(0)
String text;

@HiveField(1)
bool isUser;

@HiveField(2)
List<String>? imagePath;

@HiveField(3)
String? filePath;

HiveChatBoxMessages(
{required this.text,
required this.isUser,
this.imagePath,
this.filePath});
}
Loading

0 comments on commit 9f63b83

Please sign in to comment.