Skip to content

Commit

Permalink
updated to version 1.0.1+01
Browse files Browse the repository at this point in the history
  • Loading branch information
nixrajput committed Sep 30, 2022
1 parent a85cb81 commit 395c822
Show file tree
Hide file tree
Showing 47 changed files with 3,342 additions and 556 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
/build/

/lib/constants/secrets.dart
/lib/constants/urls.dart

# Web related
lib/generated_plugin_registrant.dart
Expand Down
9 changes: 7 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 32
compileSdkVersion 33

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand All @@ -43,14 +43,19 @@ android {
jvmTarget = '1.8'
}

lintOptions {
disable 'InvalidPackage'
checkReleaseBuilds false
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
applicationId "com.nixlab.livebox"
minSdkVersion 20
targetSdkVersion 32
targetSdkVersion 33
multiDexEnabled true
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
2 changes: 2 additions & 0 deletions lib/apis/models/entities/phone.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import 'package:copy_with_extension/copy_with_extension.dart';
import 'package:json_annotation/json_annotation.dart';

part 'phone.g.dart';

@CopyWith()
@JsonSerializable()
class Phone {
Phone({
Expand Down
64 changes: 64 additions & 0 deletions lib/apis/models/entities/phone.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 50 additions & 29 deletions lib/apis/models/entities/profile.dart
Original file line number Diff line number Diff line change
@@ -1,34 +1,40 @@
import 'package:copy_with_extension/copy_with_extension.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:video_calling_app/apis/models/entities/phone.dart';
import 'package:video_calling_app/apis/models/entities/user_avatar.dart';

part 'profile.g.dart';

@CopyWith()
@JsonSerializable()
class Profile {
Profile({
required this.id,
required this.fname,
required this.lname,
required this.email,
required this.emailVerified,
required this.uname,
this.avatar,
this.phone,
this.countryCode,
this.phoneVerified,
this.gender,
this.dob,
this.about,
this.profession,
this.location,
this.website,
required this.postsCount,
required this.followersCount,
required this.followingCount,
required this.role,
required this.accountType,
required this.isPrivate,
required this.accountStatus,
required this.verificationStatus,
required this.isValid,
required this.isVerified,
this.token,
this.expiresAt,
this.otp,
this.resetPasswordToken,
this.resetPasswordExpire,
this.lastActive,
required this.createdAt,
required this.updatedAt,
});

factory Profile.fromJson(Map<String, dynamic> json) =>
Expand All @@ -48,14 +54,23 @@ class Profile {
@JsonKey(name: 'email')
String email;

@JsonKey(name: 'emailVerified')
bool emailVerified;

@JsonKey(name: 'uname')
String uname;

@JsonKey(name: 'avatar')
UserAvatar? avatar;

@JsonKey(name: 'phone')
Phone? phone;
String? phone;

@JsonKey(name: 'countryCode')
String? countryCode;

@JsonKey(name: 'phoneVerified')
bool? phoneVerified;

@JsonKey(name: 'gender')
String? gender;
Expand All @@ -69,36 +84,42 @@ class Profile {
@JsonKey(name: 'profession')
String? profession;

@JsonKey(name: 'role')
String role;
@JsonKey(name: 'location')
String? location;

@JsonKey(name: 'accountType')
String accountType;
@JsonKey(name: 'website')
String? website;

@JsonKey(name: 'accountStatus')
String accountStatus;
@JsonKey(name: 'postsCount')
int postsCount;

@JsonKey(name: 'isVerified')
bool isVerified;
@JsonKey(name: 'followersCount')
int followersCount;

@JsonKey(name: 'token')
String? token;
@JsonKey(name: 'followingCount')
int followingCount;

@JsonKey(name: 'expiresAt')
String? expiresAt;
@JsonKey(name: 'accountStatus')
String accountStatus;

@JsonKey(name: 'otp')
String? otp;
@JsonKey(name: 'isPrivate')
bool isPrivate;

@JsonKey(name: 'resetPasswordToken')
String? resetPasswordToken;
@JsonKey(name: 'isValid')
bool isValid;

@JsonKey(name: 'isVerified')
bool isVerified;

@JsonKey(name: 'resetPasswordExpire')
String? resetPasswordExpire;
@JsonKey(name: 'verificationStatus')
String verificationStatus;

@JsonKey(name: 'lastActive')
DateTime? lastActive;
@JsonKey(name: 'role')
String role;

@JsonKey(name: 'createdAt')
DateTime createdAt;

@JsonKey(name: 'updatedAt')
final DateTime updatedAt;
}
Loading

0 comments on commit 395c822

Please sign in to comment.