feat : new injection logic

test : some file :)
chore : upgrade android gradle
This commit is contained in:
2025-08-19 11:22:34 +03:30
parent 9b04c0374b
commit 7c3c1280b2
47 changed files with 1139 additions and 377 deletions

View File

@@ -0,0 +1,16 @@
import 'package:rasadyar_core/core.dart';
part 'tmp_locations.g.dart';
@HiveType(typeId: 100)
class TmpLocations extends HiveObject{
@HiveField(0)
double? lat;
@HiveField(1)
double? long;
TmpLocations({this.lat, this.long});
}

View File

@@ -0,0 +1,43 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'tmp_locations.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class TmpLocationsAdapter extends TypeAdapter<TmpLocations> {
@override
final typeId = 100;
@override
TmpLocations read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return TmpLocations()
..lat = (fields[0] as num?)?.toDouble()
..long = (fields[1] as num?)?.toDouble();
}
@override
void write(BinaryWriter writer, TmpLocations obj) {
writer
..writeByte(2)
..writeByte(0)
..write(obj.lat)
..writeByte(1)
..write(obj.long);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is TmpLocationsAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}