This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private const val TRILIUN = 1000000000000000 | |
private const val MILIAR = 1000000000000 | |
private const val JUTA = 1000000000 | |
fun Long.toWords(): String { | |
return when (this) { | |
0L -> "" | |
1L -> "Satu" | |
2L -> "Dua" | |
3L -> "Tiga" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Signs a framework with the provided identity | |
code_sign() { | |
# Use the current code_sign_identitiy | |
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" | |
echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1" | |
/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" | |
} | |
# Set working directory to product’s embedded frameworks | |
cd "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CarrierChecker.m | |
// RagunanZoo | |
// | |
// Created by Nanang Rafsanjani on 8/26/15. | |
// Copyright (c) 2015 Onebit. All rights reserved. | |
// | |
#import "CarrierChecker.h" | |
#import <CoreTelephony/CTTelephonyNetworkInfo.h> |