###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| #!/usr/bin/env python | |
| import gzip | |
| import os | |
| import sys | |
| import re | |
| INPUT_DIR = "nginx-logs" | |
| lineformat = re.compile(r"""(?P<ipaddress>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) - - \[(?P<dateandtime>\d{2}\/[a-z]{3}\/\d{4}:\d{2}:\d{2}:\d{2} (\+|\-)\d{4})\] ((\"(GET|POST) )(?P<url>.+)(http\/1\.1")) (?P<statuscode>\d{3}) (?P<bytessent>\d+) (["](?P<refferer>(\-)|(.+))["]) (["](?P<useragent>.+)["])""", re.IGNORECASE) |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| class InfiniteScroll extends StatefulWidget { | |
| @override | |
| _InfiniteScrollState createState() => new _InfiniteScrollState(); | |
| } | |
| class _InfiniteScrollState extends State<InfiniteScroll> { |
| // Make sure to replace <YOUR_LOCAL_IP> with | |
| // the external IP of your computer if you're using Android. | |
| // Note that we're using port 8888 which is Charles' default. | |
| String proxy = Platform.isAndroid ? '<YOUR_LOCAL_IP>:8888' : 'localhost:8888'; | |
| // Create a new Dio instance. | |
| Dio dio = Dio(); | |
| // Tap into the onHttpClientCreate callback | |
| // to configure the proxy just as we did earlier. |
| // Make sure to replace <YOUR_LOCAL_IP> with | |
| // the external IP of your computer if you're using Android. | |
| // Note that we're using port 8888 which is Charles' default. | |
| String proxy = Platform.isAndroid ? '<YOUR_LOCAL_IP>:8888' : 'localhost:8888'; | |
| // Create a new HttpClient instance. | |
| HttpClient httpClient = new HttpClient(); | |
| // Hook into the findProxy callback to set | |
| // the client's proxy. |
| // Make sure to replace <YOUR_LOCAL_IP> with | |
| // the external IP of your computer if you're using Android. | |
| // Note that we're using port 8888 which is Charles' default. | |
| String proxy = Platform.isAndroid ? '<YOUR_LOCAL_IP>:8888' : 'localhost:8888'; | |
| // Create a new HttpClient instance. | |
| HttpClient httpClient = new HttpClient(); | |
| // Hook into the findProxy callback to set | |
| // the client's proxy. |
| # remove iOS bitcode | |
| flutter build ios | |
| cd build/ios/iphoneos/Runner.app/Frameworks | |
| cd App.framework | |
| xcrun bitcode_strip -r app -o app | |
| cd .. | |
| cd Flutter.framework | |
| xcrun bitcode_strip -r Flutter -o Flutter | |
| cd ../../../../../../ |