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 document describes automation of screenshots creation of your multilanguage Flutter app. | |
Background: | |
----------- | |
I have an app with over 20 different languages and screenshotting all of them is time consuming. | |
At first I did it manually and over 7 days(!) went to drain to get it done. | |
20 x 6 screenshots x 3 devices = 360 pictures to handle | |
My setup is on a mac, so everything related is to that. Most developers who publish a iOS version, have access to a mac. |
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
///// | |
///// Simple class to read JSON export files from Localizely | |
///// | |
//Add interface to program like so: | |
// services.AddSingleton<IJSONMultiLanguageInterface, JSONMultiLanguage>( | |
// l => new JSONMultiLanguage(Defaultlanguage: "NO", cache: l.GetService<IDistributedCache>()) | |
// ); | |
///// | |
///// Create a directory called {projectroot}/LanguageResources |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<extensions> | |
<details> | |
<title lang="EN">Michael's Slim Stuff (werner fix)</title> | |
</details> | |
<plugins> | |
<plugin name="Spotty" version="4.8.2" minTarget="7.7" maxTarget="*"> | |
<title lang="EN">Spotify for Squeezebox. Still Spotty new version.</title> |
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
34T62-N84MB-7DQGY-G7XGT-YTQ63 |
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 CrossPlatformTypeBinder : DefaultSerializationBinder | |
{ | |
static readonly bool isNetCore = Type.GetType("System.String, System.Private.CoreLib") != null; | |
readonly ConcurrentDictionary<string, Type> mappedTypes = new ConcurrentDictionary<string, Type>(); | |
public override Type BindToType(string assemblyName, string typeName) | |
{ | |
mappedTypes.TryGetValue(typeName, out var type); | |
if (type != null) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace HolePunchTest | |
{ | |
public class TcpProxy |