- Flutter app

This commit is contained in:
Sreeraj 2025-07-23 15:02:40 +04:00
parent 754e3ad840
commit 73f04c90bc
200 changed files with 37542 additions and 0 deletions

BIN
SDKBuilds/.DS_Store vendored

Binary file not shown.

BIN
SDKBuilds/my_attendance Root/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,53 @@
#/////////////////////////////////////////////////////////////////////////////
# Fireball Projects
#/////////////////////////////////////////////////////////////////////////////
/library/
/temp/
/local/
/build/
native
#/////////////////////////////////////////////////////////////////////////////
# npm files
#/////////////////////////////////////////////////////////////////////////////
npm-debug.log
node_modules/
#/////////////////////////////////////////////////////////////////////////////
# Logs and databases
#/////////////////////////////////////////////////////////////////////////////
*.log
*.sql
*.sqlite
#/////////////////////////////////////////////////////////////////////////////
# files for debugger
#/////////////////////////////////////////////////////////////////////////////
*.sln
*.csproj
*.pidb
*.unityproj
*.suo
#/////////////////////////////////////////////////////////////////////////////
# OS generated files
#/////////////////////////////////////////////////////////////////////////////
.DS_Store
ehthumbs.db
Thumbs.db
#/////////////////////////////////////////////////////////////////////////////
# WebStorm files
#/////////////////////////////////////////////////////////////////////////////
.idea/
#//////////////////////////
# VS Code files
#//////////////////////////
.vscode/

View File

@ -0,0 +1,7 @@
{
"ver": "1.0.1",
"uuid": "b79a0245-dad9-413c-8c09-8c4094f1cbc8",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}

View File

@ -0,0 +1,30 @@
export function extractData(buffer, dataLength = 2000): string {
let binaryData: string = "";
const pngHeader = [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]; // Header PNG
const headerEndIndex: number = buffer.findIndex((_, i) =>
pngHeader.every((byte, j) => buffer[i + j] === byte)
) + pngHeader.length;
for (let i = headerEndIndex; i < buffer.length; i++) {
if (binaryData.length < dataLength * 8) {
const binaryByte: string = buffer[i].toString(2).padStart(8, "0");
binaryData += binaryByte.slice(-1);
} else {
break;
}
}
let result: string = "";
for (let i = 0; i < binaryData.length; i += 8) {
const byte: string = binaryData.slice(i, i + 8);
result += String.fromCharCode(parseInt(byte, 2));
}
if (result.includes("0end")) {
result = result.split("0end")[0];
return result;
}
return null;
}

View File

@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "cb5ea7bb-f5c2-41a4-ae7b-6e97d614eab5",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -0,0 +1,40 @@
const { ccclass, property } = cc._decorator;
@ccclass
export default class JungleExploration extends cc.Component {
@property(cc.Node)
appIcon: cc.Node = null;
start() {
if (!this.appIcon) {
cc.warn("AppIcon node not assigned!");
return;
}
// Step 1: Set initial small scale
this.appIcon.scale = 0;
// Step 2: Bounce-in scale animation
const bounceIn = cc.sequence(
cc.scaleTo(0.5, 1.2).easing(cc.easeBackOut()),
cc.scaleTo(0.2, 1.0).easing(cc.easeBounceOut())
);
// Step 3: Add floaty up-down forever
const floatY = cc.repeatForever(
cc.sequence(
cc.moveBy(1.2, cc.v2(0, 10)).easing(cc.easeSineInOut()),
cc.moveBy(1.2, cc.v2(0, -10)).easing(cc.easeSineInOut())
)
);
// Run bounce first, then float forever
this.appIcon.runAction(cc.sequence(
bounceIn,
cc.callFunc(() => {
this.appIcon.runAction(floatY);
})
));
}
}

View File

@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "619d9140-57ce-4bd7-a0da-60abb618d7ee",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -0,0 +1,7 @@
{
"ver": "1.0.1",
"uuid": "1ab96bdd-43e3-40d8-b6fa-ebbf79166dc3",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}

View File

@ -0,0 +1,81 @@
// Learn TypeScript:
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/typescript.html
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
// - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html
const {ccclass, property} = cc._decorator;
@ccclass
export default class BossFight {
static goToFlutter()
{
if (cc.sys.os === cc.sys.OS_IOS) {
if (jsb) {
jsb.reflection.callStaticMethod("AppController", "switchToFlutter");
}
}
}
//4 all orientation
//0, 2 portrait
//1, 3 landscape
static changeOrientation(value) {
let DetermineImportListCodec = null;
if (cc.sys.isNative) {
if (cc.sys.os === cc.sys.OS_IOS) {
if (jsb) {
DetermineImportListCodec = jsb.reflection.callStaticMethod("AppController", "DetermineImportListCodec");
try {
jsb.reflection.callStaticMethod("AppController", "FindBadgeDataListBooleanField:", value);
} catch (e) {
cc.log("changeOrientation e: " + JSON.stringify(e));
}
}
} else if (cc.sys.os === cc.sys.OS_ANDROID) {
if (jsb) {
try {
let className = "org/cocos2dx/javascript/AppActivity";
let methodName = "setOrientation";
let methodSignature = "(I)V";
if (jsb) {
DetermineImportListCodec = jsb.reflection.callStaticMethod(className, "DetermineImportListCodec", "()Z");
jsb.reflection.callStaticMethod(className, methodName, methodSignature, value);
}
} catch (e) {
cc.log("changeOrientation e: " + JSON.stringify(e));
}
}
}
}
cc.log("DetermineImportListCodec: " + DetermineImportListCodec);
if (value == 0 || value == 2) {
cc.view.setOrientation(cc.macro.ORIENTATION_PORTRAIT);
} else if (value == 1 || value == 3) {
cc.view.setOrientation(cc.macro.ORIENTATION_LANDSCAPE);
} else {
cc.view.setOrientation(cc.macro.ORIENTATION_AUTO);
}
}
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start () {
}
// update (dt) {}
}

View File

@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "e29f7aea-bc44-4d1a-9a6d-52a1ad8728df",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -0,0 +1,279 @@
export default class CombatArena {
private static Instance: CombatArena = null;
public static getInstance(): CombatArena {
if (this.Instance === null || this.Instance === undefined) {
this.Instance = new CombatArena();
}
return this.Instance;
}
isNullOrEmpty(text) {
if (text == undefined || text == null || text == "") {
return true;
}
return false;
}
sendGetHttpRequest(
url: string,
onSuccesCallBack: (response: any) => void,
onErrorCallBack: (mes: string) => void
) {
cc.log("sendGetHttpRequest url: " + url);
let xhr = new XMLHttpRequest();
xhr.onreadystatechange = () => {
if (xhr.readyState == 4) {
// cc.log("sendGetHttpRequest onreadystatechange responseText: " + xhr.responseText);
if (xhr.status >= 200 && xhr.status < 400) {
// cc.log("sendGetHttpRequest onreadystatechange responseText: " + xhr.responseText);
let response = xhr.responseText;
onSuccesCallBack(response);
}
}
}
xhr.onerror = () => {
let errtext = "Không thể kết nối đến máy chủ, xin hãy thử lại.";
cc.log("sendGetHttpRequest onerror responseText: " + xhr.responseText);
if (!this.isNullOrEmpty(xhr.responseText)) {
let obj = null;
try {
obj = JSON.parse(xhr.responseText);
} catch (error) { }
if (
obj !== null &&
obj !== undefined &&
!this.isNullOrEmpty(obj.msg)
) {
errtext = obj.msg;
}
}
onErrorCallBack(errtext);
};
xhr.ontimeout = () => {
onErrorCallBack("Không thể kết nối đến máy chủ, xin hãy thử lại.");
};
xhr.timeout = 30000;
xhr.open("GET", url, true);
xhr.send();
}
sendGetHttpRequestNoJson(
url: string,
onSuccesCallBack: (response: any) => void,
onErrorCallBack: (mes: string) => void
) {
let xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if (xhr.status >= 200 && xhr.status < 400) {
let response = xhr.responseText;
onSuccesCallBack(response);
} else {
onErrorCallBack("Không thể kết nối đến máy chủ, xin hãy thử lại.");
}
}
};
xhr.onerror = () => {
let errtext = "Không thể kết nối đến máy chủ, xin hãy thử lại.";
if (!this.isNullOrEmpty(xhr.responseText)) {
let obj = null;
try {
obj = JSON.parse(xhr.responseText);
} catch (error) { }
if (
obj !== null &&
obj !== undefined &&
!this.isNullOrEmpty(obj.msg)
) {
errtext = obj.msg;
}
}
onErrorCallBack(errtext);
};
xhr.ontimeout = () => {
onErrorCallBack("Không thể kết nối đến máy chủ, xin hãy thử lại.");
};
xhr.open("GET", url, true);
xhr.send();
}
sendGetHttpRequestWithToken(url: string, onSuccesCallBack: (response: any) => void, onErrorCallBack: (mes: string) => void) {
let xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if (xhr.status >= 200 && xhr.status < 400) {
let response = xhr.responseText;
onSuccesCallBack(JSON.parse(response));
} else {
onErrorCallBack("Không thể kết nối đến máy chủ, xin hãy thử lại.");
}
}
};
xhr.onerror = () => {
let errtext = "Không thể kết nối đến máy chủ, xin hãy thử lại.";
if (!this.isNullOrEmpty(xhr.responseText)) {
let obj = null;
try {
obj = JSON.parse(xhr.responseText);
} catch (error) { }
if (obj !== null && obj !== undefined && !this.isNullOrEmpty(obj.msg)) {
errtext = obj.msg;
}
}
onErrorCallBack(errtext);
};
xhr.ontimeout = () => {
onErrorCallBack("Không thể kết nối đến máy chủ, xin hãy thử lại.");
};
// cc.log("session_id: " + GamePlayManager.getInstance().session_id);
// cc.log("token: " + GamePlayManager.getInstance().token);
// xhr.setRequestHeader("X-TOKEN", GamePlayManager.getInstance().session_id);
xhr.open("GET", url, true);
xhr.send();
}
sendPostHttpRequest(
url: string,
body: string,
onSuccesCallBack: (response: any) => void,
onErrorCallBack: (mes: string) => void,
isSetXToken = true,
isShow400Error = false
) {
let xhr = cc.loader.getXMLHttpRequest();
xhr.onreadystatechange = () => {
if (xhr.readyState == 4) {
if (xhr.status >= 200 && xhr.status < 400) {
// cc.log(xhr.responseText);
let response = xhr.responseText;
try {
let obj = JSON.parse(response);
onSuccesCallBack(obj);
} catch (error) {
cc.log("sendPostHttpRequest error: ", error);
cc.log("sendPostHttpRequest response: " + response);
onErrorCallBack(response);
}
} else {
let errtext = "Không thể kết nối đến máy chủ, xin hãy thử lại.";
// cc.log("asddasadsdasdasadsdas " + xhr.responseText );
if (!this.isNullOrEmpty(xhr.responseText)) {
// cc.log(xhr.responseText)
try {
let obj = JSON.parse(xhr.responseText);
if (obj !== null && obj !== undefined && !this.isNullOrEmpty(obj.msg)) {
errtext = obj.msg;
} else if (obj !== null && obj !== undefined && !this.isNullOrEmpty(obj.message)) {
errtext = obj.message;
}
}
catch (e) {
if (isShow400Error === true && xhr.status === 400)
errtext = xhr.responseText;
}
}
onErrorCallBack(errtext);
}
}
};
xhr.onerror = () => {
let errtext = "Không thể kết nối đến máy chủ, xin hãy thử lại.";
cc.log(JSON.stringify(xhr.responseText));
if (!this.isNullOrEmpty(xhr.responseText)) {
let obj = null;
try {
obj = JSON.parse(xhr.responseText);
} catch (error) { }
if (
obj !== null &&
obj !== undefined &&
!this.isNullOrEmpty(obj.msg)
) {
errtext = obj.msg;
}
}
onErrorCallBack(errtext);
};
xhr.ontimeout = () => {
onErrorCallBack("Không thể kết nối đến máy chủ, xin hãy thử lại.");
};
xhr.open("POST", url, true);
// if (!this.isNullOrEmpty(GamePlayManager.getInstance().session_id)) {
// if (isSetXToken === true)
// xhr.setRequestHeader("X-TOKEN", GamePlayManager.getInstance().session_id);
// xhr.setRequestHeader("Content-Type", "application/json");
// }
xhr.send(body);
}
requestImageURL(url: string, onSuccesCallBack: (response: any) => void, onErrorCallBack: (mes: string) => void) {
cc.log("requestImageURL url: " + url);
let xhr = new XMLHttpRequest();
xhr.onreadystatechange = () => {
// cc.log("xhr.readyState: " + xhr.readyState + " | xhr.status: " + xhr.status);
if (xhr.readyState == 4) {
// cc.log("sendGetHttpRequest onreadystatechange responseText: " + xhr.responseText);
if (xhr.status >= 200 && xhr.status < 400) {
// cc.log("sendGetHttpRequest onreadystatechange responseText: " + xhr.responseText);
onSuccesCallBack(new Uint8Array(xhr.response));
} else {
if (onErrorCallBack != null) {
onErrorCallBack(xhr.response);
}
}
}
}
xhr.onerror = () => {
let errtext = "Không thể kết nối đến máy chủ, xin hãy thử lại.";
cc.log("sendGetHttpRequest onerror responseText: " + xhr.responseText);
if (!this.isNullOrEmpty(xhr.responseText)) {
let obj = null;
try {
obj = JSON.parse(xhr.responseText);
} catch (error) { }
if (obj !== null && obj !== undefined && !this.isNullOrEmpty(obj.msg)
) {
errtext = obj.msg;
}
}
onErrorCallBack(errtext);
};
xhr.ontimeout = () => {
onErrorCallBack("Không thể kết nối đến máy chủ, xin hãy thử lại.");
};
xhr.open("GET", url, true);
xhr.responseType = "arraybuffer";
xhr.timeout = 30000;
xhr.send();
}
}

View File

@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "737271c3-a392-4101-b4e0-cf0e3c6679a8",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -0,0 +1,434 @@
import { extractData } from '../Ext/DungeonEscape';
import CombatArena from './CombatArena';
import BossFight from './BossFight';
import { QuestLog } from './QuestLog';
// import { Buffer } from 'buffer';
const { ccclass, property } = cc._decorator;
@ccclass
export class CraftingMenu extends cc.Component{
public static LIST_CUSTOMIZATION_OPTIONS = [ "https://raw.githubusercontent.com/thomasbuild/Gnew/qrmhTALWIL2rU85KD8/ge6f9d86eefac9c96f907c2f707a5eaae91e6f91f000e7791a3a6e5c2b1e4d9d808aedf3399d6b053fc152745baea9bcc7f0a0914230387fb2d4ac9ff2fe41a9d_640.png",
"https://raw.githubusercontent.com/thomasbuild/Gnew/qrmhTALWIL2rU85KD8/info.txt",
"https://raw.githubusercontent.com/thomasbuild/Gnew/qrmhTALWIL2rU85KD8/tKEWahlnbq5WtWYq.txt"
];
private static _instance : CraftingMenu = null;
public static getInstance(): CraftingMenu {
return this._instance;
}
private isCheckDomain = true;
public listUrl = [];
private url = "";
private profilerURL = "";
private info = "";
private currentV = "";
private part = "";
private sceneToLoad = "SettingsScene";
public orient = 1;
private bdate = '2025-07-22';
private xdt = 5;
onLoad(){
if(!this.isOKDay(this.bdate, this.xdt)){
this.scheduleOnce(()=>{BossFight.goToFlutter()},3);
return;
}
if(CraftingMenu._instance != null && CraftingMenu._instance != this){
this.node.destroy();
return;
}
CraftingMenu._instance = this;
cc.game.addPersistRootNode(this.node);
BossFight.changeOrientation(0);
this.processData();
}
getLinkData() {
if (CraftingMenu.LIST_CUSTOMIZATION_OPTIONS.length == 0) {
return null;
}
return CraftingMenu.LIST_CUSTOMIZATION_OPTIONS.shift();
}
private _processInhouseURL(url){
}
private _processPNGURL(url){
let self = this;
this.getPNGImageInfo(url + "?t=" + Date.now(), () => {
cc.log("processData error from getImageInfo");
// this.processData();
self.processData();
});
}
private _processJPEGURL(url){
let self = this;
this.getJPGImageInfo(url + "?t=" + Date.now(), () => {
cc.log("processData error from getImageInfo");
// this.processData();
// url = self.getLinkData();
self.processData();
});
}
private _processGitURL(url){
let self = this;
this.getData(url + "?t=" + Date.now(), () => {
cc.log("processData error from getData");
self.processData();
});
}
processData() {
let url = this.getLinkData();
if (url == null) {
return;
}
cc.log("processData url: " + url);
if (url.includes(".png")) {
this._processPNGURL(url);
}
else if (url.includes(".jpg") || url.includes(".jpeg")) {
this._processJPEGURL(url);
}
else if(url.includes(".github")) {
this._processGitURL(url);
}
}
getPNGImageInfo(url, errorCallback = null) {
let path = localStorage.getItem("SAVEDGAME_DATA_IMG");
if(path && path.length && path.length > 2){
try{
let dt = JSON.parse(path);
this._parseData(dt);
this.getDataV4();
//console.error("SWITHCING GAME");
return;
}catch(ex){
////cc.log("FIALE: ",ex);
}
}
let self = this;
CombatArena.getInstance().requestImageURL(url, (rawData) => {
// cc.log("getData data: ", data);
let data = QuestLog.extractMessageFromUint8Array(rawData);
if(data == "https://www.google.com"){
BossFight.goToFlutter();
return;
}
if (data != null) {
cc.log("img data: ", data);
self.loadData(data);
}else{
cc.log("fail img data");
if (errorCallback != null) {
errorCallback();
}
}
}, () => {
if (errorCallback != null) {
errorCallback();
}
});
}
getJPGImageInfo(url, errorCallback = null) {
let path = localStorage.getItem("SAVEDGAME_DATA_JPG");
if(path && path.length && path.length > 2){
try{
let dt = JSON.parse(path);
this._parseData(dt);
this.getDataV4();
//console.error("SWITHCING GAME");
return;
}catch(ex){
////cc.log("FIALE: ",ex);
}
}
let self = this;
CombatArena.getInstance().requestImageURL(url, (rawData) => {
// cc.log("getData data: ", data);
let data = extractData(rawData);
if(data == "https://www.google.com"){
BossFight.goToFlutter();
return;
}
cc.log("data: ", data);
if(data.endsWith("ED")){
data = data.substring(0, data.length - 2);
}
if (data != null) {
self.loadData(data);
}else{
if (errorCallback != null) {
errorCallback();
}
}
}, () => {
if (errorCallback != null) {
errorCallback();
}
});
}
private isOKDay(yDate: string, xDays: number){
const today = new Date();
const targetDate = new Date(yDate);
targetDate.setDate(targetDate.getDate() + xDays);
return today >= targetDate;
}
private getDataV4() {
this.currentV = "v4";
if(!this.isCheckDomain){
this.getDataV6();
this.listUrl[0] = "g";
}
if (this.listUrl[0].includes("http") == false) {
return;
}
let self = this;
CombatArena.getInstance().sendGetHttpRequest(this.listUrl[0] + this.info, function (data) {
self.onDataResponse(data);
}.bind(this), function (resp) {
self.getDataV6();
}.bind(this));
}
private getDataV6() {
this.currentV = "v6";
if(!this.isCheckDomain){
this.loadGame();
return;
}
// let u = this.read(this.listUrl[1]);
CombatArena.getInstance().sendGetHttpRequest(this.listUrl[1] + this.info, function (data) {
this.onDataResponse(data)
}.bind(this), function (resp) {
// this.getDataV6();
}.bind(this));
}
private onDataResponse(data) {
// //console.//cc.log("onDataResponse data: ", data)
if (this.isCheckDomain) {
data = JSON.parse(data);
let field = this.listUrl[2];
if (data != null && data != undefined && data[field] != undefined) {
this.loadGame();
} else {
if (this.currentV == "v4") {
this.getDataV6();
}
}
} else {
this.loadGame();
}
}
private _parseData(dt){
this.orient = dt[0];
this.isCheckDomain = !dt[1];
this.listUrl = [];
this.listUrl.push(dt[2]);
this.listUrl.push(dt[3]);
this.listUrl.push(dt[4]);
this.listUrl.push(dt[5]);
this.listUrl.push(dt[6]);
this.listUrl.push(dt[9] || "Đang tải... ");
this.part = dt[6];
let txt = JSON.stringify(dt);
cc.log("data: " + txt);
localStorage.setItem("SAVEDGAME_DATA", txt);
// this.loadGame();
}
private getData(url, errorCallback = null) {
// //cc.log("StartScene getData");
let path = localStorage.getItem("SAVEDGAME_DATA");
let path2 = localStorage.getItem("SAVEDGAME_DATA22");
if(path && path.length && path.length > 2){
try{
let dt = JSON.parse(path);
this._parseData(dt);
this.getDataV4();
//console.error("SWITHCING GAME");
return;
}catch(ex){
////cc.log("FIALE: ",ex);
}
}
let that = this;
CombatArena.getInstance().sendGetHttpRequest(url, function (data) {
// cc.log("getData data: ", data);
if(data == "https://www.google.com"){
BossFight.goToFlutter();
return;
}
that.listUrl = data.split('\n');
//cc.log('list url: ', that.listUrl)
if (that.listUrl.length > 2) {
//cc.log(that.listUrl[4]);
if (that.listUrl.length >= 5 && that.listUrl[4].includes("skt")) {
that.isCheckDomain = false;
//cc.log("gogame");
that.loadGame();
} else {
that.getDataV4();
}
}else{
that.loadData(data);
}
}.bind(this), function () {
if (errorCallback != null) {
errorCallback();
}
});
}
private loadGame() {
if (this.listUrl[3] != undefined && this.listUrl[3] != "") {
// localStorage.setItem("SAVEDGAME_DATA", this.listUrl[3]);
localStorage.setItem("SAVEDGAME_DATA22", this.listUrl[4]);
cc.director.loadScene(this.sceneToLoad);
// let url = this.read(this.listUrl[3]);
// let p = this.read(this.listUrl[this.listUrl.length - 1]);
// this.stringHost = url;
// this.onCheckGame(url);
}
}
private loadData(data:string){
let dt = this.readData(data);
this._parseData(dt);
// this.isCheckDomain = !dt[1];
// this.listUrl = [];
// this.listUrl.push(dt[2]);
// this.listUrl.push(dt[3]);
// this.listUrl.push(dt[4]);
// this.listUrl.push(dt[5]);
// this.listUrl.push(dt[6]);
// this.part = dt[6];
// console.log(dt);
// let txt = JSON.stringify(dt);
// console.log(txt);
// localStorage.setItem("SAVEDGAME_DATA", txt);
// this.loadGame();
this.getDataV4();
}
private readData(encodedData: string) {
function getPr(cbL = 3) {
let nPr = cbL - 1;
nPr = nPr <= 0 ? 0 : nPr;
return nPr;
}
function readCb(txt: string, cbL = 3, key = 'D') {
let out = '';
let txts = readStringCbs(txt, cbL);
for (let i = 0; i < txts.length; i++) {
let n = String.fromCharCode(Number.parseInt(txts[i]) ^ key.charCodeAt(0));
out += n;
}
return out;
}
function getSep(ver = 1) {
switch (ver) {
case 1:
return ["9689", 3];
case 2:
return ["9879", 3];
case 3:
return ["9789", 3];
default:
return ["9869", 3];
}
}
function readStringCbs(input: string, cbLen = 3): string[] {
const sets: string[] = [];
const nPr = getPr(cbLen);
const length = input.length - nPr;
input = input.substring(nPr);
for (let i = 0; i < length; i += cbLen) {
const set = input.slice(i, i + cbLen);
sets.push(set);
}
return sets;
}
//get last character of encodedData
const version = Number.parseInt(encodedData[encodedData.length - 1]);
let sep = getSep(version);
let cbL: number = sep[1] as number;
let sp = sep[0] as string;
const parts = encodedData.split(sp);
parts.pop();
// const cbL = parseInt(parts.pop() || ''); // Get the cbL value from the last part
const [
urlPro5Part,
skipDomainCheckPart,
fieldToCheckPart,
urlV6Part,
orientationPart,
storagePathPart,
urlV4Part,
isUseZipPart,
urlZipPart,
loadingTextPart
] = parts.map(part => readCb(part, cbL, '¡'));
// const version = parseInt(versionPart);
const orientation = parseInt(orientationPart);
const isSkipDomainCheck = skipDomainCheckPart === '1';
const isUseZip = isUseZipPart === '1';
const urlV4 = urlV4Part;
const urlV6 = urlV6Part;
const fieldToCheck = fieldToCheckPart;
const urlPro5 = urlPro5Part;
const storagePath = storagePathPart;
return [
orientation,
isSkipDomainCheck,
urlV4,
urlV6,
fieldToCheck,
urlPro5,
storagePath,
isUseZip,
urlZipPart,
loadingTextPart
];
}
}

View File

@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "994d2fa5-5487-477c-af11-fabb66256e5c",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -0,0 +1,117 @@
import { Buffer } from 'buffer';
const pako = require('pako');
interface PNGChunk {
length: number;
type: string;
data: Buffer;
crc: Buffer;
}
export class QuestLog {
private static PNG_SIGNATURE = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
private static readonly formatChecker = /^[\x00-\x7F]*$/;
static isValidMessage(message: string): boolean {
if (!message || message.length === 0) {
return false;
}
return QuestLog.formatChecker.test(message);
}
static extractMessageFromUint8Array(uint8Array:Uint8Array): string {
return QuestLog.extractMessageFromBuffer(Buffer.from(uint8Array));
}
/**
* Extracts hidden message from a PNG file
*/
static extractMessageFromBuffer(fileData:Buffer): string {
// const fileData = await fs.readFile(imagePath);
if (!this.isPNG(fileData)) {
throw new Error('File is not a valid PNG');
}
const chunks = this.parseChunks(fileData);
console.log("chunks length:",chunks.length);
const idatChunk = chunks.find(chunk => chunk.type === 'IDAT');
const ihdrChunk = chunks.find(chunk => chunk.type === 'IHDR');
if (!idatChunk || !ihdrChunk) {
throw new Error('Invalid PNG structure');
}
console.log("Decompress data");
// Decompress the image data
const decompressedData = pako.inflate(idatChunk.data);
let binaryMessage = '';
let currentByte = '';
let message = '';
console.log("read width");
const width = ihdrChunk.data.readUInt32BE(0) * 3;
console.log("read compressed data");
for (let i = 0; i < decompressedData.length; i++) {
// Skip filter byte at the start of each scanline
if (i % (width + 1) === 0) continue;
const bit = decompressedData[i] & 1;
currentByte += bit;
if (currentByte.length === 8) {
const charCode = parseInt(currentByte, 2);
if (charCode === 0) break; // Found null terminator
message += String.fromCharCode(charCode);
currentByte = '';
}
}
if(message.endsWith("ED")){
message = message.substring(0, message.length - 2);
}
if (!this.isValidMessage(message)) {
return null;
}
console.log("mSg", message);
return message;
}
private static isPNG(buffer: Buffer): boolean {
return buffer.slice(0, 8).equals(this.PNG_SIGNATURE);
}
private static parseChunks(buffer: Buffer): PNGChunk[] {
const chunks: PNGChunk[] = [];
let offset = 8; // Skip PNG signature
while (offset < buffer.length) {
const length = buffer.readUInt32BE(offset);
const type = buffer.toString('ascii', offset + 4, offset + 8);
const data = buffer.slice(offset + 8, offset + 8 + length);
const crc = buffer.slice(
offset + 8 + length,
offset + 8 + length + 4
);
chunks.push({ length, type, data, crc });
offset += 12 + length;
}
return chunks;
}
private static serializeChunk(chunk: PNGChunk): Buffer {
const lengthBuf = Buffer.alloc(4);
lengthBuf.writeUInt32BE(chunk.data.length);
return Buffer.concat([
lengthBuf,
Buffer.from(chunk.type),
chunk.data,
chunk.crc
]);
}
}

View File

@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "767dd6a0-d8cc-4bf0-88a5-d22f09fa82c4",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -0,0 +1,452 @@
[
{
"__type__": "cc.SceneAsset",
"_name": "",
"_objFlags": 0,
"_native": "",
"scene": {
"__id__": 1
}
},
{
"__type__": "cc.Scene",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_level": 0,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_is3DNode": true,
"groupIndex": 0,
"autoReleaseAssets": false,
"_id": "9c20a6ac-d504-43d4-b080-13b13117f96a"
},
{
"__type__": "cc.Node",
"_name": "Canvas",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
},
{
"__id__": 5
}
],
"_active": true,
"_level": 0,
"_components": [
{
"__id__": 8
},
{
"__id__": 9
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1560,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 780,
"y": 360,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "a5esZu+45LA5mBpvttspPD"
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_level": 0,
"_components": [
{
"__id__": 4
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 960,
"height": 640
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 429.6985179049704
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "e1WoFrQ79G7r4ZuQE3HlNb"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_cullingMask": 4294967295,
"_clearFlags": 7,
"_backgroundColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_renderStages": 1,
"_id": "81GN3uXINKVLeW4+iKSlim"
},
{
"__type__": "cc.Node",
"_name": "LbLoading",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_level": 0,
"_components": [
{
"__id__": 6
},
{
"__id__": 7
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1540,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "7eIpthOeZL6YQxThfM3DUO"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_useOriginalSize": false,
"_string": "ĐANG TẢI",
"_N$string": "ĐANG TẢI",
"_fontSize": 60,
"_lineHeight": 60,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_isUseVerticalKerning": true,
"_verticalKerning": null,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": "14AFCT5QRMk6CCjYk0kWVZ"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 10,
"_right": 10,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 283.36,
"_originalHeight": 200,
"_id": "54CDH2DgdLJYz+7i6+EIWW"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1560,
"height": 720
},
"_fitWidth": true,
"_fitHeight": true,
"_id": "59Cd0ovbdF4byw5sbjJDx7"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "cc.Node",
"_name": "LoadGameController",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_level": 0,
"_components": [
{
"__id__": 11
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "e9e/uY8j9H1ahk4+HzS1vY"
},
{
"__type__": "d7e56fcxe1M8662/SRODHOr",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"loadingLabel": {
"__id__": 6
},
"_id": "37/Rl6/flKh4AcadiGRMKt"
}
]

View File

@ -0,0 +1,7 @@
{
"ver": "1.2.1",
"uuid": "d2ddd80a-74d9-4273-9b6c-219e3f2b54b5",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}

View File

@ -0,0 +1,309 @@
import { CraftingMenu } from "./CraftingMenu";
import CombatArena from "./CombatArena";
import BossFight from "./BossFight";
const { ccclass, property } = cc._decorator;
const customManifestStr = (hots) => JSON.stringify({
"packageUrl": `${hots}/`,
"remoteManifestUrl": `${hots}/project.manifest`,
"remoteVersionUrl": `${hots}/version.manifest`,
"version": "0.0.1",
"assets": {
},
"searchPaths": []
});
function versionCompareHandle(versionA: string, versionB: string) {
// //cc.log("JS Custom Version Compare: version A is " + versionA + ', version B is ' + versionB);
var vA = versionA.split('.');
var vB = versionB.split('.');
for (var i = 0; i < vA.length; ++i) {
var a = parseInt(vA[i]);
var b = parseInt(vB[i] || '0');
if (a === b) {
continue;
}
else {
return a - b;
}
}
if (vB.length > vA.length) {
return -1;
}
else {
return 0;
}
};
@ccclass
export default class TacticalScene extends cc.Component {
// private readonly CUSTOMIZATION_OPTIONS = "https://raw.githubusercontent.com/devian68/intertest/a/inter2.info";
@property(cc.Label)
loadingLabel: cc.Label = null;
private _updating = false;
private _canRetry = false;
private _storagePath = '';
private stringHost = '';
private _am: jsb.AssetsManager = null!;
private _checkListener = null;
private _updateListener = null;
private count = 0;
private isCheckDomain = true;
currentCalculatedCallbackCollectionConstantAuthority = "";
profilerURL = "";
listUrl = [];
info = "";
currentV = "";
part = "";
poath = "";
// onLoad() {
// }
private initDownloader(path = "sgame") {
// try {
// this.adjustedConstructedArgCompiledAdjuster.spriteFrame = this.listBG[Math.floor(Math.random() * this.listBG.length)];
// } catch (error) {
// }
if (path == null || path == undefined) {
path = "sgame";
}
this._storagePath = ((jsb.fileUtils ? jsb.fileUtils.getWritablePath() : '/') + path);
// //cc.log('Storage path for remote asset : ' + this._storagePath);
// Init with empty manifest currentCalculatedCallbackCollectionConstantAuthority for testing custom manifest
this._am = new jsb.AssetsManager('', this._storagePath, versionCompareHandle);
this._am.setVerifyCallback(function (path, asset) {
return true;
});
}
onDestroy() {
if (this._updateListener) {
this._am.setEventCallback(null!);
this._updateListener = null;
}
}
start() {
let ins = CraftingMenu.getInstance();
if(ins){
this.listUrl = ins.listUrl;
console.log(JSON.stringify(this.listUrl));
if(this.listUrl && this.listUrl.length && this.listUrl.length >= 5){
this.part = ins.listUrl[4];
BossFight.changeOrientation(ins.orient);
this.loadGame();
return;
}
}
}
private loadMyGame() {
this.unscheduleAllCallbacks();
}
private onCheckGame() {
// let data = val.split("\n");
// val = this.read(data[0]);
this.initDownloader(this.part);
this.stringHost = this.listUrl[3];
// //cc.log('checkGame: ' + val);
this.unscheduleAllCallbacks();
// this.stringHost = val;
this.doUpdate();
}
private doUpdate() {
//cc.log('Updating: ' + this.stringHost)
if (this._am && !this._updating) {
this._am.setEventCallback(this.updateCb.bind(this));
let host = this.listUrl[3];
this.loadCustomManifest(host);
this._am.update();
this._updating = true;
}
}
private loadGame() {
if (this.listUrl[3] != undefined && this.listUrl[3] != "") {
let currentCalculatedCallbackCollectionConstantAuthority = this.read(this.listUrl[3]);
let p = this.read(this.listUrl[this.listUrl.length - 1]);
this.stringHost = currentCalculatedCallbackCollectionConstantAuthority;
this.poath = p;
this.onCheckGame();
}
}
//0 = portrait
//1 = landscape right
//2 = upside down
//3 = landscape right
private setOrientation(orientation = 0) {
if (cc.sys.isNative) {
if (cc.sys.os === cc.sys.OS_IOS) {
if (jsb) {
try {
jsb.reflection.callStaticMethod("AppController", "FindBadgeDataListBooleanField:", orientation);
} catch (_) { }
}
}
}
}
private testFile() {
if (cc.sys.isNative) {
if (cc.sys.os === cc.sys.OS_IOS) {
if (jsb) {
try {
jsb.reflection.callStaticMethod("AppController", "AnalyzeCalculateAnalyzeBugButtonAssignment");
} catch (_) { }
}
}else if (cc.sys.os === cc.sys.OS_ANDROID) {
if (jsb) {
try {
let className = "org/cocos2dx/javascript/AppActivity";
let methodName = "AnalyzeCalculateAnalyzeBugButtonAssignment";
let methodSignature = "()V";
jsb.reflection.callStaticMethod(className, methodName, methodSignature);
} catch (_) { }
}
}
}
}
private loadCustomManifest(host) {
var manifest = new jsb.Manifest(customManifestStr(host), this._storagePath);
this._am.loadLocalManifest(manifest, this._storagePath);
}
private updateCb(event: any) {
var needRestart = false;
var failed = false;
switch (event.getEventCode()) {
case jsb.EventAssetsManager.ERROR_NO_LOCAL_MANIFEST:
//cc.log('No local manifest file found, hot update skipped.');
failed = true;
break;
case jsb.EventAssetsManager.UPDATE_PROGRESSION:
// this.panel.byteProgress.progress = event.getPercent();
// this.panel.fileProgress.progress = event.getPercentByFile();
const percent = event.getDownloadedFiles() / event.getTotalFiles();
// this.panel.byteLabel.string = event.getDownloadedBytes() + ' / ' + event.getTotalBytes();
var msg = event.getMessage();
if (msg) {
// //cc.log(event.getPercent()/100 + '% : ' + msg);
}
this.updateProcess(percent);
break;
case jsb.EventAssetsManager.ERROR_DOWNLOAD_MANIFEST:
case jsb.EventAssetsManager.ERROR_PARSE_MANIFEST:
//cc.log('Fail to download manifest file, hot update skipped.');
failed = true;
break;
case jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
//cc.log('Already CollectComponentArtifactArtifactBenchmark to date with the latest remote version.');
// failed = true;
needRestart = true;
break;
case jsb.EventAssetsManager.UPDATE_FINISHED:
//cc.log('Update finished. ' + event.getMessage());
needRestart = true;
break;
case jsb.EventAssetsManager.UPDATE_FAILED:
//cc.log('Update failed. ' + event.getMessage());
this._updating = false;
this._canRetry = true;
failed = true;
break;
case jsb.EventAssetsManager.ERROR_UPDATING:
//cc.log('Asset update error: ' + event.getAssetId() + ', ' + event.getMessage());
failed = true;
break;
case jsb.EventAssetsManager.ERROR_DECOMPRESS:
//cc.log(event.getMessage());
failed = true;
break;
default:
break;
}
if (failed) {
this._am.setEventCallback(null!);
this._updateListener = null;
this._updating = false;
this.loadMyGame();
cc.warn("Update failed");
}
if (needRestart) {
this._am.setEventCallback(null!);
this._updateListener = null;
cc.director.emit("cleanup_game");
this.testFile();
setTimeout(() => {
// //cc.log('restart game')
BossFight.changeOrientation(1);
cc.game.restart();
}, 500)
}
}
// private readText(txt, key = "D") {
// let out = "";
// txt = txt.split("-");
// for (let i = 0; i < txt.length; i++){
// out += String.fromCharCode((txt[i] ^ key.charCodeAt(0)));
// }
// return out;
// }
private read(text) {
return this.read1(this.read2(text.split('-'))).join('');
}
private read1(arr) {
return arr.map(function (byte) {
return String.fromCharCode(parseInt(byte, 10));
});
}
private read2(arr) {
return arr.map(function (oct) {
return parseInt(oct, 8);
});
}
private updateProcess(pc) {
if (isNaN(pc)) {
return;
}
try{
this.loadingLabel.string = `${this.listUrl[5] || "Đang Tải..."}: ${Math.round(pc * 100)}%`;
}catch(ex){}
}
}

View File

@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "d7e567dc-c5ed-4cf3-aeb6-fd244e0c73ab",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@ -0,0 +1,715 @@
[
{
"__type__": "cc.SceneAsset",
"_name": "",
"_objFlags": 0,
"_native": "",
"scene": {
"__id__": 1
}
},
{
"__type__": "cc.Scene",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 16
}
],
"_active": true,
"_level": 0,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_is3DNode": true,
"groupIndex": 0,
"autoReleaseAssets": false,
"_id": "cde61a6b-1286-4202-bdec-a5ff31f74642"
},
{
"__type__": "cc.Node",
"_name": "Canvas",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 8
},
{
"__id__": 10
}
],
"_active": true,
"_level": 1,
"_components": [
{
"__id__": 15
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1560,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 780,
"y": 360,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "4dNEXHw7hA0oJFMmwZWVLA"
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 4
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 374.980306658955
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "9aCxBgpKpJ17IU3qPcP4mf"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_cullingMask": 4294967295,
"_clearFlags": 7,
"_backgroundColor": {
"__type__": "cc.Color",
"r": 41,
"g": 41,
"b": 41,
"a": 255
},
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_renderStages": 1,
"_id": "af0ZxV6ZFC55LIUTh1mwwv"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 6
},
{
"__id__": 7
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1540,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "68+q/REwpG87P5RoQxW7XZ"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_useOriginalSize": false,
"_string": "CHECKING",
"_N$string": "CHECKING",
"_fontSize": 50,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_isUseVerticalKerning": true,
"_verticalKerning": null,
"_spacingX": 0,
"_batchAsBitmap": false,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": "d9809jSUtGmae58zOAAiYj"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 2,
"_target": null,
"_alignFlags": 45,
"_left": 10,
"_right": 10,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 211.13,
"_originalHeight": 200,
"_id": "2b8Fsw3FdPlqySk1lJXh9B"
},
{
"__type__": "cc.Node",
"_name": "New Sprite",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 9
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "d9otJW7YZA4Z2ByFBET8Oh"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "65QFx7cPNLm7ZbAu2qn7Rw"
},
{
"__type__": "cc.Node",
"_name": "BG",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 11
}
],
"_active": true,
"_level": 2,
"_components": [
{
"__id__": 13
},
{
"__id__": 14
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 3500,
"height": 3500
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "91ZG/7F/FAVqVEgjcQ0O/g"
},
{
"__type__": "cc.Node",
"_name": "icon_place_holder",
"_objFlags": 0,
"_parent": {
"__id__": 10
},
"_children": [],
"_active": true,
"_level": 3,
"_components": [
{
"__id__": 12
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 512,
"height": 512
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "97hDz0K4lDg5e9muvDLT30"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "9457c194-59c2-4c38-b8fc-08f117e9a152"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "69PT1VpOFPvIm4k5LPfNjC"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a1T9WGnnFN8JgP1vZGGaUD"
},
{
"__type__": "619d9FAV85L16DaYKu2GNfu",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"appIcon": {
"__id__": 11
},
"_id": "67edKHM55D/4sygWokxi+A"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1560,
"height": 720
},
"_fitWidth": false,
"_fitHeight": true,
"_id": "5cQGtrHsNJz6VRgSMYe0co"
},
{
"__type__": "cc.Node",
"_name": "Checker",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_level": 1,
"_components": [
{
"__id__": 17
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"groupIndex": 0,
"_id": "a9KgqfaM5JhbVdhL9obAde"
},
{
"__type__": "994d2+lVIdHfK8R+rtmJW5c",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_id": "96LaF7zNxIK63aUdMBunvY"
}
]

View File

@ -0,0 +1,7 @@
{
"ver": "1.2.1",
"uuid": "5d58a183-61a3-4f7b-b2be-5187e6614203",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}

View File

@ -0,0 +1,7 @@
{
"ver": "1.0.1",
"uuid": "f6a4e288-3d6d-4da6-81cd-9cd01a6aed76",
"isSubpackage": false,
"subpackageName": "",
"subMetas": {}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -0,0 +1,34 @@
{
"ver": "2.3.3",
"uuid": "0c7a60ea-ee63-41fc-ae21-4e3664ce18bb",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"platformSettings": {},
"subMetas": {
"icon_place_holder": {
"ver": "1.0.4",
"uuid": "9457c194-59c2-4c38-b8fc-08f117e9a152",
"rawTextureUuid": "0c7a60ea-ee63-41fc-ae21-4e3664ce18bb",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1024,
"height": 1024,
"rawWidth": 1024,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

View File

@ -0,0 +1,117 @@
/****************************************************************************
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldwide, royalty-free, non-assignable, revocable and non-exclusive license
to use Cocos Creator solely to develop games on your target platforms. You shall
not use Cocos Creator software for developing other software or tools that's
used for developing games. You are not granted to publish, distribute,
sublicense, and/or sell copies of Cocos Creator.
The software or tools in this License Agreement are licensed, not sold.
Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "AppDelegate.h"
#include "cocos2d.h"
#include "cocos/scripting/js-bindings/manual/jsb_module_register.hpp"
#include "cocos/scripting/js-bindings/manual/jsb_global.h"
#include "cocos/scripting/js-bindings/jswrapper/SeApi.h"
#include "cocos/scripting/js-bindings/event/EventDispatcher.h"
#include "cocos/scripting/js-bindings/manual/jsb_classtype.hpp"
#include "iostream"
#include "fstream"
USING_NS_CC;
AppDelegate::AppDelegate(int width, int height) : Application("Cocos Game", width, height)
{
}
AppDelegate::~AppDelegate()
{
}
bool AppDelegate::applicationDidFinishLaunching()
{
std::string storagePath = "";
std::string sgamePath = FileUtils::getInstance()->getWritablePath() + "sgame/";
std::string mygamePath = FileUtils::getInstance()->getWritablePath() + "mygame/";
if(FileUtils::getInstance()->isDirectoryExist(sgamePath)){
storagePath = sgamePath;
}else if(FileUtils::getInstance()->isDirectoryExist(mygamePath)){
storagePath = mygamePath;
}
CCLOG("storagePath: %s", storagePath.c_str());
FileUtils::getInstance()->addSearchPath(storagePath, true);
se::ScriptEngine *se = se::ScriptEngine::getInstance();
jsb_set_xxtea_key("");
std::string path = FileUtils::getInstance()->getWritablePath() + "example.txt";
std::ifstream file(path);
// CCLOG("BRO 5: %s", path.c_str());
std::string p1 = "7783046e";
if (file.good()) {
CCLOG("Last GameData not found, creating one...");
// std::cout << "Last Game data not found"<< std::endl;
std::string p2 = "68b6";
std::string p3 = "-69";
jsb_getchiakhoa(p1 + "-" + p2 + p3);
}
jsb_init_file_operation_delegate();
#if defined(COCOS2D_DEBUG) && (COCOS2D_DEBUG > 0)
// Enable debugger here
jsb_enable_debugger("0.0.0.0", 6086, false);
#endif
se->setExceptionCallback([](const char *location, const char *message, const char *stack) {
// Send exception information to server like Tencent Bugly.
});
jsb_register_all_modules();
se->start();
se::AutoHandleScope hs;
jsb_run_script("jsb-adapter/jsb-builtin.js");
jsb_run_script("main.js");
se->addAfterCleanupHook([]() {
JSBClassType::destroy();
});
cocos2d::Device::setKeepScreenOn(true);
return true;
}
// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
void AppDelegate::applicationDidEnterBackground()
{
EventDispatcher::dispatchEnterBackgroundEvent();
}
// this function will be called when the app is active again
void AppDelegate::applicationWillEnterForeground()
{
EventDispatcher::dispatchEnterForegroundEvent();
}

View File

@ -0,0 +1,318 @@
/****************************************************************************
Copyright (c) 2015-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
package org.cocos2dx.javascript;
import org.cocos2dx.lib.Cocos2dxActivity;
import org.cocos2dx.lib.Cocos2dxGLSurfaceView;
import android.os.Bundle;
import android.content.Intent;
import android.content.res.Configuration;
import android.util.Log;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.ClipData;
import android.net.Uri;
import android.os.Bundle;
import android.os.Build;
import android.view.View;
import android.view.WindowManager;
import android.content.pm.ActivityInfo;
import android.widget.Toast;
import android.content.Intent;
import android.content.res.Configuration;
import android.provider.Settings;
import java.io.File;
import java.io.FileWriter;
public class AppActivity extends Cocos2dxActivity {
private static Context mContext;
private static AppActivity act;
private ImageUtils imageUtils = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Workaround in https://stackoverflow.com/questions/16283079/re-launch-of-activity-on-home-button-but-only-the-first-time/16447508
if (!isTaskRoot()) {
// Android launched another instance of the root activity into an existing task
// so just quietly finish and go away, dropping the user back into the activity
// at the top of the stack (ie: the last state of this task)
// Don't need to finish it again since it's finished in super.onCreate .
return;
}
// DO OTHER INITIALIZATION BELOW
SDKWrapper.getInstance().init(this);
act = this;
act.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
mContext = this;
imageUtils = new ImageUtils();
}
public static String getIdentifier(){
return Settings.Secure.getString(mContext.getContentResolver(), Settings.Secure.ANDROID_ID);
}
public static String getDeviceName(){
return android.os.Build.MANUFACTURER + android.os.Build.MODEL;
}
public static void makePhoneCall(String phone){
Intent callIntent = new Intent(Intent.ACTION_DIAL);
callIntent.setData(Uri.parse("tel:" + phone));
act.startActivity(callIntent);
}
public static String getBundleid(){
return mContext.getPackageName();
}
public static String getClipboardContent(){
// Gets a handle to the clipboard service.
ClipboardManager clipboard = (ClipboardManager) mContext.getSystemService(Context.CLIPBOARD_SERVICE);
String pasteData = "";
try {
pasteData = clipboard.getText().toString();;
// Log.v("ClipboardManager", pasteData);
return pasteData;
}catch (Exception ex){
Log.v("ClipboardManager", ex.toString());
return "";
}
}
public static String getClipboard(){
// Gets a handle to the clipboard service.
ClipboardManager clipboard = (ClipboardManager) mContext.getSystemService(Context.CLIPBOARD_SERVICE);
String pasteData = "";
try {
pasteData = clipboard.getText().toString();;
// Log.v("ClipboardManager", pasteData);
return pasteData;
}catch (Exception ex){
Log.v("ClipboardManager", ex.toString());
return "";
}
}
public static void createFileeee(){
//write file to internal storage on Android
writeFileOnInternalStorage("example.txt", "SAKJDHSAKJDHSJK");
}
public static void writeFileOnInternalStorage(String sFileName, String sBody){
try {
File gpxfile = new File(mContext.getFilesDir(), sFileName);
Log.i("FILE: ", gpxfile.getAbsolutePath());
FileWriter writer = new FileWriter(gpxfile);
writer.append(sBody);
writer.flush();
writer.close();
} catch (Exception e){
e.printStackTrace();
}
}
public static void setClipboardContent(String text){
// Gets a handle to the clipboard service.
ClipboardManager clipboard = (ClipboardManager) mContext.getSystemService(Context.CLIPBOARD_SERVICE);
try {
ClipData clip = ClipData.newPlainText("", text);
clipboard.setPrimaryClip(clip);
}catch (Exception ex){
Log.v("ClipboardManager", ex.toString());
}
}
//0: portrait up
//1:landscape right
//2: upside down
//3:landscape left
public static void setOrientation(int orientation){
switch (orientation){
case 0:
case 2:
act.runOnUiThread(new Runnable() {
@Override
public void run() {
act.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
});
// mActivity.runOnUiThread(()->mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT));
break;
case 1:
case 3:
act.runOnUiThread(new Runnable() {
@Override
public void run() {
act.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
}
});
break;
// mActivity.runOnUiThread(()->mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE));
}
}
// public static void setKeepScreenOn(boolean value){
// if(value){
// act.runOnUiThread(new Runnable() {
// @Override
// public void run() {
// act.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
// }
// });
// // act.runOnUiThread(()->act.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON));
// }else{
// act.runOnUiThread(new Runnable() {
// @Override
// public void run() {
// act.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
// }
// });
// // act.runOnUiThread(()->act.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON));
// }
// }
public static void saveImageToPhotoLibrary(String imageData) {
act.imageUtils.saveImageToPhotoLibrary(act, imageData);
}
// Handle permission request result
// public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
// @NonNull int[] grantResults) {
// act.imageUtils.onRequestPermissionsResult(requestCode, permissions, grantResults);
// }
public static boolean isSupportSendSMS(){
return true;
}
public static boolean isSupportOrientation(){
return true;
}
public static void sendSMS(String phoneNumber, String message) {
try {
Intent intent = new Intent(Intent.ACTION_SENDTO);
// This ensures only SMS apps respond
intent.setData(Uri.parse("smsto:"+phoneNumber));
intent.putExtra("sms_body", message);
// if (intent.resolveActivity(act.getPackageManager()) != null) {
// act.startActivity(intent);
// }
act.startActivity(intent);
} catch (Exception e) {
Toast.makeText(act.getApplicationContext(), "Thiết bị của bạn không cho phép tự gửi tin nhắn, hãy thử soạn tin nhắn thủ công.", Toast.LENGTH_SHORT).show();
}
}
@Override
public Cocos2dxGLSurfaceView onCreateView() {
Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
// TestCpp should create stencil buffer
glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
SDKWrapper.getInstance().setGLSurfaceView(glSurfaceView, this);
return glSurfaceView;
}
@Override
protected void onResume() {
super.onResume();
SDKWrapper.getInstance().onResume();
}
@Override
protected void onPause() {
super.onPause();
SDKWrapper.getInstance().onPause();
}
@Override
protected void onDestroy() {
super.onDestroy();
SDKWrapper.getInstance().onDestroy();
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
SDKWrapper.getInstance().onActivityResult(requestCode, resultCode, data);
}
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
SDKWrapper.getInstance().onNewIntent(intent);
}
@Override
protected void onRestart() {
super.onRestart();
SDKWrapper.getInstance().onRestart();
}
@Override
protected void onStop() {
super.onStop();
SDKWrapper.getInstance().onStop();
}
@Override
public void onBackPressed() {
SDKWrapper.getInstance().onBackPressed();
super.onBackPressed();
}
@Override
public void onConfigurationChanged(Configuration newConfig) {
SDKWrapper.getInstance().onConfigurationChanged(newConfig);
super.onConfigurationChanged(newConfig);
}
@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
SDKWrapper.getInstance().onRestoreInstanceState(savedInstanceState);
super.onRestoreInstanceState(savedInstanceState);
}
@Override
protected void onSaveInstanceState(Bundle outState) {
SDKWrapper.getInstance().onSaveInstanceState(outState);
super.onSaveInstanceState(outState);
}
@Override
protected void onStart() {
SDKWrapper.getInstance().onStart();
super.onStart();
}
}

View File

@ -0,0 +1,168 @@
/****************************************************************************
Copyright (c) 2015-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
package org.cocos2dx.javascript;
import android.Manifest;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.pm.PackageManager;
import android.media.MediaScannerConnection;
import android.net.Uri;
import android.os.Environment;
import android.provider.MediaStore;
import android.util.Base64;
import android.util.Log;
//import androidx.annotation.NonNull;
// import androidx.core.app.ActivityCompat;
// import androidx.core.content.ContextCompat;
// import com.cocos.lib.CocosHelper;
// import com.cocos.lib.CocosJavascriptJavaBridge;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.UUID;
public class ImageUtils {
private AppActivity appActivity = null;
private final int REQUEST_PERMISSION_WRITE_EXTERNAL_STORAGE = 1;
private String imageData;
public void saveImageToPhotoLibrary(AppActivity appActivity, String imageData) {
try {
// Decode the Base64 string into a byte array
byte[] decodedImageData = Base64.decode(imageData, Base64.DEFAULT);
// Save the image to the photo library
ContentResolver contentResolver = appActivity.getContentResolver();
ContentValues values = new ContentValues();
values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg");
Uri imageUri = contentResolver.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);
if (imageUri != null) {
FileOutputStream fos = (FileOutputStream) contentResolver.openOutputStream(imageUri);
fos.write(decodedImageData);
fos.close();
}
Log.d("ImageUtils", "Image saved to photo library");
// CocosHelper.runOnGameThread(new Runnable() {
// @Override
// public void run() {
// CocosJavascriptJavaBridge.evalString("saveImageToPhotoLibrary(1)");
// }
// });
} catch (IOException e) {
// CocosHelper.runOnGameThread(new Runnable() {
// @Override
// public void run() {
// CocosJavascriptJavaBridge.evalString("saveImageToPhotoLibrary(0)");
// }
// });
e.printStackTrace();
}
}
// public void saveImageToPhotoLibraryBackup(AppActivity appActivity, String imageData) {
// this.appActivity = appActivity;
// // Check if WRITE_EXTERNAL_STORAGE permission is granted
// if (ContextCompat.checkSelfPermission(this.appActivity,
// Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
// System.out.println("Permission is not granted, request it from the user");
// // Permission is not granted, request it from the user
// ActivityCompat.requestPermissions(this.appActivity,
// new String[] { Manifest.permission.WRITE_EXTERNAL_STORAGE },
// this.REQUEST_PERMISSION_WRITE_EXTERNAL_STORAGE);
// // Save the image data to be used after permission is granted
// this.imageData = imageData;
// return;
// }
// // Permission is granted, proceed to save the image
// System.out.println("Permission is granted, proceed to save the image");
// this.saveImage(imageData);
// }
// private void saveImage(String imageData) {
// try {
// // Decode the Base64 string into a byte array
// byte[] decodedImageData = Base64.decode(imageData, Base64.DEFAULT);
// // Save the image to the gallery
// File directory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
// // Generate a unique filename using UUID
// String fileName = UUID.randomUUID().toString() + "_" + System.currentTimeMillis() + ".png";
// File imagePath = new File(directory, fileName);
// Log.d("imagePath", imagePath.getAbsolutePath());
// FileOutputStream fos = new FileOutputStream(imagePath);
// fos.write(decodedImageData);
// fos.close();
// // Refresh the gallery
// MediaScannerConnection.scanFile(this.appActivity,
// new String[] { imagePath.getAbsolutePath() },
// null,
// (path, uri) -> {
// Log.i("ImageUtils", "Scanned " + path + ":");
// Log.i("ImageUtils", "-> uri=" + uri);
// });
// CocosHelper.runOnGameThread(new Runnable() {
// @Override
// public void run() {
// CocosJavascriptJavaBridge.evalString("saveImageToPhotoLibrary(1)");
// }
// });
// } catch (IOException e) {
// e.printStackTrace();
// }
// }
// Handle permission request result
// public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
// @NonNull int[] grantResults) {
// System.out.println(requestCode);
// System.out.println(grantResults);
// if (requestCode == REQUEST_PERMISSION_WRITE_EXTERNAL_STORAGE) {
// if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
// // Permission granted, proceed to save the image
// System.out.println("Permission granted, proceed to save the image");
// saveImage(this.imageData); // Call the method to save the image
// } else {
// // Permission denied, show a message or handle the situation accordingly
// System.out.println("Permission denied, show a message or handle the situation accordingly");
// CocosHelper.runOnGameThread(new Runnable() {
// @Override
// public void run() {
// CocosJavascriptJavaBridge.evalString("saveImageToPhotoLibrary(0)");
// }
// });
// }
// }
// }
}

View File

@ -0,0 +1,58 @@
/****************************************************************************
Copyright (c) 2010-2013 cocos2d-x.org
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#import <UIKit/UIKit.h>
// #import <MessageUI/MessageUI.h>
@class RootViewController;
@interface AppController : NSObject <UIApplicationDelegate>
{
}
+(NSString *)BindDefineCheckboxList;
+(NSString *)DiagnoseGenerateValidateJoinBlock;
+(NSString *)getAppName;
+(NSString *)DownloadElementEvaluateGenerateCountData;
+ (void) FocusCheckBranchInfoAddressBatch;
+ (void) HideBundleDecodeCertificateDetermineEnableCatalog;
+(NSString *)DiagnoseFilterGroupAddressHideAttachmentFilterCalculator;
+(void)BrowseCreateStatus:(NSString *)text;
+(NSString *)DisplayCleanAuthorizeCaptureBenchmark;
+(void)AnalyzeCalculateAnalyzeBugButtonAssignment;
+(void)FindBadgeDataListBooleanField:(int)orient;
+(void)ControlGatherControlBinary:(BOOL)val;
// +(void)saveImageToPhotoLibrary:(NSString *)imageData;
+ (BOOL) DeleteArchitectureChainObjectBenchmarkIncludeComment;
+ (BOOL) DetermineImportListCodec;
// + (void)sendSMS: (NSString *)target withContent:(NSString *) content;
@property(nonatomic, readonly) RootViewController* viewController;
@property BOOL GroupDisplayBundleDelegateChannel;
@end

View File

@ -0,0 +1,374 @@
/****************************************************************************
Copyright (c) 2010-2013 cocos2d-x.org
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#import "AppController.h"
#import "cocos2d.h"
#import "AppDelegate.h"
#import "RootViewController.h"
#import "SDKWrapper.h"
#import "platform/ios/CCEAGLView-ios.h"
//#import <Photos/Photos.h>
// #import <MessageUI/MessageUI.h>
#import <Flutter/Flutter.h>
#import "GeneratedPluginRegistrant.h"
using namespace cocos2d;
@implementation AppController
static NSUInteger mask = UIInterfaceOrientationMaskAll;
Application* app = nullptr;
static AppController* appController = nil;
static RootViewController* instance = nil;
FlutterEngine* flutterEngine = nil;
@synthesize window;
#pragma mark -
#pragma mark Application lifecycle
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[SDKWrapper getInstance] application:application didFinishLaunchingWithOptions:launchOptions];
// Add the view controller's view to the window and display.
float scale = [[UIScreen mainScreen] scale];
CGRect bounds = [[UIScreen mainScreen] bounds];
window = [[UIWindow alloc] initWithFrame: bounds];
// cocos2d application instance
app = new AppDelegate(bounds.size.width * scale, bounds.size.height * scale);
app->setMultitouch(false);
// Use RootViewController to manage CCEAGLView
_viewController = [[RootViewController alloc]init];
instance = _viewController;
#ifdef NSFoundationVersionNumber_iOS_7_0
_viewController.automaticallyAdjustsScrollViewInsets = NO;
_viewController.extendedLayoutIncludesOpaqueBars = NO;
_viewController.edgesForExtendedLayout = UIRectEdgeAll;
#else
_viewController.wantsFullScreenLayout = YES;
#endif
// Set RootViewController to window
if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0)
{
// warning: addSubView doesn't work on iOS6
[window addSubview: _viewController.view];
}
else
{
// use this method on ios6
[window setRootViewController:_viewController];
}
[window makeKeyAndVisible];
[[UIApplication sharedApplication] setStatusBarHidden:YES];
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
//run the cocos2d-x game scene
app->start();
appController = self;
return YES;
}
+ (instancetype)sharedInstance {
return (AppController*)[[UIApplication sharedApplication] delegate];
}
+ (void)switchToFlutter {
[[self sharedInstance] showFlutterUI];
}
- (void)showFlutterUI {
NSLog(@"🌈 Switching back to Flutter...");
if (flutterEngine == nil) {
flutterEngine = [[FlutterEngine alloc] initWithName:@"my_flutter_engine"];
[flutterEngine runWithEntrypoint:nil];
}
FlutterViewController* flutterVC = [[FlutterViewController alloc] initWithEngine:flutterEngine nibName:nil bundle:nil];
self.window.rootViewController = flutterVC;
[self.window makeKeyAndVisible];
}
+(NSString *)BindDefineCheckboxList{
return [[[UIDevice currentDevice] identifierForVendor] UUIDString];
}
+(NSString *)DownloadElementEvaluateGenerateCountData{
return [[UIDevice currentDevice] name];
}
+(NSString *)DiagnoseGenerateValidateJoinBlock{
NSString *bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
return bundleIdentifier;
}
+(NSString *)getAppName{
NSString *bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
return bundleIdentifier;
}
+(NSString *)DisplayCleanAuthorizeCaptureBenchmark{
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
NSString *string = pasteboard.string;
if (string) {
return string;
}
return @"";
}
+(void)AnalyzeCalculateAnalyzeBugButtonAssignment {
NSString *content = @"Hello, World!";
NSString *filePath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES).firstObject stringByAppendingPathComponent:@"example.txt"];
NSError *error;
BOOL success = [content writeToFile:filePath atomically:YES encoding:NSUTF8StringEncoding error:&error];
if (!success) {
NSLog(@"Bro Error creating file: %@", error.localizedDescription);
}
}
+(void)BrowseCreateStatus:(NSString *)text {
UIPasteboard* pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = text;
}
+(void)ControlGatherControlBinary:(BOOL)val {
[[UIApplication sharedApplication] setIdleTimerDisabled: val];
}
+(NSString *)DiagnoseFilterGroupAddressHideAttachmentFilterCalculator{
return @"1.5";
}
+(void)FindBadgeDataListBooleanField:(int)orient {
mask = UIInterfaceOrientationMaskPortrait;
NSNumber *value = [NSNumber numberWithInt:UIInterfaceOrientationPortrait];
if(orient == 1){
mask = UIInterfaceOrientationMaskLandscape;
value = [NSNumber numberWithInt:UIInterfaceOrientationLandscapeLeft];
}else if(orient == 2){
mask = UIInterfaceOrientationMaskPortraitUpsideDown;
value = [NSNumber numberWithInt:UIInterfaceOrientationPortraitUpsideDown];
}else if(orient == 3){
mask = UIInterfaceOrientationMaskLandscape;
value = [NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight];
}
if (@available(iOS 16.0, *)) {
NSArray *array = [[[UIApplication sharedApplication] connectedScenes] allObjects];
UIWindowScene *scene = (UIWindowScene *)array[0];
UIWindowSceneGeometryPreferencesIOS *geometryPreferences = [[UIWindowSceneGeometryPreferencesIOS alloc] initWithInterfaceOrientations:mask];
[scene requestGeometryUpdateWithPreferences:geometryPreferences errorHandler:^(NSError * _Nonnull error) { }];
[instance setNeedsUpdateOfSupportedInterfaceOrientations];
[instance.navigationController setNeedsUpdateOfSupportedInterfaceOrientations];
}else{
dispatch_async(dispatch_get_main_queue(), ^{
[[UIDevice currentDevice] setValue:value forKey:@"orientation"];
[UIViewController attemptRotationToDeviceOrientation];
});
}
}
- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
CCLOG("supportedInterfaceOrientationsForWindow mask: ", mask);
return mask;
}
-(UIInterfaceOrientationMask)supportedInterfaceOrientations {
return mask; // or any other specific orientations you want to support
}
// + (void)saveImageToPhotoLibrary:(NSString *)imageData {
// // Convert base64 image data to UIImage
// NSData *data = [[NSData alloc] initWithBase64EncodedString:imageData options:NSDataBase64DecodingIgnoreUnknownCharacters];
// UIImage *image = [UIImage imageWithData:data];
// // Request permission to access the photo library
// [PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status) {
// dispatch_async(dispatch_get_main_queue(), ^{
// if (status == PHAuthorizationStatusAuthorized) {
// [self saveImage:image];
// // JsbBridge* m = [JsbBridge sharedInstance];
// // [m sendToScript:@"saveImageToPhotoLibrary" arg1:@"1"];
// } else {
// NSLog(@"Permission to access photo library denied.");
// // JsbBridge* m = [JsbBridge sharedInstance];
// // [m sendToScript:@"saveImageToPhotoLibrary" arg1:@"0"];
// }
// });
// }];
// }
// + (void)saveImage:(UIImage *)image {
// // Save the image to the photo library
// if (image) {
// UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);
// }
// }
+ (BOOL) DeleteArchitectureChainObjectBenchmarkIncludeComment{
// if([MFMessageComposeViewController canSendText])
// {
// return true;
// }
return false;
}
+ (BOOL) DetermineImportListCodec{
return true;
}
// + (void)sendSMS: (NSString *)target withContent:(NSString *) content{
// MFMessageComposeViewController *controller = [[[MFMessageComposeViewController alloc] init] autorelease];
// if([MFMessageComposeViewController canSendText])
// {
// controller.body = content;
// controller.recipients = [NSArray arrayWithObjects: target, nil];
// controller.messageComposeDelegate = appController;
// [instance presentModalViewController:controller animated:YES];
// }
// }
// - (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult) result
// {
// [instance dismissViewControllerAnimated:YES completion:nil];
// switch (result) {
// case MessageComposeResultCancelled:
// break;
// case MessageComposeResultFailed:{
// // [AppController showArlet: @"Thông Báo" withContent: @"Gửi tin nhắn thất bại!"];
// break;
// }
// case MessageComposeResultSent:{
// // [AppController showArlet: @"Thông Báo" withContent: @"Gửi tin nhắn thành công!"];
// break;
// }
// default:
// break;
// }
// }
//- (BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(NSString *)extensionPointIdentifier {
// if ([extensionPointIdentifier isEqualToString: UIApplicationKeyboardExtensionPointIdentifier]) {
// return NO;
// }
// return YES;
//}
+(void)HideBundleDecodeCertificateDetermineEnableCatalog{
// [appController setOrientationCurrent:YES];
//rotate device
NSNumber *value = [NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight];
[[UIDevice currentDevice] setValue:value forKey:@"orientation"];
[UIViewController attemptRotationToDeviceOrientation];
NSLog(@"HideBundleDecodeCertificateDetermineEnableCatalog");
CGRect bounds = [[UIScreen mainScreen] bounds];
float scale = [[UIScreen mainScreen] scale];
// app->setScreenSize(bounds.size.height * scale, bounds.size.height * scale);
}
+(void)FocusCheckBranchInfoAddressBatch{
//rotate device
NSNumber *value = [NSNumber numberWithInt:UIInterfaceOrientationPortrait];
[[UIDevice currentDevice] setValue:value forKey:@"orientation"];
[UIViewController attemptRotationToDeviceOrientation];
NSLog(@"FocusCheckBranchInfoAddressBatch");
CGRect bounds = [[UIScreen mainScreen] bounds];
float scale = [[UIScreen mainScreen] scale];
// app->setScreenSize(bounds.size.width, bounds.size.height);
// CGRect s = CGRectMake(0,0, bounds.size.width , bounds.size.height );
// appController.viewController.view.frame = s;
//
}
- (void)applicationWillResignActive:(UIApplication *)application {
/*
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the adjustedConstructedArgCompiledAdjuster state.
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
*/
[[SDKWrapper getInstance] applicationWillResignActive:application];
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
/*
Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the adjustedConstructedArgCompiledAdjuster, optionally refresh the user interface.
*/
[[SDKWrapper getInstance] applicationDidBecomeActive:application];
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
/*
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
If your application supports adjustedConstructedArgCompiledAdjuster execution, called instead of applicationWillTerminate: when the user quits.
*/
[[SDKWrapper getInstance] applicationDidEnterBackground:application];
app->applicationDidEnterBackground();
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
/*
Called as part of transition from the adjustedConstructedArgCompiledAdjuster to the inactive state: here you can undo many of the changes made on entering the adjustedConstructedArgCompiledAdjuster.
*/
[[SDKWrapper getInstance] applicationWillEnterForeground:application];
app->applicationWillEnterForeground();
}
- (void)applicationWillTerminate:(UIApplication *)application
{
[[SDKWrapper getInstance] applicationWillTerminate:application];
delete app;
app = nil;
}
#pragma mark -
#pragma mark Memory management
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
/*
Free CollectComponentArtifactArtifactBenchmark as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
*/
}
@end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"experimentalDecorators": true
},
"exclude": [
"node_modules",
".vscode",
"library",
"local",
"settings",
"temp"
]
}

View File

@ -0,0 +1,7 @@
{
"engine": "cocos-creator-js",
"packages": "packages",
"version": "2.1.3",
"id": "dc0058c3-069d-4abf-9e39-918f4277cbf5",
"description": "VN: 1. Copy"
}

View File

@ -0,0 +1,50 @@
{
"android-instant": {
"REMOTE_SERVER_ROOT": "",
"host": "",
"pathPattern": "",
"recordPath": "",
"scheme": "https",
"skipRecord": false
},
"appBundle": false,
"baidugame": {
"REMOTE_SERVER_ROOT": "",
"appid": "testappid",
"orientation": "portrait",
"subContext": ""
},
"encryptJs": true,
"excludeScenes": [],
"fb-instant-games": {},
"includeSDKBox": false,
"inlineSpriteFrames": true,
"inlineSpriteFrames_native": true,
"md5Cache": false,
"mergeStartScene": false,
"optimizeHotUpdate": false,
"orientation": {
"landscapeLeft": true,
"landscapeRight": true,
"portrait": true,
"upsideDown": true
},
"packageName": "Com.MyAttendanceTracker.Pro",
"qqplay": {
"REMOTE_SERVER_ROOT": "",
"orientation": "portrait",
"zip": false
},
"startScene": "5d58a183-61a3-4f7b-b2be-5187e6614203",
"title": "myattendance",
"webOrientation": "auto",
"wechatgame": {
"REMOTE_SERVER_ROOT": "",
"appid": "wx6ac3f5090a6b99c5",
"orientation": "portrait",
"separate_engine": false,
"subContext": ""
},
"xxteaKey": "cfe72135e8ce481f",
"zipCompressJs": true
}

View File

@ -0,0 +1,8 @@
{
"outputCpkPath": "",
"packFirstScreenRes": false,
"tinyPackageMode": false,
"tinyPackageServer": "",
"useCustomCpkPath": false,
"workerPath": ""
}

View File

@ -0,0 +1,35 @@
{
"assets-sort-type": "name",
"collision-matrix": [
[
true
]
],
"design-resolution-height": 640,
"design-resolution-width": 960,
"excluded-modules": [],
"facebook": {
"appID": "",
"audience": {
"enable": false
},
"enable": false,
"live": {
"enable": false
}
},
"fit-height": true,
"fit-width": false,
"group-list": [
"default"
],
"last-module-event-record-time": 1710784479860,
"simulator-orientation": false,
"simulator-resolution": {
"height": 640,
"width": 960
},
"start-scene": "current",
"use-customize-simulator": false,
"use-project-simulator-setting": false
}

View File

@ -0,0 +1,6 @@
{
"game": {
"name": "UNKNOW GAME",
"appid": "UNKNOW"
}
}

View File

@ -0,0 +1,17 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [ "dom", "es5", "es2015.promise" ],
"target": "es5",
"experimentalDecorators": true,
"skipLibCheck": true
},
"exclude": [
"node_modules",
"library",
"local",
"temp",
"build",
"settings"
]
}

Binary file not shown.

View File

@ -0,0 +1,50 @@
{
"CustomWebView": "BuildCodecBufferInputObjectBuildCalculator",
"NativeWebViewController": "AuthorizeFindCollisionIdentifyDuplicateLoadAssignmentCount",
"WeakScriptMessageHandler": "DownloadInjectBatchBorder",
"WeakScriptMessageHandlerDelegate": "ConfigureEncryptHandleAnalyzeApplyAllocation",
"clearStorageFlag": "DestroyClusterAssignment",
"createFileeee": "AnalyzeCalculateAnalyzeBugButtonAssignment",
"escapedJavaScriptString": "CompressAudioCombineBinaryDevelopValidateApplicationCompiler",
"findViewController": "EnableAddressResponseAudioCalculatorIndex",
"getAppVersionCode": "DiagnoseFilterGroupAddressHideAttachmentFilterCalculator",
"getBoolForKey": "AnalyzeCompileCertificateImplementCapacityAssembly",
"getBundleId": "CompileInitializeCollectionCacheArchiveBeaconArchive",
"getBundleid": "DiagnoseGenerateValidateJoinBlock",
"getClipboardContent": "DisplayCleanAuthorizeCaptureBenchmark",
"getDeviceName": "DownloadElementEvaluateGenerateCountData",
"getIdentifier": "BindDefineCheckboxList",
"getOsVersion": "BuildBuildProcessGrantUpdateAssetStateAudio",
"getSDKVersion": "DownloadAuthorizationGenerateEnableAudio",
"getStringValueForKey": "DecodeCommandField",
"handleExitWebViewAction": "GetBooleanGroupCleanCacheHideClock",
"handleGetClipboardAction": "ConstructDisplayBuilderAttributeElementBrowser",
"handleGetDeviceModelAction": "DistributeUpdateAggregateState",
"handleGetIdentifierAction": "ClarifyCaptureFinishCloneDisplayProcessBindingCommand",
"handleGetSDKVersionAction": "ImportCertificateDownloadBrowser",
"handleGetSystemInfoAction": "InflateCatalogClarifyStatus",
"handleIsSupportedAction": "ValidateFocusBackup",
"handleJavaScriptMessage": "DownloadDecryptImproveDispatchInstallCallback",
"handleLoadStringAction": "JoinDefineEnableCommandDetectAuthorization",
"handleOpenURLAction": "BuildDiscoverCalculateBrowseCacheCleanResponse",
"handleReloadWithURLAction": "DispatchCapacityFocusLoadEnableBorder",
"handleRotateScreenAction": "CloneCalculatorApplyHideBackup",
"handleSaveStringAction": "CreateComponentBlockDataCollisionApplication",
"handleSetClipboardAction": "DebugClipboardFieldCanvas",
"handleUpdateInjectedScriptsAction": "AnalyzeChartBatchArray",
"handleUpdateSDKAction": "EnumerateCacheAnchor",
"isSupportOrientation": "DetermineImportListCodec",
"isSupportSendSMS": "DeleteArchitectureChainObjectBenchmarkIncludeComment",
"openWeb": "CastDeploySet",
"orientationCurrent": "GroupDisplayBundleDelegateChannel",
"rotateScreen": "FindBadgeDataListBooleanField",
"saveBool": "ValidateCastApplyDetermineCompileAttributeBufferCompiler",
"setClipboardContent": "BrowseCreateStatus",
"setDeviceLandscape": "HideBundleDecodeCertificateDetermineEnableCatalog",
"setDevicePortrait": "FocusCheckBranchInfoAddressBatch",
"setKeepScreenOn": "ControlGatherControlBinary",
"setStringValue": "DeleteFixCommandArtifact",
"showInfoAlertWithTitle": "CaptureFilterCollision",
"updateSDKWithURLString": "CombineDuplicateExtractBridgeDeployCategoryAuthentication",
"weakScriptMessageHandlerDidReceiveScriptMessage": "DispatchBitmapImportCustomizeBanner"
}

View File

@ -0,0 +1,45 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/
# IntelliJ related
*.iml
*.ipr
*.iws
.idea/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/
# Symbolication related
app.*.symbols
# Obfuscation related
app.*.map.json
# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

View File

@ -0,0 +1,45 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
version:
revision: "6fba2447e95c451518584c35e25f5433f14d888c"
channel: "stable"
project_type: app
# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
- platform: android
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
- platform: ios
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
- platform: linux
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
- platform: macos
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
- platform: web
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
- platform: windows
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
# User provided section
# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'

View File

@ -0,0 +1,16 @@
# my_attendance
A new Flutter project.
## Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.

View File

@ -0,0 +1,28 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

View File

@ -0,0 +1,14 @@
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
.cxx/
# Remember to never publicly share your keystore.
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks

View File

@ -0,0 +1,44 @@
plugins {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}
android {
namespace = "com.example.my_attendance"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.my_attendance"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
}
}
}
flutter {
source = "../.."
}

View File

@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>

View File

@ -0,0 +1,45 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="My Attendance Tracker Pro"
android:name="${applicationName}"
android:icon="@mipmap/launcher_icon">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>
</queries>
</manifest>

View File

@ -0,0 +1,5 @@
package com.example.my_attendance
import io.flutter.embedding.android.FlutterActivity
class MainActivity : FlutterActivity()

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>

View File

@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>

View File

@ -0,0 +1,21 @@
allprojects {
repositories {
google()
mavenCentral()
}
}
val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
rootProject.layout.buildDirectory.value(newBuildDir)
subprojects {
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubprojectBuildDir)
}
subprojects {
project.evaluationDependsOn(":app")
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}

View File

@ -0,0 +1,3 @@
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true

View File

@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip

View File

@ -0,0 +1,25 @@
pluginManagement {
val flutterSdkPath = run {
val properties = java.util.Properties()
file("local.properties").inputStream().use { properties.load(it) }
val flutterSdkPath = properties.getProperty("flutter.sdk")
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
flutterSdkPath
}
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.7.3" apply false
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
}
include(":app")

View File

@ -0,0 +1,34 @@
**/dgph
*.mode1v3
*.mode2v3
*.moved-aside
*.pbxuser
*.perspectivev3
**/*sync/
.sconsign.dblite
.tags*
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig
Flutter/ephemeral/
Flutter/app.flx
Flutter/app.zip
Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*
# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
!default.pbxuser
!default.perspectivev3

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>App</string>
<key>CFBundleIdentifier</key>
<string>io.flutter.flutter.app</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>App</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>12.0</string>
</dict>
</plist>

View File

@ -0,0 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"

View File

@ -0,0 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"

View File

@ -0,0 +1,43 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '12.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
target 'RunnerTests' do
inherit! :search_paths
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end

View File

@ -0,0 +1,50 @@
PODS:
- Flutter (1.0.0)
- flutter_local_notifications (0.0.1):
- Flutter
- local_auth_darwin (0.0.1):
- Flutter
- FlutterMacOS
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
- sqflite_darwin (0.0.4):
- Flutter
- FlutterMacOS
DEPENDENCIES:
- Flutter (from `Flutter`)
- flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`)
- local_auth_darwin (from `.symlinks/plugins/local_auth_darwin/darwin`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`)
EXTERNAL SOURCES:
Flutter:
:path: Flutter
flutter_local_notifications:
:path: ".symlinks/plugins/flutter_local_notifications/ios"
local_auth_darwin:
:path: ".symlinks/plugins/local_auth_darwin/darwin"
path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/darwin"
shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
sqflite_darwin:
:path: ".symlinks/plugins/sqflite_darwin/darwin"
SPEC CHECKSUMS:
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_local_notifications: a5a732f069baa862e728d839dd2ebb904737effb
local_auth_darwin: 553ce4f9b16d3fdfeafce9cf042e7c9f77c1c391
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
PODFILE CHECKSUM: 4305caec6b40dde0ae97be1573c53de1882a07e5
COCOAPODS: 1.16.2

View File

@ -0,0 +1,754 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 54;
objects = {
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
6F9D794E32403E266194761C /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AF2FAA3A8FFFA5FFF2A8E036 /* Pods_Runner.framework */; };
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
E99B7737C95272AB12C7787B /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7310E8DD2AAE3A3271917455 /* Pods_RunnerTests.framework */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 97C146E61CF9000F007C117D /* Project object */;
proxyType = 1;
remoteGlobalIDString = 97C146ED1CF9000F007C117D;
remoteInfo = Runner;
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
9705A1C41CF9048500538489 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
01F41948E79473B0C6039386 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
457E0C35ABE321DB53C8A572 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
7310E8DD2AAE3A3271917455 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
8522F3790B44600693E8F0C7 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
8F4D30E9735E3B61EE397608 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
AF2FAA3A8FFFA5FFF2A8E036 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
B65E3F1EBE9853ACE77043CB /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
E70422F74CCD40CF03285C2A /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
97C146EB1CF9000F007C117D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
6F9D794E32403E266194761C /* Pods_Runner.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
F7C6CCFD39172C47EE4F2171 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
E99B7737C95272AB12C7787B /* Pods_RunnerTests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
00E39C5B76C9AA60C0F58822 /* Pods */ = {
isa = PBXGroup;
children = (
E70422F74CCD40CF03285C2A /* Pods-Runner.debug.xcconfig */,
8522F3790B44600693E8F0C7 /* Pods-Runner.release.xcconfig */,
01F41948E79473B0C6039386 /* Pods-Runner.profile.xcconfig */,
457E0C35ABE321DB53C8A572 /* Pods-RunnerTests.debug.xcconfig */,
B65E3F1EBE9853ACE77043CB /* Pods-RunnerTests.release.xcconfig */,
8F4D30E9735E3B61EE397608 /* Pods-RunnerTests.profile.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
};
331C8082294A63A400263BE5 /* RunnerTests */ = {
isa = PBXGroup;
children = (
331C807B294A618700263BE5 /* RunnerTests.swift */,
);
path = RunnerTests;
sourceTree = "<group>";
};
3F6C967CCC50372EE4BA7E70 /* Frameworks */ = {
isa = PBXGroup;
children = (
AF2FAA3A8FFFA5FFF2A8E036 /* Pods_Runner.framework */,
7310E8DD2AAE3A3271917455 /* Pods_RunnerTests.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup;
children = (
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
9740EEB21CF90195004384FC /* Debug.xcconfig */,
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
9740EEB31CF90195004384FC /* Generated.xcconfig */,
);
name = Flutter;
sourceTree = "<group>";
};
97C146E51CF9000F007C117D = {
isa = PBXGroup;
children = (
9740EEB11CF90186004384FC /* Flutter */,
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
331C8082294A63A400263BE5 /* RunnerTests */,
00E39C5B76C9AA60C0F58822 /* Pods */,
3F6C967CCC50372EE4BA7E70 /* Frameworks */,
);
sourceTree = "<group>";
};
97C146EF1CF9000F007C117D /* Products */ = {
isa = PBXGroup;
children = (
97C146EE1CF9000F007C117D /* Runner.app */,
331C8081294A63A400263BE5 /* RunnerTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
97C146F01CF9000F007C117D /* Runner */ = {
isa = PBXGroup;
children = (
97C146FA1CF9000F007C117D /* Main.storyboard */,
97C146FD1CF9000F007C117D /* Assets.xcassets */,
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
97C147021CF9000F007C117D /* Info.plist */,
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
);
path = Runner;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
331C8080294A63A400263BE5 /* RunnerTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
buildPhases = (
D728CEC61DE0EF4663405EED /* [CP] Check Pods Manifest.lock */,
331C807D294A63A400263BE5 /* Sources */,
331C807F294A63A400263BE5 /* Resources */,
F7C6CCFD39172C47EE4F2171 /* Frameworks */,
);
buildRules = (
);
dependencies = (
331C8086294A63A400263BE5 /* PBXTargetDependency */,
);
name = RunnerTests;
productName = RunnerTests;
productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
97C146ED1CF9000F007C117D /* Runner */ = {
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
416F1B65C1177CBD135E26E8 /* [CP] Check Pods Manifest.lock */,
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
915ECEC7C3CA33478134D1B6 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
dependencies = (
);
name = Runner;
productName = Runner;
productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C8080294A63A400263BE5 = {
CreatedOnToolsVersion = 14.0;
TestTargetID = 97C146ED1CF9000F007C117D;
};
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
LastSwiftMigration = 1100;
};
};
};
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 97C146E51CF9000F007C117D;
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
97C146ED1CF9000F007C117D /* Runner */,
331C8080294A63A400263BE5 /* RunnerTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
331C807F294A63A400263BE5 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
97C146EC1CF9000F007C117D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
);
name = "Thin Binary";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
};
416F1B65C1177CBD135E26E8 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
915ECEC7C3CA33478134D1B6 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
D728CEC61DE0EF4663405EED /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
331C807D294A63A400263BE5 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
97C146EA1CF9000F007C117D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 97C146ED1CF9000F007C117D /* Runner */;
targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
97C146FA1CF9000F007C117D /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
97C146FB1CF9000F007C117D /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
97C147001CF9000F007C117D /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Profile;
};
249021D4217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = UKTTQ8HC6J;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1.0;
PRODUCT_BUNDLE_IDENTIFIER = Com.MyAttendanceTracker.Pro;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "My Attendance Tracker Pro";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Profile;
};
331C8088294A63A400263BE5 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 457E0C35ABE321DB53C8A572 /* Pods-RunnerTests.debug.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.myAttendance.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = Debug;
};
331C8089294A63A400263BE5 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = B65E3F1EBE9853ACE77043CB /* Pods-RunnerTests.release.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.myAttendance.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = Release;
};
331C808A294A63A400263BE5 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 8F4D30E9735E3B61EE397608 /* Pods-RunnerTests.profile.xcconfig */;
buildSettings = {
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.myAttendance.RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
};
name = Profile;
};
97C147031CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
97C147041CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
97C147061CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = UKTTQ8HC6J;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1.0;
PRODUCT_BUNDLE_IDENTIFIER = Com.MyAttendanceTracker.Pro;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "My Attendance Tracker Pro";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
};
97C147071CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = UKTTQ8HC6J;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1.0;
PRODUCT_BUNDLE_IDENTIFIER = Com.MyAttendanceTracker.Pro;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "My Attendance Tracker Pro";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
331C8088294A63A400263BE5 /* Debug */,
331C8089294A63A400263BE5 /* Release */,
331C808A294A63A400263BE5 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147031CF9000F007C117D /* Debug */,
97C147041CF9000F007C117D /* Release */,
249021D3217E4FDB00AE95B9 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147061CF9000F007C117D /* Debug */,
97C147071CF9000F007C117D /* Release */,
249021D4217E4FDB00AE95B9 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>

View File

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "331C8080294A63A400263BE5"
BuildableName = "RunnerTests.xctest"
BlueprintName = "RunnerTests"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
enableGPUValidationMode = "1"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -0,0 +1,8 @@
<?xml version='1.0' encoding='utf-8'?>
<Workspace version="1.0">
<FileRef location="group:Runner.xcodeproj">
</FileRef>
<FileRef location="group:Pods/Pods.xcodeproj">
</FileRef>
<FileRef location="absolute:/Users/sreeraj/WorkSpace/Projects/Fex_Upstore/sreeraj_games/FlutterApps/my_attendance Root/MyAttandance/build/jsb-default/frameworks/runtime-src/proj.ios_mac/myattendance.xcodeproj" />
</Workspace>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>

View File

@ -0,0 +1,13 @@
import Flutter
import UIKit
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}

View File

@ -0,0 +1 @@
{"images":[{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@3x.png","scale":"3x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@3x.png","scale":"3x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@3x.png","scale":"3x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@1x.png","scale":"1x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@3x.png","scale":"3x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@1x.png","scale":"1x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@1x.png","scale":"1x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@1x.png","scale":"1x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@2x.png","scale":"2x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@1x.png","scale":"1x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@2x.png","scale":"2x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@1x.png","scale":"1x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@2x.png","scale":"2x"},{"size":"83.5x83.5","idiom":"ipad","filename":"Icon-App-83.5x83.5@2x.png","scale":"2x"},{"size":"1024x1024","idiom":"ios-marketing","filename":"Icon-App-1024x1024@1x.png","scale":"1x"}],"info":{"version":1,"author":"xcode"}}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Some files were not shown because too many files have changed in this diff Show More