Skip to content

Instantly share code, notes, and snippets.

View maddapper's full-sized avatar

Dean Chang maddapper

View GitHub Profile
@maddapper
maddapper / [CP] Fix Pod Resources
Created October 14, 2022 23:40
Instead of removing nib references in the script, we use valid nib files paths.
TARGET_NAME=${PROJECT_NAME};
PODS_RESOURCES="${PODS_ROOT}/Target Support Files/Pods-${TARGET_NAME}/Pods-${TARGET_NAME}-resources.sh";
if [ ! -f "${PODS_RESOURCES}.bak" ];
then
cp "${PODS_RESOURCES}" "${PODS_RESOURCES}.bak";
fi
if [ -f "${PODS_RESOURCES}" ];
then
@maddapper
maddapper / [CP] Fix Pod Resources
Created September 12, 2022 16:38
Script to fix pod resources script when :static linkage is enabled
# Type a script or drag a script file from your workspace to insert its path.
TARGET_NAME=${PROJECT_NAME};
PODS_RESOURCES="${PODS_ROOT}/Target Support Files/Pods-${TARGET_NAME}/Pods-${TARGET_NAME}-resources.sh";
if [ ! -f "${PODS_RESOURCES}.bak" ];
then
cp "${PODS_RESOURCES}" "${PODS_RESOURCES}.bak";
fi
@maddapper
maddapper / ViewController.m
Created August 22, 2022 21:08
Ogury thumbnail sample (ObjC) view controller
//
// ViewController.m
// ThumbnailExample
//
// Copyright © 2020 Ogury Co. All rights reserved.
//
#import "ViewController.h"
#import "BlackListViewController.h"
#import <OguryChoiceManager/OguryChoiceManager.h>
//
// FreestarReactBridge.h
// FreestarPlatformReactNativePlugin
//
// Created by Lev Trubov on 6/25/20.
// Copyright © 2020 Freestar. All rights reserved.
//
#import <Foundation/Foundation.h>
@maddapper
maddapper / index.html
Last active June 1, 2020 21:27
Test webpage resource
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML5 Test Page</title>
</head>
<body>
<div id="ad_placement_sticky_header">
<div id="top" class="page" role="document">
@maddapper
maddapper / primus_mraid.js
Created January 3, 2020 19:13
Primus MRAID tag
// <script type="text/javascript">
(function () {
var SekindoClientDynamicConfig = function (config, prob)
{
this.MOBILE_MAX_WIDTH = 415;
this.config = config;
this.prob = prob;
var ref = this;
@maddapper
maddapper / creative.js
Created October 17, 2019 22:45
Universal Creative Template That Has Logging
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
@maddapper
maddapper / ObjCViewController.m
Created May 30, 2019 21:10
Objective-C view controller example of FSBanner usage.
//
// ObjCViewController.m
// FreestarBannerApp
//
// Created by Dean Chang on 5/30/19.
// Copyright © 2019 Freestar. All rights reserved.
//
#import "ObjCViewController.h"
#import <GoogleMobileAds/GoogleMobileAds.h>
@maddapper
maddapper / Podfile
Created May 15, 2019 06:25
Alpha pre-release pod config for FSAdSDK (0.4.0a)
target 'YourAppName' do
use_frameworks!
pod 'Google-Mobile-Ads-SDK', :git => 'https://github.com/maddapper/GMA-iOS-SDK.git', :tag => '7.41.0'
pod 'FSAdSDK/Banner', :git => 'https://github.com/freestarcapital/Freestar-Mobile-iOS-SDK.git', :tag => '0.4.0a-pre'
end