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
| # This file contains the fastlane.tools configuration | |
| # You can find the documentation at https://docs.fastlane.tools | |
| # | |
| # For a list of all available actions, check out | |
| # | |
| # https://docs.fastlane.tools/actions | |
| # | |
| # For a list of all available plugins, check out | |
| # | |
| # https://docs.fastlane.tools/plugins/available-plugins |
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
| lane :beta do | |
| gradle( | |
| task: "assemble", | |
| build_type: "Release", | |
| print_command: false, | |
| ) | |
| firebase_app_distribution( | |
| service_credentials_file: "firebase_credentials.json", | |
| app: "1:32166285519:android:4a6308fccb4095f0e7662a", |
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
| pipeline { | |
| agent { label 'master' } | |
| stages { | |
| stage ('TEST BUILD AND DEPLOYMENT') { | |
| steps | |
| { | |
| script | |
| { | |
| //get comments programmatically |
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 RxSwift | |
| import RxCocoa | |
| class ViewController: UIViewController { | |
| @IBOutlet weak var tblView: UITableView! | |
| let disposeBag = DisposeBag() | |
| let viewModel = ViewModel() | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| setUpViewBindings() |
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 RxSwift | |
| import RxCocoa | |
| class ViewModel { | |
| //1 | |
| let dataSource: BehaviorRelay<[ItemModel]> = BehaviorRelay(value: []) | |
| var error : Error? | |
| //2 | |
| let disposeBag = DisposeBag() | |
| public func callAPIFromViewModel(withUrlString : String) { | |
| //3 |
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 struct ItemModel: Codable { | |
| var userId: Int | |
| var id: Int | |
| var title: String | |
| var body: String | |
| } |
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 RxSwift | |
| class APIHandler{ | |
| //1 | |
| public func callAPIFromApiHandler(withUrlString : String) | |
| -> Observable<Data?> { | |
| //2 | |
| Observable<Data?>.create { observer in | |
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
| var disposeBag = Set<AnyCancellable>() //below gives you single elements | |
| let aCancelable = [1, 2, 3, 4, 5].publisher.sink(receiveCompletion: { | |
| (completion) in | |
| print(completion) }) | |
| { (value) in print(value) } | |
| aCancelable.store(in: &disposeBag) |
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 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:google_maps_flutter/google_maps_flutter.dart'; | |
| import 'package:geolocator/geolocator.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { |
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
| // | |
| //current location - noida 28.4970, 77.4325 | |
| //destination - 28.5118, 77.4124 | |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:google_maps_flutter/google_maps_flutter.dart'; | |
| import 'package:geolocator/geolocator.dart'; | |
| import 'package:google_maps_webservice/places.dart'; | |
| import 'package:flutter_google_places/flutter_google_places.dart'; | |
| import 'package:flutter/foundation.dart'; |
NewerOlder