Provides metadata extraction for iOS, Android and Windows packages.
Перейти к файлу
microsoft-github-policy-service[bot] 79e434e1a5
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2022-11-28 19:11:39 +00:00
.vscode Allow callers to pass a working folder and return icons and provisioning profile as full path. 2017-12-30 10:12:50 -08:00
packages Allow callers to pass a working folder and return icons and provisioning profile as full path. 2017-12-30 10:12:50 -08:00
src Add MsixContent and MsixBundleContent and handle those types in ZipContent as well 2018-08-08 15:18:57 +02:00
test Add MsixContent and MsixBundleContent and handle those types in ZipContent as well 2018-08-08 15:18:57 +02:00
.gitignore remove .only from one of the tests. 2017-12-23 17:12:51 +00:00
.npmrc add .npmrc 2017-12-29 15:25:23 -08:00
LICENSE Updating LICENSE file 2017-09-07 22:04:54 -07:00
README.md update readme file to deprecate the change 2019-03-21 14:18:16 -07:00
SECURITY.md Microsoft mandatory file 2022-08-17 14:53:39 +00:00
gulpfile.js do not publish consoleFlow.js. 2017-12-25 11:19:00 -08:00
index.d.ts make enum a const. 2018-01-23 16:38:23 -08:00
index.ts - rename IIPAMetadata to IIpaMetadarta 2018-01-23 15:03:46 -08:00
package-lock.json update readme file to deprecate the change 2019-03-21 14:18:16 -07:00
package.json 0.1.26 -> 0.1.27 2018-08-09 20:34:48 +02:00
tsconfig.json remove .only from one of the tests. 2017-12-23 17:12:51 +00:00
tslint.json Initial commit. 2017-09-07 21:57:30 -07:00
typings.json - bring typings to minimum 2017-12-21 16:10:52 -08:00

README.md

Description

This package has been deprecated, and is not being maintained by MSFT anymore.

This library helps you retrieve the most frequently extracted metadata and icons within iOS, Android and UWP applications.

Usage

import

import { Extract } from 'app-metadata';

usage

let results = await Extract.run(pathName);

This library relies on the standard set of file extensions to determine the type of package it is analyzing.

Results

The library will return the information most relevant for the supported platforms. For a better understanding of the details retrieved refer to the tables below.

iOS

Supported extension: .ipa
Property Description
icon
iconName
languages Array of language strings compiled from .lproj files
hasProvisioning Should always be true since IPA will contain a provisioning profile
appex_provisioning_profiles Array of all other provisioning profiles included in the metadata
  • from Plist (info.plist):
Property Description
displayName CFBundleDisplayName (The user-visible name of the bundle) or CFBundleName (short bundle name)
uniqueIdentifier CFBundleIdentifier (reverse DNS that identifies a project by concatenating the company identifier with the product name)
version CFBundleShortVersionString (The release-version-number string for the bundle)
buildVersion CFBundleVersion (The build-version-number string for the bundle)
executableName CFBundleExecutable (Name of the bundles executable file)
minimumOsVersion MinimumOSVersion or LSMinimumSystemVersion
deviceFamily UIdeviceFamily
  • from Provisioning Profile (embedded.mobileprovision):
Property Description
pathName Path of the provisioning profile from inside of the IPA
mobileProvisionFileContent Provisioning profile content
teamIdentifier Entitlements["com.apple.developer.team-identifier"]
profileType If data.ProvisionedDevices exists, "adhoc". Otherwise "enterprise"
expiredAt expired_at or ExpirationDate
idName AppIDName
name Name
UniqueDeviceIdentifierList ProvisionedDevices
deviceFamily Platform

Android

Supported extension: .apk
  • from Manifest:
Property Description
icon
iconName
uniqueIdentifier package
version versionName
buildVersion versionCode
minimumOsVersion usesSdk.minSdkVersion
deviceFamily "android"

UWP

Supported extensions: .appx, .appxupload, .msix, .msixupload or .zip
from Manifest:
Property Description
deviceFamily Constants.WINDOWS
displayName Package.Properties.DisplayName
iconFullPath Package.Properties.Logo
uniqueIdentifier Package.Identity.Name
buildVersion Package.Identity.Version
minimumOsVersion Package.Prerequisites.OSMinVersion or Package.Dependencies.TargetDeviceFamily.MinVersion
executableName Package.Applications.Application.Executable
languages Built from Package.Resources.Resource.Language

UWP Bundles

Supported extensions: .appxbundle, .appxupload, .msixbundle, .msixupload or .zip

For .appxbundle or .msixbundle app packages, the manifest is checked for the correct name of the appx subpackage. If it is found, the metadata is parsed directly from there, otherwise we scavenge for as much as we can get from the appxbundle/msixbundle manifest and metadata. We will only be supporting UWP apps with .msix extensions, despite them being universal

Property Description
icon
iconName
languages Built from .appx or .msix language files. Example- VLC_WinRT.WindowsPhone_1.8.4.0_language-en.appx
from Manifest:
Property Description
deviceFamily windows
uniqueIdentifier Bundle.Identity.Name
buildVersion Bundle.Identity.Version
minimumOsVersion Bundle.Prerequisites.OSMinVersion or Bundle.Dependencies.TargetDeviceFamily

The assumption for zip, appxUpload, and msixUpload is that the unziped folders will have the appx/msix or appxbundle/msixbundle which we will then process as we do normally

Prerequisites

  • Install node version 7.6.0

  • Install project dependencies (based on <REPO ROOT>/package.json)

    npm install
    
  • Install typescript via npm (npm will be installed with node)

    npm install -g typescript@2.3.4
    
  • Install gulp via npm

    npm install -g gulp@3.9
    
  • Upgrade npm to version 3.3.x

    npm install -g npm@5
    
  • Install the IDE

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

  • Ensure that it builds
    • Via gulp
      cd <REPO ROOT>
      gulp build
      
  • Ensure that tests pass
    • Via gulp
      cd <REPO ROOT>
      gulp test
      

Developing on OS X

  • Visual Studio Code

    • Point Visual Studio Code to the repo root
    • Install project dependencies
      • via npm on the command line
        cd <REPO ROOT>
        npm install 
        
    • Build (Cmd-Shift-B)
    • Run (F5)
    • Testing
      • via Visual Studio Code (Cmd-Shift-T)
      • via gulp on the command line
        cd <REPO ROOT>
        gulp test