Code Monkey home page Code Monkey logo

gdagley / bundleversionchecker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kayy/bundleversionchecker

1.0 1.0 0.0 289 KB

Unity editor plugin for tracking changes of bundle version so that they are available in runtime classes. PlayerSettings.bundleVersion will be updated on changes and all previous version strings are kept in your source code by automatic code generation from a Unity editor class.

License: MIT License

C# 100.00%

bundleversionchecker's Introduction

BundleVersionChecker

Smart workaround to get Unity's bundle version information from PlayerSettings.bundleVersion in your source code by automatic code generation from a Unity editor class.

There is a detailed discussion in the following 3 blog postings: Usage: http://www.scio.de/en/blog-a-news/scio-development-blog-en/entry/accessing-bundle-version-in-unity-ios-runtime-3

Concept: http://www.scio.de/en/blog-a-news/scio-development-blog-en/entry/accessing-bundle-version-in-unity-ios-runtime-2

Problem description and basic solution: http://www.scio.de/en/blog-a-news/scio-development-blog-en/entry/accessing-bundle-version-in-unity-at-runtime-1

Quick Start:

  • Ensure that you have a bundle version defined in Unity's Player Settings: In Unity go to menu Edit / Project Settings / Player. In Inspector choose "Settings for iOS" under "Per-Platform Settings" and look in section other settings
  • Download BundleVersionChecker from GitHub
  • Put it in a new directory BundleVersionChecker under Assets/Editor; The code within the project has no sub-directories so it's easy to create a submodule if you are using git as version control system
  • Bring Unity to the foreground (or start it if you haven't it running)
  • In console view you should see 2 messages after a few seconds:
    • Very first call, class file "TrackedBundleVersion".cs will be generated for the first tracked version 0.8.5 (or whatever version)
    • Successfully copied template for class TrackedBundleVersionInfo to Assets/Scripts/Config/Generated/TrackedBundleVersionInfo.cs

Now you find 2 new classes in a new directory under Assets/Scripts/Config/Generated TrackedBundleVersion.cs and TrackedBundleVersionInfo.cs.

They can now be used from your runtime classes to access bundle version and identifer.

bundleversionchecker's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.