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
BUILD_ROOT=_build/tdlib | |
BUILD_DIRECTORY=$(BUILD_ROOT)/rel | |
BUILD_ARTIFACT=$(BUILD_DIRECTORY)/bin/tdlib_json_cli | |
PRIV_DIR=priv | |
BIN_TARGET=$(PRIV_DIR)/tdlib-json-cli | |
JOBS=2 | |
VERBOSE=0 | |
TDLIB_SRC=priv/tdlib_v1.1.1.tar.gz |
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
/^09(5|6|7){1}[0-9]{7}$/.text("09550123456") | |
# This tests for MTN, Cell Z, and Airtel numbers |
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
... | |
dependencies { | |
compile 'com.facebook.android:account-kit-sdk:4.23.0' | |
} | |
... |
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
... | |
<uses-permission android:name="android.permission.INTERNET"/> | |
... | |
<meta-data android:name="com.facebook.accountkit.ApplicationName" android:value="@string/app_name" /> | |
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/FACEBOOK_APP_ID" /> | |
<meta-data android:name="com.facebook.accountkit.ClientToken" android:value="@string/ACCOUNT_KIT_CLIENT_TOKEN" /> | |
... | |
<activity android:name="com.facebook.accountkit.ui.AccountKitActivity" /> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<string name="app_name">Nativescript AccountKit</string> | |
<string name="title_activity_kimera">NativeScript AccountKit</string> | |
<string name="FACEBOOK_APP_ID">YOUR_APP_ID_HERE</string> | |
<string name="ACCOUNT_KIT_CLIENT_TOKEN">YOUR_TOKEN_HERE</string> | |
</resources> |
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
var activity = app.android.foregroundActivity || app.android.startActivity; | |
var APP_REQUEST_CODE = appSettings.getNumber("APP_REQUEST_CODE"); | |
activity.onActivityResult = function (requestCode, resultCode, data) { | |
if (requestCode === APP_REQUEST_CODE) { | |
var loginResult = data.getParcelableExtra(com.facebook.accountkit.AccountKitLoginResult.RESULT_KEY); | |
if (loginResult.getError() != null) { |
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
function createViewModel() { | |
var viewModel = new Observable(); | |
viewModel.phoneLogin = function () { | |
var phoneLoginType = com.facebook.accountkit.ui.LoginType.PHONE; | |
accountKitLogin(phoneLoginType) | |
} | |
viewModel.emailLogin = function () { | |
var emailLoginType = com.facebook.accountkit.ui.LoginType.EMAIL; |
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
function accountKitLogin(loginType) { | |
var accountKitConfig = com.facebook.accountkit.ui.AccountKitConfiguration; | |
var intent = new android.content.Intent(activity, accountKitActivity.class); | |
var configBuilder = new accountKitConfig.AccountKitConfigurationBuilder(loginType, accountKitActivity.ResponseType.CODE); | |
intent.putExtra( | |
com.facebook.accountkit.ui.AccountKitActivity.ACCOUNT_KIT_ACTIVITY_CONFIGURATION, | |
configBuilder.build() | |
) |
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
[run] | |
omit = | |
env/* | |
timetracker/* | |
*manage.py* | |
*urls.py* | |
*__init__.py* | |
*tests.py* | |
*apps.py* |
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
curl -X POST --data-urlencode 'payload={"channel": "#amari", "username": "webhookbot", "text": "'"$(prospector --strictness high)"'", "icon_emoji": ":ghost:"}' http://example.com |