Skip to content

Instantly share code, notes, and snippets.

View nooralibutt's full-sized avatar
💼
Looking For a Job

Noor Ali nooralibutt

💼
Looking For a Job
View GitHub Profile
@nooralibutt
nooralibutt / RequestService.cs
Created November 17, 2015 09:07
Unity Get Post Methods of Getting/Posting data to server written in C#
using UnityEngine;
using System.Collections;
public class RequestService : MonoBehaviour
{
public string GetUrl = "http://hmkcode.appspot.com/rest/controller/get.json";
public string PostUrl = "http://androidexample.com/media/webservice/httppost.php";
public string textRetrieved;
@nooralibutt
nooralibutt / DragDropItem.cs
Created November 17, 2015 10:55
Free Drag Drop Item Script for uGUI Unity C#
// Canvase should be Screen Space - Camera
// Attach a Event Trigger Script to image you want to Drag Drop
// Add Begin Drag and Drap Event Listener
// Attach this script to that image
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using UnityEngine.EventSystems;
@nooralibutt
nooralibutt / Readme.md
Created December 23, 2020 06:23
Integration guide of local notifications in Flutter

Integrating Notifcation Manager

1. Integrate plugin

Go to pubspec.yaml and add dependency from here

2. Add icon

app_icon needs to be a added as a drawable resource to the Android head project. Path should be as follows

@nooralibutt
nooralibutt / main.dart
Created December 28, 2020 08:11
How to enter hackbot data
void main() {
print(emailSeasonData());
}
Season emailSeasonData() {
List<Level> levelList = [];
List<LevelCard> levelCardList = [];
// ----------------------CODE BEGIN HERE---------------------- //
@nooralibutt
nooralibutt / MySingletonClass.cs
Last active February 1, 2021 11:59
Singleton Class Template Unity C#
using UnityEngine;
using System.Collections;
public class MySingletonClass : MonoBehaviour {
/// Static instance of Singleton Class which allows it to be accessed by any other script
private static MySingletonClass _instance = null;
/// <summary>
/// Gets the instance of the Singleton Class
@nooralibutt
nooralibutt / Readme.md
Last active March 1, 2021 13:18
Integration of ads and Firebase

Integrating of Firebase and Admob

Use the following link for detailed guide.

1. Firebase project

  1. Create firebase project and enable analytics

  2. Create Android Project with your package name and nickname like (hackbot android). Download google-services.json file and Move it into the android/app director

    • Optional Step: For sha1 creation: Use this tool keytool -list -v -alias key -keystore /Users/nooralibutt/development/FlutterWorkspace/hackbot/key123456.jks
@nooralibutt
nooralibutt / AdController.cs
Last active March 21, 2021 20:19
Unity Ad Controller for multiple Ad Networks
// Unity Ad Controller for multiple Ad Networks
// Copyrights SKill Knight Studios 2015
// Author: Noor Ali Butt
// v1.0
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using ChartboostSDK;
using GoogleMobileAds.Api;
@nooralibutt
nooralibutt / Readme.md
Last active October 25, 2022 09:35
Integration of more screen
@nooralibutt
nooralibutt / Rating Manager.md
Last active February 15, 2023 10:10
Manager ratings with this gist

How to integrate rating manager

1. Installing plugins

2. Add rating_manager.dart class

3. Call this in your welcome or splash screen RatingManager.incrementAppLaunches();

@nooralibutt
nooralibutt / ad_manager.dart
Last active February 15, 2023 11:20
Call AdSetting.fetch(); to initialize
import 'dart:async';
import 'dart:io';
import 'package:app_tracking_transparency/app_tracking_transparency.dart';
import 'package:easy_ads_flutter/easy_ads_flutter.dart';
import 'package:fake_call/ad_settings/ad_setting.dart';
import 'package:fake_call/utilities/ad_id_manager.dart';
import 'package:flutter/material.dart';
import 'package:unity_ads_plugin/unity_ads_plugin.dart';