This file contains hidden or 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
import UIKit | |
enum VersionError: Error { | |
case invalidResponse, invalidBundleInfo | |
} | |
class VersionCheck: NSObject { | |
private override init() {} |
This file contains hidden or 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
import UIKit | |
class ErrorHandler { | |
private init(){} | |
static var view: NetworkViewProtocol? | |
static func handleError(httpSatusCode: Int?, error: Error?){ |
This file contains hidden or 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
public class SnStickyHeaderItemDecoration extends RecyclerView.ItemDecoration { | |
private SnStickyListener mListener; | |
private Integer mHeaderHeight; | |
public SnStickyHeaderItemDecoration(SnStickyListener listener) { | |
this.mListener = listener; | |
} |
This file contains hidden or 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
public class SSMultiTextListener { | |
private TextWatcherWithInstance callback; | |
public SSMultiTextListener setCallback(TextWatcherWithInstance callback) { | |
this.callback = callback; | |
return this; | |
} |
This file contains hidden or 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
public class FacebookAccountKitService { | |
public static FacebookAccountKitService shared = new FacebookAccountKitService(); | |
// Phone Login.................................................................... | |
public void phoneLogin(Context context,final int PHONE_LOGIN_CODE){ | |
final Intent phoneAuthIntent = new Intent(context, AccountKitActivity.class); | |
AccountKitConfiguration.AccountKitConfigurationBuilder configurationBuilder = new AccountKitConfiguration.AccountKitConfigurationBuilder( | |
LoginType.PHONE, AccountKitActivity.ResponseType.TOKEN); |
This file contains hidden or 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
import UIKit | |
class ViewController: UIViewController { | |
@IBOutlet weak var imageView: UIImageView! | |
var imagePicker: UIImagePickerController! | |
enum ImageSource { | |
case photoLibrary |
This file contains hidden or 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
<?php | |
// Configuration................................. | |
$destination_folder = "files/"; // Folder name to store images. | |
$file_key = 'images'; | |
$max_image_size = 7000; | |
$image_extensions_allowed = ['jpeg','jpg','png']; | |
$response = array(); |
This file contains hidden or 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
import UIKit | |
import UserNotifications | |
import Firebase | |
import FirebaseInstanceID | |
import FirebaseMessaging | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { |
This file contains hidden or 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
import UIKit | |
import Photos | |
import Contacts | |
import AVFoundation | |
enum Permission { | |
case cameraUsage | |
case contactUsage | |
case photoLibraryUsage |
This file contains hidden or 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
buildTypes { | |
debug { | |
minifyEnabled true | |
shrinkResources true | |
useProguard true | |
debuggable true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |