Git Product home page Git Product logo

mobile-design-lib-android's Introduction

MobileDesign

Getting Started

Read it first https://github.com/pedrovgs/Shot

create your emulator

sdkmanager --install "system-images;android-28;google_apis;x86"

avdmanager create avd -n Pixel_API_28 -k "system-images;android-28;google_apis;x86" -d 23

Update Config.ini

/.android/avd/Pixel_API_28.avd/config.ini

AvdId = Pixel_API_28
PlayStore.enabled = true
abi.type = x86
avd.ini.displayname = Pixel API 28
avd.ini.encoding = UTF-8
disk.dataPartition.size = 6442450944
fastboot.chosenSnapshotFile = 
fastboot.forceChosenSnapshotBoot = no
fastboot.forceColdBoot = yes
fastboot.forceFastBoot = no
hw.accelerometer = yes
hw.arc = false
hw.audioInput = yes
hw.battery = yes
hw.camera.back = virtualscene
hw.camera.front = emulated
hw.cpu.arch = x86
hw.cpu.ncore = 4
hw.dPad = no
hw.device.hash2 = MD5:55acbc835978f326788ed66a5cd4c9a7
hw.device.manufacturer = Google
hw.device.name = pixel
hw.gps = yes
hw.gpu.enabled = yes
hw.gpu.mode = auto
hw.initialOrientation = Portrait
hw.keyboard = yes
hw.lcd.density = 420
hw.lcd.height = 1920
hw.lcd.width = 1080
hw.mainKeys = no
hw.ramSize = 1536
hw.sdCard = yes
hw.sensors.orientation = yes
hw.sensors.proximity = yes
hw.trackBall = no
runtime.network.latency = none
runtime.network.speed = full
sdcard.size = 512M
showDeviceFrame = no
skin.dynamic = yes
skin.name = 1080x1920
skin.path = _no_skin
tag.display = Google Play
tag.id = google_apis_playstore
vm.heapSize = 228

start your emulator

emulator @Pixel_API_28

read more: Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

record your snapshot test case

  • All Test

    • ./gradlew mobile-design:debugExecuteScreenshotTests -Precord
  • Single Test

    • ./gradlew mobile-design:debugExecuteScreenshotTests -Precord -Pandroid.testInstrumentationRunnerArguments.class=com.nmg.mobile.design.widgets.videoplayer.VideoPlayerControlTest

Snapshot testing

common
WW Light
MORE Light
ED Light
KISS Light
NM Light
OS Light
GOTRIP Light
OH Light
commmon grey light
typographies Alt text
body Alt text
bodyEmphasize Alt text
caption Alt text
caption2 Alt text
caption3Emphasize Alt text
captionEmphasize Alt text
headline Alt text
headlineEmphasize Alt text
largeTitleEmphasize Alt text
naviTitle Alt text
primaryButton Alt text
title1 Alt text
title2 Alt text
title2Emphasize Alt text
title3 Alt text
title3Emphasize Alt text
title4 Alt text
title4Emphasize Alt text
title5 Alt text
titleEmphasize Alt text
component
chip group Alt text
card Alt text
video player control Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
ReelActionButton Alt text
ReelActionButtonGroup Alt text
ReelPlayer Alt text
ReelPager Alt text

target

  • Pixel XL API 28

mobile-design-lib-android's People

Contributors

jameskongchief avatar chocolatetan avatar fishkingsin avatar leonchief avatar nmgitadmin 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.