Frametagmedia

Blog

How to Export Test Apps from OpenFL on non-iOS platforms

Posted on August 30, 2020 by Developers tagged with , , , , , , , under How To

Testing apps with OpenFL is a generally a straightforward process, but to streamline this, you can follow our step-by-step guide here to test on all platforms except iOS (for which we’ve made a separate guide, here).

Development environment:

Haxe 4.1.2
Lime 7.8.0
OpenFL 8.9.7-Lpv3od
  1. Install Haxe via:

https://haxe.org/download/

Then, run the below in Terminal using the default settings:

     haxelib setup

Then install OpenFL and Lime via Terminal (default settings in setup are fine) with:

     haxelib install lime
     haxelib run lime setup
     haxelib install openfl
     haxelib run openfl setup
  1. Test OpenFL is working with:
     openfl
  1. Create a sample project/navigate to a project directory in command line:
     openfl create DisplayingABitmap
     cd DisplayingABitmap
  1. Ensure the project works normally:
     openfl test neko

Windows

Development environment:

     Windows 10 Home 2004
     Visual Studio Community 2019 16.6.4
  1. Setup Windows export/testing with the following command:
     lime setup windows
  1. After installing a C++ compiler (ideally Microsoft Visual Studio as linked in the setup) you can finish by running the following command:
     lime test windows

Android

Development environment:

     Windows 10 Home 2004
     Samsung Galaxy S10+ on Android 10
     Android 10.0 (Q) Rev. 4 SDK
     Android 21.3.6528147 NDK
     Java 14.0.1 JDK
     Android SDK Platform-Tools 30.0.3
  1. Setup Android export/testing with the following command:
     lime setup android

And provide your Android SDK location, Android NDK location, and Java JDK location (default install locations below, replace {USER_PROFILE} with user folder name):

     C:\Users\{USER_PROFILE}\AppData\Local\Android\Sdk
     C:\Users\{USER_PROFILE}\AppData\Local\Android\Sdk\ndk\21.3.6528147
     C:\Users\{USER_PROFILE}\Java\jdk-14.0.1
  1. Ensure an Android device is plugged in via USB with USB debugging enabled in Developer options, then run the following command:
     lime test android
  1. If the build fails with “Could not initialize class org.codehaus.groovy.reflection.ReflectionCache”, one solution may be to change/append the gradle version to the project.xml file with this line, then run the test command again:
     <config:android gradle-version="6.3" />

macOS

Environment:

     mac OS Catalina 10.15.5
  1. Run the following command:
     lime test macos

Linux

Environment:

     Ubuntu 18.04.4 LTS
  1. Setup Linux export/testing with the following command:
     lime setup linux
  1. Run the following command:
     lime test linux

And there you have it. You are now able to test your OpenFL apps on all non-iOS platforms.


How to Export Test Apps to iOS with OpenFL

Posted on July 30, 2020 by Developers tagged with , , , , , under How To

Creating test apps for most platforms is generally quite straightforward with OpenFL, but iOS requires a little more setup. As such, in this blog we will go through the process step-by-step, so you too can test your OpenFL-based iOS apps.

Environment:

macOS Catalina 10.15.5
iPhone 6s on iOS 13.5.1
Xcode 11.5
Haxe 4.1.2
Lime 7.8.0
OpenFL 8.9.7-Lpv3od
  1. Install Haxe via:

https://haxe.org/download/

Then, run the below in Terminal using the default settings:

      haxelib setup

Then install OpenFL and Lime via Terminal (default settings in setup are fine) with:

      haxelib install lime
      haxelib run lime setup
      haxelib install openfl
      haxelib run openfl setup
  1. Test OpenFL is working with:
      openfl
  1. Create a sample project/navigate to a project directory in Terminal:
      openfl create DisplayingABitmap
      cd DisplayingABitmap
  1. Ensure the project works normally:
      openfl test neko
  1. Open the project into Xcode:
      lime update ios -xcode
  1. Navigate to Signing & Capabilities via the project, underneath TARGETS:
  1. Click “Add (an) Account…” next to Team/in the team dropdown and login to an Apple ID:
  1. Shortly, the status will update and may include the errors below:

To fix these, simply change the Bundle Identifier to something unique (note that the same Bundle Identifier should be used per-project), then click “Try Again”.

  1. Select the testing device (assuming a physical device for this example) from the [Project name] > [Testing device] dropdown in the toolbar:
  1. Click the Run button in the left of the toolbar and unlock the device:
  1. An error will likely appear.

To fix this, on your connected device, navigate Settings>General>Device Management>Apple Development: [Apple ID] and select “Trust ‘Apple Development: [Apple ID]’”, then “Trust”. The app should be listed as “Verified” (otherwise there should be a “Verify” button):

  1. The app should now be able to launch from the homescreen and by running through Xcode (don’t uninstall the app from the device when running through Xcode, otherwise it may have to be trusted again as per 11 – it should just update automatically). However, this error may also appear in Xcode, with a blank screen on the device:

The solution here is to navigate to Project (the folder icon in the left window)>Resources>[Project name]/[Project name]-Info.plist where you can click the plus icon next to “Information Property List” and enter “NSBluetoothAlwaysUsageDescription”, then press <Enter>:

The string entered in the Value column for the Key you just added (now titled “Privacy – Bluetooth Always Usage Description”) is what will appear when the app asks for Bluetooth permissions, so enter something appropriate.

Note: It is unclear why the app requires Bluetooth permissions, so this should be investigated before a release build.

  1. Run the app via Xcode again (again, be sure not to uninstall the app from the device, or you may need to repeat 11), and the app should now work correctly.

Note, that utilising other parts of iOS that require permissions will also likely require editing the Info.plist file again, and possibly also editing Capabilities in the Signing & Capabilities page.


Getting your e-commerce business started with WordPress

Posted on March 28, 2020 by Developers tagged with , , under Technology, WordPress Plugins

WordPress is great for blogging and basic Web sites. What many people don’t know it it’s also a great platform for business automation, including e-commerce. In this blog we’ll go over the steps to selling online with WordPress.

If you are looking to get into e-commerce with a new Web site quickly and easily, taking advantage of the WordPress ecosystem is an ideal first step.

At Frametag Media, we help businesses sell online without the hassle. The setup project typically involves:

  • Deployment of a new WordPress instance
  • Setting up a security certificate (browsers now display warnings on sites that are not secure)
  • Installing the e-commerce plugins (e.g. WooCommerce)
  • Integrate a payment gateway (e.g. PayPal, Square, etc)
  • Apply a chosen theme, or get a new theme developed
  • Test the sales process
  • Update your domain’s DNS record so the domain points to the new site
  • Go live and start selling!

We can also do a 1 hour training session to show you how to update your store at any time.

Turn your retail shop into an online store with WordPress

Of course, there are other things to consider when selling online – such as managing your postage fees and deliveries – but if you want to start selling quickly WordPress is a great way to go.

Once live, you can start selling online and through your social channels and be creative with the type of products you offer, including:

  • Straight sales
  • “Made to order” products
  • Lessons and training courses
  • Subscriptions (buy a box of meat once a month)
  • Gift vouchers (redeemed online or in store)
  • Corporate and business packages
  • Group experiences (e.g. $100 per person for a 2-hour class, minimum 5 people)

There are really no limits to the number of offerings you can have in your store.

Plugins and more plugins to help your business

The power of WordPress can be extended with plugins. This allows you to extended the value of your online store to the business over time

Example plugins include Xero integration, custom fields, social connectors and thousands more.

Contact us today if you have any questions or want to get started. We’re based on the NSW Central Coast (East Gosford) and are here to help.


Writing an ebook for content marketing: Publicise the product

Posted on June 21, 2018 by Rodney Gedda tagged with , , , under Strategy

This is the fun part, right? Once your shiny new ebook is complete you can go to town with the direct marketing and publicity. Here are some of the things to consider on the publicity playing field with an ebook in your pocket.

[table id=5 /]

With the right planning, approach and content your ebook can be the little gem of your content marketing activities. And, like other content, will feed nicely into established marketing programs.

This brings blog series on writing an ebook for content marketing to an end, but I will keep it updated with new posts as developments in this area progress.


Writing an ebook for content marketing: Cost all components

Posted on May 21, 2018 by Rodney Gedda tagged with , , , under Strategy

There’s an old saying among project management circles that a project should be delivered on time, on budget and on scope. In reality you should pick two. Nevertheless, it’s good to gather an idea of what a project is likely to cost before you begin.

As I outlined in my Introduction to Content Marketing report, one of the attractions of content production as a form of marketing is the barrier to entry is acceptably low. Even if the cost of content is in line with other forms of marketing, you don’t need to commit a large amount of cost and resources to get quality results. The same can be said of ebooks. While they do require more time and resources compared with something simple like a blog post, the cost to produce one is not unreasonable for a mature marketing organisation.

As always, the final amount spent will vary depending on the extravagance of the desired outcome, but generally speaking the costs for this type of ebook project can be broken down as follows.

[table id=4 /]

When dealing with a number of suppliers for an ebook project it is also a good idea to keep an eye on the amount of time in-house staff spend working it, including dealing with third-parties. This is difficult to quantify for many organisations, however, good suppliers won’t simply work to an hourly rate (or agreed fee), but work with you in a business capacity to ensure the best outcome is achieved. Make sure all stakeholders have skin in the game!


Writing an ebook for content marketing: Flex the format

Posted on April 21, 2018 by Rodney Gedda tagged with , , , under Strategy

In step 2, I covered the key components to consider in an approach to an ebook project. In step 3 I will outline what to consider regarding the format of the publication itself.

As you can imagine longer form content pieces can take many shapes and sizes. As part of your project scope you will need to decide how much time and energy you are prepared to set aside to produce a quality ebook without it becoming a never ending story…

Here are some guidelines for what’s involved in creating the ebook once you have decided on an approach to the content.

[table id=3 /]

Decide on the most suitable approach and variables like length and type of content to be included and work towards developing a scope of the ebook project. Once you have a scope and budget in mind, meet with your editor to discuss timing and start working on the content.

When you have decided on the format of the ebook, you’re almost ready to begin. But before you do, it’s good practice to budget for your ebook project. In the next step I’ll go over the costs involved in creating an ebook for content marketing.


Writing an ebook for content marketing: Align an approach

Posted on March 21, 2018 by Rodney Gedda tagged with , , , under Strategy

In the first blog of this series I described the three popular outcomes for longer-form content marketing. In this post I’ll dive into what should be considered as part of the ebook project approach. In project management circles the term “approach” refers to “how” the project will be achieved.

Having settled on option two (guide or ebook) as the preferred outcome, you need a framework for deciding which components will comprise the final work and which stakeholders will take ownership of each component. Prudent planning is an essential ingredient to the success of any project.

[table id=2 /]

The last few points – scope, budget and the grid – will be covered in future instalments of this blog series. For now, put together your preferred approach for your ebook using the guidelines above.


Generating a signing key for Android apps

Posted on February 7, 2018 by Rodney Gedda tagged with , , , , , , , under Technology

Before you publish a mobile app on the Google Play store the app package file (.apk) must be built with a key that is signed by Google. This helps prevent “fake” apps from popping up in the store.

On Linux and Mac OS X you can use the “keytool” command to generate a a keystore file. If you’re using Ubuntu Linux the keystore command should be installed by default. Here is an example of how to use the keytool command to generate a key for an Android app:

# keytool -genkey -v -keystore ftm-fishorsink.keystore -alias ftm-fishorsink-apk -keyalg RSA -keysize 2048 -validity 10000

That will generate a keystore file with 2048-bit RSA encryption. You will asked a bit about your organisation before the keys are generated. The validity in this case its 10000 days.

Now you can build your Android app to be published on Google Play.

It’s also possible to use openssl to generate a certificate signing request file that can be used for signing iOS apps. More about that in another post.


Writing an ebook for content marketing

Posted on January 20, 2018 by Rodney Gedda tagged with , , , , under Strategy

I’ve had a few recent discussions with people asking me about creating a piece of reusable content in the form of medium-sized report, or ebook, that can be used for marketing, lead generation and sales collateral.

To answer that question I usually start by saying there a numerous options for creating reusable content and a popular one is the trusty whitepaper report. Whitepapers are low-risk projects that can be produced fairly quickly for organisations on a budget – and a pressing campaign deadline!

In this case the person had a copy of an ebook guide produced by a multinational software company and was captivated by its long-term appeal. To that I said whitepapers can be appealing too, you just need to have meaningful content in them. But no, he was convinced he wanted some that is “kept and continuously referred to rather than read once and discarded”.

With that in mind I’ve decided to put together a multi-part blog series on what’s involved to produce a longer format ebook for content marketing.

Start with understanding the desired outcome

Before you start writing your ebook, think about the options you have for longer-format content. Assess whether one or more pieces of longer-format content will work with short-format content like that found blogs and social media. And, as always, consider how the final work will fit in with your overall marketing and customer relations strategies.

In the case of an ebook, the main outcome for the business is a guide that can be used as a reference over a long period of time rather than a single-campaign whitepaper report.

The table below summarises common outcomes for report-oriented content marketing.

[table id=1 /]

Successful publishing projects require diligent planning and a mandate as to why you want to do it in the first place – ebooks are no different.

In the next instalment I’ll discuss the key steps involved in producing an ebook for marketing.