Giter Site home page Giter Site logo

ua-parser's Introduction

ua-parser

Contains the forked uap-core and uap-java.

Build and Releases

This project includes two independent git-submodules which must be built and released seperatly (uap-core before uap-java).

Could be fixed by adding a parent pom if anybody knows if it's possible to release a multi-modul project which includes maven-modules as git-modules.

Changes

Common

  • Updated DeviceParser to work with new core regexes
  • GroupId and Packages changed from ua_parser to de.adorsys.uap.java (avoids conflicts...)
  • Updated Java6 to Java7 and other dependecies to current versions
  • uap-core is now also a maven project which builds a jar and a test-jar containing the regexes. Both can be released and uap-java relies on a released version of uap-core (a mvn release relying on relative paths doesn't work)
  • Projects can be released to the adorsys nexus

KTB Agents

The parser now handles KTB specific agents like this:

APP-BE Test/1.0 (iPad; Apple; CPU iPhone OS 7_0_2 like Mac OS X)

Which results to following UserAgent:

{
  "family": "BE Test", 
  "major": "1", 
  "minor": "0", 
  "patch": "", 
  "engine": "Mobile App"
}

The engine must be defined in uap-core/regexes.yaml:

# KTB 
- regex: 'APP-([\w\s-\d]+)\/(\d+)\.(\d+)'
  family_replacement: '$1'
  engine_replacement: 'Mobile App'    

Note: The engine is null unless there is a replacement defined. No pattern matching here.

ua-parser's People

Contributors

lefloh avatar

Watchers

Marco Obermeyer avatar James Cloos avatar Christoph Dietze avatar Sandro Sonntag avatar Francis Pouatcha avatar Jan-Otto Kröpke avatar Boris Waguia avatar  avatar Alexander Geist avatar Jan Mederer avatar  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.