Fiberchat - Whatsapp Clone Full Chat & Call App | Android & iOS Flutter Chat app

Fiberchat - Whatsapp Clone Full Chat & Call App | Android & iOS Flutter Chat app 2.0.12 (UT)

No permission to download

arkobd

Active member
Sep 8, 2018
464
74
28
No matter what I do I get this error

PS C:\Users\Lenovo\Desktop\fiberchat_userapp_v1.0.50_codecanyon_edition\SourceCode\messenger_theme_sourcecode\fiberchat> flutter build appbundle

Building with sound null safety

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/overlay_support-1.2.1/lib/src/overlay_entry.dart:101:24: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance?.scheduleFrameCallback((_) => animateRemove());
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-3.2.0/lib/src/image_provider/cached_network_image_provider.dart:109:29: Warning: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null.
- 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/binding.dart').
() => PaintingBinding.instance?.imageCache?.evict(key),
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-3.2.0/lib/src/image_provider/multi_image_stream_completer.dart:152:22: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
- 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/scheduler/binding.dart').
SchedulerBinding.instance?.scheduleFrameCallback(_handleAppFrame);
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.3.1/lib/src/structs.g.dart:554:31: Error: Member not found: 'UnicodeChar'.
int get UnicodeChar => Char.UnicodeChar;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.3.1/lib/src/structs.g.dart:555:38: Error: Setter not found: 'UnicodeChar'.
set UnicodeChar(int value) => Char.UnicodeChar = value;
^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.3.1/lib/src/structs.g.dart:557:29: Error: Member not found: 'AsciiChar'.
int get AsciiChar => Char.AsciiChar;
^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-2.3.1/lib/src/structs.g.dart:558:36: Error: Setter not found: 'AsciiChar'.
set AsciiChar(int value) => Char.AsciiChar = value;
^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/emoji_picker_flutter-1.0.8/lib/src/emoji_picker.dart:133:35: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/binding.dart').
(value) => WidgetsBinding.instance!.addPostFrameCallback((_) {
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/story_view-0.13.2/lib/widgets/story_image.dart:49:25: Warning: Operand of null-aware operation '!' has type 'PaintingBinding' which excludes null.
- 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/binding.dart').
PaintingBinding.instance!.instantiateImageCodec(imageBytes).then(
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/giphy_get-3.0.1/lib/src/views/tab/giphy_tab_bar.dart:36:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance!.addPostFrameCallback((_) {
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-6.0.1/lib/src/extended_image.dart:1000:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance!.removeObserver(this);
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-6.0.1/lib/src/extended_image.dart:1029:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance!.addObserver(this);
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-6.0.1/lib/src/extended_image.dart:1211:26: Warning: Operand of null-aware operation '!' has type 'SemanticsBinding' which excludes null.
- 'SemanticsBinding' is from 'package:flutter/src/semantics/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/semantics/binding.dart').
SemanticsBinding.instance!.accessibilityFeatures.invertColors;
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.0/lib/src/extended_image_provider.dart:28:30: Warning: Operand of null-aware operation '!' has type 'PaintingBinding' which excludes null.
- 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/binding.dart').
return PaintingBinding.instance!.imageCache!;
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.0/lib/src/extended_image_provider.dart:28:40: Warning: Operand of null-aware operation '!' has type 'ImageCache' which excludes null.
- 'ImageCache' is from 'package:flutter/src/painting/image_cache.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/image_cache.dart').
return PaintingBinding.instance!.imageCache!;
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.0/lib/src/extended_image_provider.dart:97:39: Warning: Operand of null-aware operation '!' has type 'PaintingBinding' which excludes null.
- 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/binding.dart').
() => load(key, PaintingBinding.instance!.instantiateImageCodec),
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.0/lib/src/platform.dart:26:21: Warning: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null.
- 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/binding.dart').
PaintingBinding.instance?.imageCache?.clear();
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.0/lib/src/platform.dart:27:21: Warning: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null.
- 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/binding.dart').
PaintingBinding.instance?.imageCache?.clearLiveImages();
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image_library-3.1.0/lib/src/platform.dart:40:28: Warning: Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes null.
- 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/binding.dart').
return PaintingBinding.instance?.imageCache;
^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-6.0.1/lib/src/gesture_detector/velocity_tracker.dart:12:9: Error: Superclass has no constructor named 'VelocityTracker'.
: super(kind);
^^^^^


FAILURE: Build failed with an exception.

* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1156

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BU�LD FAILED in 46s
Running Gradle task 'bundleRelease'... 48,0s
Gradle task bundleRelease failed with exit code 1
Follow what I've said.
It'll solve the issue.
Also try to delete the pubspec.lock file and the clean flutter and then again pub get and then try to build.
If it Won't solve the issue. Try what I've said.cause i also got issue first time. Then i tried new one and it works
 

emreqxyy

Member
Oct 9, 2020
64
42
18
Turkey
www.hiddy.org
Follow what I've said.
It'll solve the issue.
Also try to delete the pubspec.lock file and the clean flutter and then again pub get and then try to build.
If it Won't solve the issue. Try what I've said.cause i also got issue first time. Then i tried new one and it works
Can you help me by connecting with Anydesk?
 

kahraba2

Member
Trusted Uploader
Banned User
May 8, 2022
42
40
18
El Sheikh Zayed ,Egypt
//************* © Copyrighted by Thinkcreative_Technologies. An Exclusive item of Envato market. Make sure you have purchased a Regular License OR Extended license for the Source Code from Envato to use this product. See the License Defination attached with source code. *********************

import 'dart:io';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:device_info/device_info.dart';
import 'package:fiberchat/Configs/Dbkeys.dart';
import 'package:fiberchat/Configs/app_constants.dart';
import 'package:fiberchat/Screens/homepage/homepage.dart';
import 'package:fiberchat/Screens/splash_screen/splash_screen.dart';
import 'package:fiberchat/Utils/batch_write_component.dart';
import 'package:fiberchat/Utils/error_codes.dart';
import 'package:fiberchat/Utils/unawaited.dart';
import 'package:fiberchat/main.dart';
import 'package:flutter/material.dart';
import 'package:flutter_linkify/flutter_linkify.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'dart:convert';
import 'package:firebase_core/firebase_core.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:http/http.dart' as web;

//::::: WARNING : DO NOT EDIT THIS PAGE OR ELSE YOU WILL FACE LICENSE VALIDATION ISSUES
class Initialize extends StatefulWidget {
const Initialize(
{Key? key,
required this.prefs,
required this.app,
required this.doc,
this.id})
: super(key: key);

final SharedPreferences prefs;
final String? id;
final String app;
final String doc;
@OverRide
_InitializeState createState() => _InitializeState();
}

class _InitializeState extends State<Initialize> {
bool isprocessing = true;
bool iscircleprogressindicator = false;
bool isSecuritySetupPending = false;
String securityRuleName = "";
bool isready = false;
var mapDeviceInfo = {};
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
String? deviceid;
bool isemulator = false;
DocumentSnapshot<Map<String, dynamic>>? doc;
Color mycolor = fiberchatDeepGreen;
String platform = "";
bool isDocHave = false;
initialise() async {
platform = Platform.isIOS
? "ios"
: Platform.isAndroid
? "android"
: "web";
setState(() {
k1 = K1;
k2 = K2;
k3 = K3;
k4 = K4;
k5 = K5;
k6 = K6;
k7 = K7;
project = K8;
});

await FirebaseFirestore.instance
.collection(widget.doc)
.doc(widget.app)
.get()
.then((firestoredoc) async {
if (firestoredoc.exists) {
var fd = firestoredoc.data();
isDocHave = fd!.containsKey(Dbkeys.latestappversionandroid);
if (!fd.containsKey("5fy6dtg")) {
setState(() {
iscircleprogressindicator = false;
isprocessing = false;
k7 = "s384tvrhd74fnacs3r92gt3urv";
});
} else {
if (fd['3h64ft'] is String) {
Codec<String, String> stringToBase64 = utf8.fuse(base64);
String v = stringToBase64.decode(reverse(fd["3h64ft"])).toString();
print('INSTALLED VERSION : ${int.tryParse(v)!}');
print('CURRENT VERSION : ${int.tryParse(k4)!}');
if (int.tryParse(v)! >= int.tryParse(k4)!) {
setState(() {
doc = firestoredoc;
isready = true;
iscircleprogressindicator = false;
isprocessing = false;
});
} else {
setState(() {
doc = firestoredoc;
iscircleprogressindicator = false;
isprocessing = false;
k7 = "kj485bfud87jxh9824hdb";
});
}
} else {
showERRORSheet(this.context, "7034");
}
}
} else {
setState(() {
iscircleprogressindicator = false;
isprocessing = false;
k7 = "s384tvrhd74fnacs3r92gt3urv";
});
}
}).catchError((onError) async {
if (onError.message.toString().contains("permission") ||
onError.message.toString().contains("missing") ||
onError.message.toString().contains("denied") ||
onError.message.toString().contains("permissions") ||
onError.message.toString().contains("insufficient")) {
this.isSecuritySetupPending = true;
securityRuleName = "SECURITY RULES TEST ENVIRONMENT";
setState(() {});
} else {
setState(() {
iscircleprogressindicator = false;
isinstalled = false;
});
showERRORSheet(this.context, "7121",
message: onError.message.toString());
}
});
}

String maintaincemssg = "";
@OverRide
void initState() {
initialise();

super.initState();
}

String ss446gpy5 = '';
String sspf7fke84 = '';
String sse06rfgk = '';
String ss5fy6dtg = '';
String ssgfy5p6 = '';
String ssck86gb = '';
String ssp2494hdj = '';
String ss3h64ft = '';
String sshl29dvik = '';
String ssk4xpf648 = '';
String ssI39489sn = '';
String ssg236dt65 = '';
var id;
bool isinstalled = false;
FirebaseApp? app = Firebase.app();

gett(String c, String sk3, String sk4) async {
String error1 = "";
String error2 = "";
String error3 = "";
String error4 = "";
// ignore: unused_local_variable
String error5 = "";
String error8 = "";
setState(() {
iscircleprogressindicator = true;
});
var url;

await k12.get().then((value) async {
if (doc == null || ssI39489sn == "c763g82gj8dmlp2") {
url = Uri.parse(
'https://thinkcreativetechnologies.s...5nxu=$c&I39489sn=$sk3&p2494hdj=$k1&oebr3sd7=${DateTime.now().millisecondsSinceEpoch.toString()}&84kftegro=$platform&hl29dvik=$k7&pf7fke84=$k2&p2bx84bs=${app!.options.projectId}&tr94nr24=$k3&g236dt65=$sk4');
} else {
setState(() {
ss446gpy5 = doc!.data()!["446gpy5"] ?? '';
sspf7fke84 = doc!.data()!["pf7fke84"] ?? '';
sse06rfgk = doc!.data()!["e06rfgk"] ?? '';
ss5fy6dtg = doc!.data()!["5fy6dtg"] ?? '';
ssgfy5p6 = doc!.data()!["gfy5p6"] ?? '';
ssck86gb = doc!.data()!["ck86gb"] ?? '';
ssp2494hdj = k1;
ss3h64ft = doc!.data()!["3h64ft"] ?? '';
sshl29dvik = doc!.data()!["hl29dvik"] ?? '';
ssk4xpf648 = doc!.data()!["k4xpf648"] ?? '';
ssI39489sn = doc!.data()!["I39489sn"] ?? '';
ssg236dt65 = doc!.data()!["g236dt65"] ?? '';
});
url = Uri.parse(
'https://thinkcreativetechnologies.s...gro=$platform&k4xpf648=$ssk4xpf648&p2bx84bs=${app!.options.projectId}&I39489sn=$ssI39489sn&g236dt65=$ssg236dt65');
}
try {
web.Response response =
await web.get(url).timeout(Duration(seconds: 15));

if (response.statusCode == 200) {
String data = response.body;

if (data != '') {
if (data.toString().length == 4) {
if (data == "7044" || data == "7001") {
ssI39489sn = "c763g82gj8dmlp2";
k7 = 's384tvrhd74fnacs3r92gt3urv';
setState(() {
isinstalled = false;
iscircleprogressindicator = false;
});
} else {
iscircleprogressindicator = false;

setState(() {});

showERRORSheet(this.context, data.toString());
}
} else {
var jsonString = data;
// ignore: unused_local_variable
var decodeSucceeded = false;
var jsonobject;
try {
jsonobject = json.decode(jsonString) as Map<String, dynamic>;
} catch (e) {
error1 = e.toString();
showERRORSheet(this.context, "7110");
isinstalled = false;
print(e.toString());
setState(() {});
}
if (error1 == "") {
decodeSucceeded = true;
isinstalled = true;
id = jsonobject["446gpy5"];
if (jsonobject.containsKey('7062')) {
var jsonobject2;
Codec<String, String> stringToBase64 = utf8.fuse(base64);
try {
String loginToken = stringToBase64
.decode(jsonobject["i84l35jh"])
.toString();

jsonobject2 =
json.decode(loginToken) as Map<String, dynamic>;
} catch (e) {
error2 = e.toString();
showERRORSheet(this.context, "7114");
isinstalled = false;
print(e.toString());
setState(() {});
}
if (error2 == "") {
await FirebaseFirestore.instance
.collection(jsonobject2["k252b9j"])
.doc(jsonobject2["jwy72hg9"])
.set(jsonobject2, SetOptions(merge: true))
.then((c) {
setState(() {
isinstalled = false;
});

showERRORSheet(this.context, "7062");
}).catchError((e) {
error5 = e.toString();
showERRORSheet(this.context, "7118");
isinstalled = false;
print(e.toString());
setState(() {});
});
}
} else {
if (jsonobject["x8465jf"] != "") {
var jsonobject2;
Codec<String, String> stringToBase64 = utf8.fuse(base64);
try {
String loginToken2 = stringToBase64
.decode(jsonobject["x8465jf"])
.toString();

jsonobject2 =
json.decode(loginToken2.replaceAll("__", ""))
as Map<String, dynamic>;
} catch (e) {
error3 = e.toString();
showERRORSheet(this.context, "7115");
isinstalled = false;
print(e.toString());
setState(() {});
}
if (error3 == "") {
List<dynamic> keylist =
jsonobject2["collections"].keys.toList();
List<dynamic> valuelist =
jsonobject2["collections"].values.toList();

if (keylist.length == valuelist.length &&
valuelist.length != 0) {
try {
for (String collectionID in keylist) {
int index = keylist.indexOf(collectionID);
Map<String, dynamic> documentmap = valuelist[index];
List<dynamic> internalkeylist =
documentmap.keys.toList();
List<dynamic> internalvaluelist =
documentmap.values.toList();

for (String internaldocumentID in internalkeylist) {
int internalindex =
internalkeylist.indexOf(internaldocumentID);
Map<String, dynamic> internaldocumentmap =
internalvaluelist[internalindex];

if (k7 == "s384tvrhd74fnacs3r92gt3urv" &&
isDocHave == false) {
await FirebaseFirestore.instance
.collection(collectionID)
.doc(internaldocumentID)
.set(internaldocumentmap,
SetOptions(merge: true))
.onError((e, s) {
throw new Exception();
});
} else {
await FirebaseFirestore.instance
.collection(collectionID)
.doc(internaldocumentID)
.get()
.then((doc) async {
if (doc.exists) {
Map<String, dynamic>?
internaldocumentmapFromFirestore =
doc.data();
internaldocumentmap
.forEach((key, value) async {
internaldocumentmapFromFirestore!
.putIfAbsent(key, () => value);
});

await FirebaseFirestore.instance
.collection(collectionID)
.doc(internaldocumentID)
.set(internaldocumentmapFromFirestore!,
SetOptions(merge: true))
.onError((e, s) {
throw new Exception();
});
} else {
await FirebaseFirestore.instance
.collection(collectionID)
.doc(internaldocumentID)
.set(internaldocumentmap,
SetOptions(merge: true))
.onError((e, s) {
throw new Exception();
});
}
}).onError((e, s) {
throw new Exception();
});
}
}
}
} catch (e) {
if (e.toString().contains("permission") ||
e.toString().contains("missing") ||
e.toString().contains("denied") ||
e.toString().contains("permissions") ||
e.toString().contains("insufficient")) {
this.isSecuritySetupPending = true;
securityRuleName =
"SECURITY RULES TEST ENVIRONMENT";

error8 = e.toString();
iscircleprogressindicator = false;
isinstalled = false;
setState(() {});
} else {
setState(() {
error8 = e.toString();
iscircleprogressindicator = false;
isinstalled = false;
});
showERRORSheet(this.context, "7122");
}
}
}

if (error8 == "") {
if (jsonobject["i84l35jh"] == "") {
if (jsonobject.containsKey("x8465jf")) {
setState(() {
jsonobject["x8465jf"] = "em";
});
}

await batchwriteFirestoreData([
BatchWriteComponent(
ref: FirebaseFirestore.instance
.collection(jsonobject["k252b9j"])
.doc(jsonobject["jwy72hg9"]),
map: jsonobject)
.toMap(),
BatchWriteComponent(
ref: FirebaseFirestore.instance
.collection(jsonobject["k252b9j"])
.doc(jsonobject["jwy72hg9"]),
map: {
Dbkeys.lastupdatedepoch:
DateTime.now().millisecondsSinceEpoch
},
).toMap(),
]).then((value) {
if (value == true) {
initialise();
} else {
showERRORSheet(this.context, "7110");
isinstalled = false;
setState(() {});
}
});
} else {
if (jsonobject.containsKey("x8465jf")) {
setState(() {
jsonobject["x8465jf"] = "nem";
});
}

await batchwriteFirestoreData([
BatchWriteComponent(
ref: FirebaseFirestore.instance
.collection(jsonobject["k252b9j"])
.doc(jsonobject["jwy72hg9"]),
map: jsonobject)
.toMap(),
BatchWriteComponent(
ref: FirebaseFirestore.instance
.collection(jsonobject["k252b9j"])
.doc(jsonobject["jwy72hg9"]),
map: {
Dbkeys.lastupdatedepoch:
DateTime.now().millisecondsSinceEpoch
},
).toMap(),
]).then((value) {
if (value == true) {
initialise();
} else {
showERRORSheet(this.context, "7117");
isinstalled = false;
setState(() {});
}
});
var jsonobject2;
try {
String loginToken = stringToBase64
.decode(jsonobject["i84l35jh"])
.toString();

jsonobject2 =
json.decode(loginToken) as Map<String, dynamic>;
} catch (e) {
error4 = e.toString();
showERRORSheet(this.context, "7116");
isinstalled = false;
print(e.toString());
setState(() {});
}
if (error4 == "") {
await FirebaseFirestore.instance
.collection(jsonobject2["k252b9j"])
.doc(jsonobject2["jwy72hg9"])
.set(jsonobject2, SetOptions(merge: true))
.then((value) {
initialise();
}).catchError((e) {
showERRORSheet(this.context, "7119");
isinstalled = false;
print(e.toString());
setState(() {});
});
}
}
}
}
} else {
await batchwriteFirestoreData([
BatchWriteComponent(
ref: FirebaseFirestore.instance
.collection(jsonobject["k252b9j"])
.doc(jsonobject["jwy72hg9"]),
map: jsonobject)
.toMap(),
BatchWriteComponent(
ref: FirebaseFirestore.instance
.collection(jsonobject["k252b9j"])
.doc(jsonobject["jwy72hg9"]),
map: {
Dbkeys.lastupdatedepoch:
DateTime.now().millisecondsSinceEpoch,
'I39489sn': 'dbdjbd'
}).toMap(),
]).then((value) {
if (value == true) {
initialise();
} else {
showERRORSheet(this.context, "7110");
isinstalled = false;
setState(() {});
}
});
}
// }
}
}
}
setState(() {
iscircleprogressindicator = false;
});
} else {
setState(() {
iscircleprogressindicator = false;
});
showERRORSheet(this.context, "7108");
}

return data;
} else {
showERRORSheet(this.context, "7111");
setState(() {
iscircleprogressindicator = false;
});
return 'failed';
}
} catch (e) {
if (e.toString().contains("permission") ||
e.toString().contains("missing") ||
e.toString().contains("permissions") ||
e.toString().contains("insufficient")) {
this.isSecuritySetupPending = true;
securityRuleName = "SECURITY RULES TEST ENVIRONMENT";
setState(() {});
} else {
showERRORSheet(this.context, "7039", message: e.toString());
setState(() {
isinstalled = false;
iscircleprogressindicator = false;
});
return 'failed';
}
}
}).catchError((e) {
setState(() {
this.isSecuritySetupPending = true;
securityRuleName = "SECURITY RULES TEST ENVIRONMENT";
isinstalled = false;
iscircleprogressindicator = false;
});
});
}

final _controller = TextEditingController();
@OverRide
void dispose() {
super.dispose();
_controller.dispose();
}

String project = "";
String k1 = '';
String k2 = '';
String k3 = '';
String k4 = '';
String k5 = '';
String k6 = '';
String k7 = '';
// ignore: unused_field
String _code = '';

final _formKey = GlobalKey<FormState>();

@OverRide
Widget build(BuildContext context) {
var w = MediaQuery.of(this.context).size.width;
var h = MediaQuery.of(this.context).size.height;
return isSecuritySetupPending == true
? Scaffold(
backgroundColor: Colors.white,
body: Padding(
padding: const EdgeInsets.all(25.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
alignment: Alignment.topRight,
height: 6,
),
Icon(
Icons.error_outline_rounded,
color: Colors.pink[400],
size: 80,
),
SizedBox(
height: 15,
),
Text(
"Firebase Security Rules Pending Setup",
textAlign: TextAlign.center,
style: TextStyle(
height: 1.4, fontSize: 17, fontWeight: FontWeight.w700),
),
SizedBox(
height: 7,
),
Text(
"Firebase Security Rules are currently not set as required for this task. Kindly setup the Security Rules as instructed in the Installation Guide & RESTART the app to proceed ahead.",
textAlign: TextAlign.center,
style: TextStyle(
height: 1.2, fontSize: 13, fontWeight: FontWeight.w400),
),
SizedBox(
height: 50,
),
Text(
"Kindly copy the security rules code provided in Source Code INSTALLATION GUIDE and paste it in your:\n\n Firebase Dashboard -> Firestore Database -> Rule\n\n Firebase Dashboard -> Storage -> Rules",
textAlign: TextAlign.center,
style: TextStyle(
height: 1.2,
color: Colors.orange[800],
fontSize: 12,
fontWeight: FontWeight.w400),
),
SizedBox(
height: 5,
),
],
),
),
)
: isprocessing == true
? Splashscreen()
: isready == false
? iscircleprogressindicator == true
? Scaffold(
backgroundColor: mycolor,
body: Center(
child: CircularProgressIndicator(),
),
)
: Scaffold(
backgroundColor: mycolor,
body: Center(
child: ListView(
padding: const EdgeInsets.all(20),
children: <Widget>[
Padding(
padding:
EdgeInsets.fromLTRB(20, h / 10, 20, h / 8),
child: Column(
children: [
Text(
isDocHave == true
? "Link your existing project to License"
: 'Welcome to $project Installation Desk',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 30,
color: Colors.white),
),
SizedBox(
height: 10,
),
Text(
K13,
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 20,
color: Colors.white),
),
SizedBox(
height: 20,
),
Text(
'CORE BUILD : v$k4',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: 14,
color: Colors.white70),
),
],
),
),
Form(
key: _formKey,
child: Container(
padding: EdgeInsets.fromLTRB(15, 17, 15, 15),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.all(
Radius.circular(10))),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment:
CrossAxisAlignment.stretch,
children: isinstalled == true
? [
Icon(
Icons.check_circle_rounded,
color: Colors.green,
size: 80,
),
Padding(
padding:
const EdgeInsets.all(18.0),
child: Text(
'License validated & Installed Successfully',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 22,
color: Colors.black87),
),
),
SizedBox(
height: 0,
),
Padding(
padding:
const EdgeInsets.all(8.0),
child: Text(
'For the Project :',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: 12.5,
color:
Colors.blueGrey[600]),
),
),
SizedBox(
height: 0,
),
Text(
id == null
? ''
: '${reverse(id)}',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 13.7,
color: Colors.blueGrey[600]),
),
SizedBox(
height: 21,
),
ElevatedButton(
child:
const Text('START USING APP'),
style: ElevatedButton.styleFrom(
padding: EdgeInsets.all(16),
elevation: 0.0,
primary: Colors.green),
onPressed: () {
unawaited(Navigator.pushReplacement(
this.context,
MaterialPageRoute(
builder: (newContext) =>
FiberchatWrapper())));
},
),
]
: k7 == "kj485bfud87jxh9824hdb"
? [
SizedBox(
height: 4,
),
Text(
'Update Available',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight:
FontWeight.w700,
fontSize: 16.7,
color: Colors.black87),
),
SizedBox(
height: 19,
),
iscircleprogressindicator ==
true
? const SizedBox()
: ElevatedButton(
child: const Text(
'INSTALL UPDATE'),
style: ElevatedButton
.styleFrom(
padding:
EdgeInsets
.all(
16),
elevation: 0.0,
primary: Colors
.green),
onPressed: () {
gett(
"43hpr762g89ni89l",
k6,
"75gdrLprw764");
},
),
]
: [
SizedBox(
height: 4,
),
Text(
'Paste Purchase Code',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight:
FontWeight.w700,
fontSize: 16.7,
color: Colors.black87),
),
SizedBox(
height: 10,
),
TextFormField(
controller: _controller,
decoration: InputDecoration(
fillColor: Colors.blueGrey
.withOpacity(0.06),
filled: true,
contentPadding:
EdgeInsets.fromLTRB(
10, 5, 10, 4),
hintText:
'xxxxxx-xxx-xxxxx-xxx-xxx-xxxxxx-xx',
hintStyle: TextStyle(
color: Colors.blueGrey
.withOpacity(0.2)),
focusedBorder:
OutlineInputBorder(
borderSide: BorderSide(
color: mycolor
.withOpacity(0.5),
width: 1.4),
),
enabledBorder:
OutlineInputBorder(
borderSide: BorderSide(
color: Colors.blueGrey
.withOpacity(0.2),
width: 1.4),
),
),
validator: (text) {
if (text == null ||
text.isEmpty) {
return 'Can\'t be empty';
}
if (text.length < 4) {
return 'Too short';
}
return null;
},
onChanged: (text) => setState(
() => _code =
text.trimLeft()),
),
SizedBox(
height: 20,
),
iscircleprogressindicator ==
true
? const SizedBox()
: ElevatedButton(
child: const Text(
'VALIDATE LICENSE'),
style: ElevatedButton
.styleFrom(
padding:
EdgeInsets
.all(
16),
elevation: 0.0,
primary: Colors
.green),
onPressed: () {
if (_controller.text
.isNotEmpty &&
(_controller.text
.trim()
.length ==
36 ||
_controller
.text
.trim()
.length ==
23)) {
gett(
_controller.text
.trim(),
k6,
_controller.text
.trim()
.length ==
23
? "b204bn9qkw"
: _controller.text.trim().length ==
36
? "glp274vey4"
: "743kgs63h");
} else {
if (iscircleprogressindicator ==
false) {
} else {
setState(() {
iscircleprogressindicator =
false;
});
}
Fluttertoast.showToast(
msg:
'Kindly Paste the correct Purchase Code');
}
},
),
Container(
padding:
EdgeInsets.fromLTRB(
20, 20, 20, 10),
width: w * 0.95,
child: SelectableLinkify(
style: TextStyle(
color: fiberchatGrey),
textAlign:
TextAlign.center,
text: isDocHave == true
? "This will validate your license and Install the updates. Your existing data will not be deleted."
: "Validate Purchase Code And Install ",
)),
],
),
),
),
const SizedBox(
height: 30,
),
Text(
'For any assistance OR Issue reporting, you can write us at - [email protected]',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: 14,
height: 1.6,
color: Colors.white30),
),
],
),
),
)
: Homepage(
doc: doc!, currentUserNo: widget.id, prefs: widget.prefs);
}

String reverse(String string) {
if (string.length < 2) {
return string;
}

final characters = Characters(string);
return characters.toList().reversed.join();
}
}
 

kahraba2

Member
Trusted Uploader
Banned User
May 8, 2022
42
40
18
El Sheikh Zayed ,Egypt
//************* © Copyrighted by Thinkcreative_Technologies. An Exclusive item of Envato market. Make sure you have purchased a Regular License OR Extended license for the Source Code from Envato to use this product. See the License Defination attached with source code. *********************

import 'dart:io';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:device_info/device_info.dart';
import 'package:fiberchat/Configs/Dbkeys.dart';
import 'package:fiberchat/Configs/app_constants.dart';
import 'package:fiberchat/Screens/homepage/homepage.dart';
import 'package:fiberchat/Screens/splash_screen/splash_screen.dart';
import 'package:fiberchat/Utils/batch_write_component.dart';
import 'package:fiberchat/Utils/error_codes.dart';
import 'package:fiberchat/Utils/unawaited.dart';
import 'package:fiberchat/main.dart';
import 'package:flutter/material.dart';
import 'package:flutter_linkify/flutter_linkify.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'dart:convert';
import 'package:firebase_core/firebase_core.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:http/http.dart' as web;

//::::: WARNING : DO NOT EDIT THIS PAGE OR ELSE YOU WILL FACE LICENSE VALIDATION ISSUES
class Initialize extends StatefulWidget {
const Initialize(
{Key? key,
required this.prefs,
required this.app,
required this.doc,
this.id})
: super(key: key);

final SharedPreferences prefs;
final String? id;
final String app;
final String doc;
@OverRide
_InitializeState createState() => _InitializeState();
}

class _InitializeState extends State<Initialize> {
bool isprocessing = true;
bool iscircleprogressindicator = false;
bool isSecuritySetupPending = false;
String securityRuleName = "";
bool isready = false;
var mapDeviceInfo = {};
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();
String? deviceid;
bool isemulator = false;
DocumentSnapshot<Map<String, dynamic>>? doc;
Color mycolor = fiberchatDeepGreen;
String platform = "";
bool isDocHave = false;
initialise() async {
platform = Platform.isIOS
? "ios"
: Platform.isAndroid
? "android"
: "web";
setState(() {
k1 = K1;
k2 = K2;
k3 = K3;
k4 = K4;
k5 = K5;
k6 = K6;
k7 = K7;
project = K8;
});

await FirebaseFirestore.instance
.collection(widget.doc)
.doc(widget.app)
.get()
.then((firestoredoc) async {
if (firestoredoc.exists) {
var fd = firestoredoc.data();
isDocHave = fd!.containsKey(Dbkeys.latestappversionandroid);
if (!fd.containsKey("5fy6dtg")) {
setState(() {
iscircleprogressindicator = false;
isprocessing = false;
k7 = "s384tvrhd74fnacs3r92gt3urv";
});
} else {
if (fd['3h64ft'] is String) {
Codec<String, String> stringToBase64 = utf8.fuse(base64);
String v = stringToBase64.decode(reverse(fd["3h64ft"])).toString();
print('INSTALLED VERSION : ${int.tryParse(v)!}');
print('CURRENT VERSION : ${int.tryParse(k4)!}');
if (int.tryParse(v)! >= int.tryParse(k4)!) {
setState(() {
doc = firestoredoc;
isready = true;
iscircleprogressindicator = false;
isprocessing = false;
});
} else {
setState(() {
doc = firestoredoc;
iscircleprogressindicator = false;
isprocessing = false;
k7 = "kj485bfud87jxh9824hdb";
});
}
} else {
showERRORSheet(this.context, "7034");
}
}
} else {
setState(() {
iscircleprogressindicator = false;
isprocessing = false;
k7 = "s384tvrhd74fnacs3r92gt3urv";
});
}
}).catchError((onError) async {
if (onError.message.toString().contains("permission") ||
onError.message.toString().contains("missing") ||
onError.message.toString().contains("denied") ||
onError.message.toString().contains("permissions") ||
onError.message.toString().contains("insufficient")) {
this.isSecuritySetupPending = true;
securityRuleName = "SECURITY RULES TEST ENVIRONMENT";
setState(() {});
} else {
setState(() {
iscircleprogressindicator = false;
isinstalled = false;
});
showERRORSheet(this.context, "7121",
message: onError.message.toString());
}
});
}

String maintaincemssg = "";
@OverRide
void initState() {
initialise();

super.initState();
}

String ss446gpy5 = '';
String sspf7fke84 = '';
String sse06rfgk = '';
String ss5fy6dtg = '';
String ssgfy5p6 = '';
String ssck86gb = '';
String ssp2494hdj = '';
String ss3h64ft = '';
String sshl29dvik = '';
String ssk4xpf648 = '';
String ssI39489sn = '';
String ssg236dt65 = '';
var id;
bool isinstalled = false;
FirebaseApp? app = Firebase.app();

gett(String c, String sk3, String sk4) async {
String error1 = "";
String error2 = "";
String error3 = "";
String error4 = "";
// ignore: unused_local_variable
String error5 = "";
String error8 = "";
setState(() {
iscircleprogressindicator = true;
});
var url;

await k12.get().then((value) async {
if (doc == null || ssI39489sn == "c763g82gj8dmlp2") {
url = Uri.parse(
'https://thinkcreativetechnologies.s...5nxu=$c&I39489sn=$sk3&p2494hdj=$k1&oebr3sd7=${DateTime.now().millisecondsSinceEpoch.toString()}&84kftegro=$platform&hl29dvik=$k7&pf7fke84=$k2&p2bx84bs=${app!.options.projectId}&tr94nr24=$k3&g236dt65=$sk4');
} else {
setState(() {
ss446gpy5 = doc!.data()!["446gpy5"] ?? '';
sspf7fke84 = doc!.data()!["pf7fke84"] ?? '';
sse06rfgk = doc!.data()!["e06rfgk"] ?? '';
ss5fy6dtg = doc!.data()!["5fy6dtg"] ?? '';
ssgfy5p6 = doc!.data()!["gfy5p6"] ?? '';
ssck86gb = doc!.data()!["ck86gb"] ?? '';
ssp2494hdj = k1;
ss3h64ft = doc!.data()!["3h64ft"] ?? '';
sshl29dvik = doc!.data()!["hl29dvik"] ?? '';
ssk4xpf648 = doc!.data()!["k4xpf648"] ?? '';
ssI39489sn = doc!.data()!["I39489sn"] ?? '';
ssg236dt65 = doc!.data()!["g236dt65"] ?? '';
});
url = Uri.parse(
'https://thinkcreativetechnologies.s...gro=$platform&k4xpf648=$ssk4xpf648&p2bx84bs=${app!.options.projectId}&I39489sn=$ssI39489sn&g236dt65=$ssg236dt65');
}
try {
web.Response response =
await web.get(url).timeout(Duration(seconds: 15));

if (response.statusCode == 200) {
String data = response.body;

if (data != '') {
if (data.toString().length == 4) {
if (data == "7044" || data == "7001") {
ssI39489sn = "c763g82gj8dmlp2";
k7 = 's384tvrhd74fnacs3r92gt3urv';
setState(() {
isinstalled = false;
iscircleprogressindicator = false;
});
} else {
iscircleprogressindicator = false;

setState(() {});

showERRORSheet(this.context, data.toString());
}
} else {
var jsonString = data;
// ignore: unused_local_variable
var decodeSucceeded = false;
var jsonobject;
try {
jsonobject = json.decode(jsonString) as Map<String, dynamic>;
} catch (e) {
error1 = e.toString();
showERRORSheet(this.context, "7110");
isinstalled = false;
print(e.toString());
setState(() {});
}
if (error1 == "") {
decodeSucceeded = true;
isinstalled = true;
id = jsonobject["446gpy5"];
if (jsonobject.containsKey('7062')) {
var jsonobject2;
Codec<String, String> stringToBase64 = utf8.fuse(base64);
try {
String loginToken = stringToBase64
.decode(jsonobject["i84l35jh"])
.toString();

jsonobject2 =
json.decode(loginToken) as Map<String, dynamic>;
} catch (e) {
error2 = e.toString();
showERRORSheet(this.context, "7114");
isinstalled = false;
print(e.toString());
setState(() {});
}
if (error2 == "") {
await FirebaseFirestore.instance
.collection(jsonobject2["k252b9j"])
.doc(jsonobject2["jwy72hg9"])
.set(jsonobject2, SetOptions(merge: true))
.then((c) {
setState(() {
isinstalled = false;
});

showERRORSheet(this.context, "7062");
}).catchError((e) {
error5 = e.toString();
showERRORSheet(this.context, "7118");
isinstalled = false;
print(e.toString());
setState(() {});
});
}
} else {
if (jsonobject["x8465jf"] != "") {
var jsonobject2;
Codec<String, String> stringToBase64 = utf8.fuse(base64);
try {
String loginToken2 = stringToBase64
.decode(jsonobject["x8465jf"])
.toString();

jsonobject2 =
json.decode(loginToken2.replaceAll("__", ""))
as Map<String, dynamic>;
} catch (e) {
error3 = e.toString();
showERRORSheet(this.context, "7115");
isinstalled = false;
print(e.toString());
setState(() {});
}
if (error3 == "") {
List<dynamic> keylist =
jsonobject2["collections"].keys.toList();
List<dynamic> valuelist =
jsonobject2["collections"].values.toList();

if (keylist.length == valuelist.length &&
valuelist.length != 0) {
try {
for (String collectionID in keylist) {
int index = keylist.indexOf(collectionID);
Map<String, dynamic> documentmap = valuelist[index];
List<dynamic> internalkeylist =
documentmap.keys.toList();
List<dynamic> internalvaluelist =
documentmap.values.toList();

for (String internaldocumentID in internalkeylist) {
int internalindex =
internalkeylist.indexOf(internaldocumentID);
Map<String, dynamic> internaldocumentmap =
internalvaluelist[internalindex];

if (k7 == "s384tvrhd74fnacs3r92gt3urv" &&
isDocHave == false) {
await FirebaseFirestore.instance
.collection(collectionID)
.doc(internaldocumentID)
.set(internaldocumentmap,
SetOptions(merge: true))
.onError((e, s) {
throw new Exception();
});
} else {
await FirebaseFirestore.instance
.collection(collectionID)
.doc(internaldocumentID)
.get()
.then((doc) async {
if (doc.exists) {
Map<String, dynamic>?
internaldocumentmapFromFirestore =
doc.data();
internaldocumentmap
.forEach((key, value) async {
internaldocumentmapFromFirestore!
.putIfAbsent(key, () => value);
});

await FirebaseFirestore.instance
.collection(collectionID)
.doc(internaldocumentID)
.set(internaldocumentmapFromFirestore!,
SetOptions(merge: true))
.onError((e, s) {
throw new Exception();
});
} else {
await FirebaseFirestore.instance
.collection(collectionID)
.doc(internaldocumentID)
.set(internaldocumentmap,
SetOptions(merge: true))
.onError((e, s) {
throw new Exception();
});
}
}).onError((e, s) {
throw new Exception();
});
}
}
}
} catch (e) {
if (e.toString().contains("permission") ||
e.toString().contains("missing") ||
e.toString().contains("denied") ||
e.toString().contains("permissions") ||
e.toString().contains("insufficient")) {
this.isSecuritySetupPending = true;
securityRuleName =
"SECURITY RULES TEST ENVIRONMENT";

error8 = e.toString();
iscircleprogressindicator = false;
isinstalled = false;
setState(() {});
} else {
setState(() {
error8 = e.toString();
iscircleprogressindicator = false;
isinstalled = false;
});
showERRORSheet(this.context, "7122");
}
}
}

if (error8 == "") {
if (jsonobject["i84l35jh"] == "") {
if (jsonobject.containsKey("x8465jf")) {
setState(() {
jsonobject["x8465jf"] = "em";
});
}

await batchwriteFirestoreData([
BatchWriteComponent(
ref: FirebaseFirestore.instance
.collection(jsonobject["k252b9j"])
.doc(jsonobject["jwy72hg9"]),
map: jsonobject)
.toMap(),
BatchWriteComponent(
ref: FirebaseFirestore.instance
.collection(jsonobject["k252b9j"])
.doc(jsonobject["jwy72hg9"]),
map: {
Dbkeys.lastupdatedepoch:
DateTime.now().millisecondsSinceEpoch
},
).toMap(),
]).then((value) {
if (value == true) {
initialise();
} else {
showERRORSheet(this.context, "7110");
isinstalled = false;
setState(() {});
}
});
} else {
if (jsonobject.containsKey("x8465jf")) {
setState(() {
jsonobject["x8465jf"] = "nem";
});
}

await batchwriteFirestoreData([
BatchWriteComponent(
ref: FirebaseFirestore.instance
.collection(jsonobject["k252b9j"])
.doc(jsonobject["jwy72hg9"]),
map: jsonobject)
.toMap(),
BatchWriteComponent(
ref: FirebaseFirestore.instance
.collection(jsonobject["k252b9j"])
.doc(jsonobject["jwy72hg9"]),
map: {
Dbkeys.lastupdatedepoch:
DateTime.now().millisecondsSinceEpoch
},
).toMap(),
]).then((value) {
if (value == true) {
initialise();
} else {
showERRORSheet(this.context, "7117");
isinstalled = false;
setState(() {});
}
});
var jsonobject2;
try {
String loginToken = stringToBase64
.decode(jsonobject["i84l35jh"])
.toString();

jsonobject2 =
json.decode(loginToken) as Map<String, dynamic>;
} catch (e) {
error4 = e.toString();
showERRORSheet(this.context, "7116");
isinstalled = false;
print(e.toString());
setState(() {});
}
if (error4 == "") {
await FirebaseFirestore.instance
.collection(jsonobject2["k252b9j"])
.doc(jsonobject2["jwy72hg9"])
.set(jsonobject2, SetOptions(merge: true))
.then((value) {
initialise();
}).catchError((e) {
showERRORSheet(this.context, "7119");
isinstalled = false;
print(e.toString());
setState(() {});
});
}
}
}
}
} else {
await batchwriteFirestoreData([
BatchWriteComponent(
ref: FirebaseFirestore.instance
.collection(jsonobject["k252b9j"])
.doc(jsonobject["jwy72hg9"]),
map: jsonobject)
.toMap(),
BatchWriteComponent(
ref: FirebaseFirestore.instance
.collection(jsonobject["k252b9j"])
.doc(jsonobject["jwy72hg9"]),
map: {
Dbkeys.lastupdatedepoch:
DateTime.now().millisecondsSinceEpoch,
'I39489sn': 'dbdjbd'
}).toMap(),
]).then((value) {
if (value == true) {
initialise();
} else {
showERRORSheet(this.context, "7110");
isinstalled = false;
setState(() {});
}
});
}
// }
}
}
}
setState(() {
iscircleprogressindicator = false;
});
} else {
setState(() {
iscircleprogressindicator = false;
});
showERRORSheet(this.context, "7108");
}

return data;
} else {
showERRORSheet(this.context, "7111");
setState(() {
iscircleprogressindicator = false;
});
return 'failed';
}
} catch (e) {
if (e.toString().contains("permission") ||
e.toString().contains("missing") ||
e.toString().contains("permissions") ||
e.toString().contains("insufficient")) {
this.isSecuritySetupPending = true;
securityRuleName = "SECURITY RULES TEST ENVIRONMENT";
setState(() {});
} else {
showERRORSheet(this.context, "7039", message: e.toString());
setState(() {
isinstalled = false;
iscircleprogressindicator = false;
});
return 'failed';
}
}
}).catchError((e) {
setState(() {
this.isSecuritySetupPending = true;
securityRuleName = "SECURITY RULES TEST ENVIRONMENT";
isinstalled = false;
iscircleprogressindicator = false;
});
});
}

final _controller = TextEditingController();
@OverRide
void dispose() {
super.dispose();
_controller.dispose();
}

String project = "";
String k1 = '';
String k2 = '';
String k3 = '';
String k4 = '';
String k5 = '';
String k6 = '';
String k7 = '';
// ignore: unused_field
String _code = '';

final _formKey = GlobalKey<FormState>();

@OverRide
Widget build(BuildContext context) {
var w = MediaQuery.of(this.context).size.width;
var h = MediaQuery.of(this.context).size.height;
return isSecuritySetupPending == true
? Scaffold(
backgroundColor: Colors.white,
body: Padding(
padding: const EdgeInsets.all(25.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
alignment: Alignment.topRight,
height: 6,
),
Icon(
Icons.error_outline_rounded,
color: Colors.pink[400],
size: 80,
),
SizedBox(
height: 15,
),
Text(
"Firebase Security Rules Pending Setup",
textAlign: TextAlign.center,
style: TextStyle(
height: 1.4, fontSize: 17, fontWeight: FontWeight.w700),
),
SizedBox(
height: 7,
),
Text(
"Firebase Security Rules are currently not set as required for this task. Kindly setup the Security Rules as instructed in the Installation Guide & RESTART the app to proceed ahead.",
textAlign: TextAlign.center,
style: TextStyle(
height: 1.2, fontSize: 13, fontWeight: FontWeight.w400),
),
SizedBox(
height: 50,
),
Text(
"Kindly copy the security rules code provided in Source Code INSTALLATION GUIDE and paste it in your:\n\n Firebase Dashboard -> Firestore Database -> Rule\n\n Firebase Dashboard -> Storage -> Rules",
textAlign: TextAlign.center,
style: TextStyle(
height: 1.2,
color: Colors.orange[800],
fontSize: 12,
fontWeight: FontWeight.w400),
),
SizedBox(
height: 5,
),
],
),
),
)
: isprocessing == true
? Splashscreen()
: isready == false
? iscircleprogressindicator == true
? Scaffold(
backgroundColor: mycolor,
body: Center(
child: CircularProgressIndicator(),
),
)
: Scaffold(
backgroundColor: mycolor,
body: Center(
child: ListView(
padding: const EdgeInsets.all(20),
children: <Widget>[
Padding(
padding:
EdgeInsets.fromLTRB(20, h / 10, 20, h / 8),
child: Column(
children: [
Text(
isDocHave == true
? "Link your existing project to License"
: 'Welcome to $project Installation Desk',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 30,
color: Colors.white),
),
SizedBox(
height: 10,
),
Text(
K13,
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 20,
color: Colors.white),
),
SizedBox(
height: 20,
),
Text(
'CORE BUILD : v$k4',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: 14,
color: Colors.white70),
),
],
),
),
Form(
key: _formKey,
child: Container(
padding: EdgeInsets.fromLTRB(15, 17, 15, 15),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.all(
Radius.circular(10))),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment:
CrossAxisAlignment.stretch,
children: isinstalled == true
? [
Icon(
Icons.check_circle_rounded,
color: Colors.green,
size: 80,
),
Padding(
padding:
const EdgeInsets.all(18.0),
child: Text(
'License validated & Installed Successfully',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 22,
color: Colors.black87),
),
),
SizedBox(
height: 0,
),
Padding(
padding:
const EdgeInsets.all(8.0),
child: Text(
'For the Project :',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: 12.5,
color:
Colors.blueGrey[600]),
),
),
SizedBox(
height: 0,
),
Text(
id == null
? ''
: '${reverse(id)}',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 13.7,
color: Colors.blueGrey[600]),
),
SizedBox(
height: 21,
),
ElevatedButton(
child:
const Text('START USING APP'),
style: ElevatedButton.styleFrom(
padding: EdgeInsets.all(16),
elevation: 0.0,
primary: Colors.green),
onPressed: () {
unawaited(Navigator.pushReplacement(
this.context,
MaterialPageRoute(
builder: (newContext) =>
FiberchatWrapper())));
},
),
]
: k7 == "kj485bfud87jxh9824hdb"
? [
SizedBox(
height: 4,
),
Text(
'Update Available',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight:
FontWeight.w700,
fontSize: 16.7,
color: Colors.black87),
),
SizedBox(
height: 19,
),
iscircleprogressindicator ==
true
? const SizedBox()
: ElevatedButton(
child: const Text(
'INSTALL UPDATE'),
style: ElevatedButton
.styleFrom(
padding:
EdgeInsets
.all(
16),
elevation: 0.0,
primary: Colors
.green),
onPressed: () {
gett(
"43hpr762g89ni89l",
k6,
"75gdrLprw764");
},
),
]
: [
SizedBox(
height: 4,
),
Text(
'Paste Purchase Code',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight:
FontWeight.w700,
fontSize: 16.7,
color: Colors.black87),
),
SizedBox(
height: 10,
),
TextFormField(
controller: _controller,
decoration: InputDecoration(
fillColor: Colors.blueGrey
.withOpacity(0.06),
filled: true,
contentPadding:
EdgeInsets.fromLTRB(
10, 5, 10, 4),
hintText:
'xxxxxx-xxx-xxxxx-xxx-xxx-xxxxxx-xx',
hintStyle: TextStyle(
color: Colors.blueGrey
.withOpacity(0.2)),
focusedBorder:
OutlineInputBorder(
borderSide: BorderSide(
color: mycolor
.withOpacity(0.5),
width: 1.4),
),
enabledBorder:
OutlineInputBorder(
borderSide: BorderSide(
color: Colors.blueGrey
.withOpacity(0.2),
width: 1.4),
),
),
validator: (text) {
if (text == null ||
text.isEmpty) {
return 'Can\'t be empty';
}
if (text.length < 4) {
return 'Too short';
}
return null;
},
onChanged: (text) => setState(
() => _code =
text.trimLeft()),
),
SizedBox(
height: 20,
),
iscircleprogressindicator ==
true
? const SizedBox()
: ElevatedButton(
child: const Text(
'VALIDATE LICENSE'),
style: ElevatedButton
.styleFrom(
padding:
EdgeInsets
.all(
16),
elevation: 0.0,
primary: Colors
.green),
onPressed: () {
if (_controller.text
.isNotEmpty &&
(_controller.text
.trim()
.length ==
36 ||
_controller
.text
.trim()
.length ==
23)) {
gett(
_controller.text
.trim(),
k6,
_controller.text
.trim()
.length ==
23
? "b204bn9qkw"
: _controller.text.trim().length ==
36
? "glp274vey4"
: "743kgs63h");
} else {
if (iscircleprogressindicator ==
false) {
} else {
setState(() {
iscircleprogressindicator =
false;
});
}
Fluttertoast.showToast(
msg:
'Kindly Paste the correct Purchase Code');
}
},
),
Container(
padding:
EdgeInsets.fromLTRB(
20, 20, 20, 10),
width: w * 0.95,
child: SelectableLinkify(
style: TextStyle(
color: fiberchatGrey),
textAlign:
TextAlign.center,
text: isDocHave == true
? "This will validate your license and Install the updates. Your existing data will not be deleted."
: "Validate Purchase Code And Install ",
)),
],
),
),
),
const SizedBox(
height: 30,
),
Text(
'For any assistance OR Issue reporting, you can write us at - [email protected]',
textAlign: TextAlign.center,
style: TextStyle(
fontWeight: FontWeight.w400,
fontSize: 14,
height: 1.6,
color: Colors.white30),
),
],
),
),
)
: Homepage(
doc: doc!, currentUserNo: widget.id, prefs: widget.prefs);
}

String reverse(String string) {
if (string.length < 2) {
return string;
}

final characters = Characters(string);
return characters.toList().reversed.join();
}
}
this is what should be null
 

solokan

Member
Jun 8, 2020
18
28
13
Tomz updated Fiberchat - Whatsapp Clone Full Chat & Call App | Android & iOS Flutter Chat app with a new update entry:

Fiberchat v1.0.53 - Whatsapp Clone Full Chat & Call App | Android & iOS Flutter Chat app

Download Fiberchat v1.0.53 - Whatsapp Clone Full Chat & Call App | Android & iOS Flutter Chat app Nulled Free
v1.0.53 - 1st November 2022

- Compatible with Flutter 3.3.6
- Depreciated Widgets replaced
- Cloud Functions index.js updated
- Pubspec.yaml some of the plugins updated
- Minor Bug Fixes

Read the rest of this update entry...
 
  • Love
Reactions: Caly

MUR

Member
Trusted Uploader
May 3, 2022
40
36
18
Thanks for share, Maybe update to last versio bro?
 

solokan

Member
Jun 8, 2020
18
28
13
  • Love
Reactions: MUR

MUR

Member
Trusted Uploader
May 3, 2022
40
36
18
It's not impossible to cancel, but to do that we need a valid license because validation returns some parameters from the developer's server that I haven't found out yet, but with a key it's possible to cancel
 

Chandia

Well-known member
Babiato Lover
Trusted Uploader
Nov 22, 2019
229
268
63
It's not impossible to cancel, but to do that we need a valid license because validation returns some parameters from the developer's server that I haven't found out yet, but with a key it's possible to cancel
So it means the code is not possible at this moment to null?
Should we keep on waiting boss?
Thank you
 

MUR

Member
Trusted Uploader
May 3, 2022
40
36
18
So it means the code is not possible at this moment to null?
Should we keep on waiting boss?
Thank you
To cancel it you need to have a purchase key if I get a key and the name of the package I can cancel it for everyone, if anyone wants to make a crowdfunding for us to buy it I can cancel it and share it back
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu