• Stars
    star
    131
  • Rank 275,867 (Top 6 %)
  • Language
    Groovy
  • License
    Apache License 2.0
  • Created almost 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A gradle plugin to automate framing android screenshots with devices frames in multiple languages and with multiple screen sizes.

Gradle Frame Android screenshots Plugin

License

Automate putting your screenshots quickly into Android device frames with their titles.

Usage

brew install imagemagick

and ghostscript for the text :

brew install gs
  • Add the following to your app's build.gradle file: (use the new plugin syntax for gradle 2.1+)

    buildscript {
       repositories {
          maven {
            url "https://plugins.gradle.org/m2/"
          }
       }
    }
    
    plugins {
      id "com.mounacheikhna.screenshots.frame" version "0.2.2"
    }

    or Add a maven dependency :

    <dependency>
      <groupId>com.mounacheikhna.screenshots</groupId>
      <artifactId>frame-gradle-plugin</artifactId>
      <version>0.2.2</version>
    </dependency>
    

    or Gradle < 2.1 dependency

    buildscript {
        repositories {
            mavenCentral()
        }
    
        dependencies{
            classpath 'com.mounacheikhna.screenshots:frame-gradle-plugin:0.1.13'
        }
    }    
  • Configure the plugin in your app's build.gradle file :

    frames {
        inputDir = "screenshots"
        outputDir = "output"
        framesDir = "frames"
        selectedFrame = "galaxy_nexus_port_back.png"
        localTitlesMap =  [
                "en_US": ["from": "Example screenshot title #1", "to": "Example screenshot title #2"],
                "fr_FR": ["from": "Exemple pour titre screenshot #1", "to": "Exemple pour titre screenshot #2"]
        ]
        backgroundColor = "#00cccc"
        textColor = "#FFFFFF"
        textSize = 40
        topOffset = 40
    }

Sample

See sample project for how to set.

Here's a sample result for screenshots for my app Alias :

Contributing

  • Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
  • Fork the repository on Github to start making your changes.
  • Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to CONTRIBUTORS.txt.

License

Copyright (C) 2016 Mouna Cheikhna

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

More Repositories

1

Decor

Android layout decorators : Injecting custom attributes in layout files, Using decorators to get rid of unnecessary class explosion with custom views
Java
304
star
2

HaskellResources

Compilation of useful resources for learning Haskell
113
star
3

ClojureResources

Compilation of useful resources for learning Clojure and generaly LISP
96
star
4

HarryPotterBooks

An app display all Harry potter books details (From a custom server and goodreads api) with lots of animations/transitions.
Java
91
star
5

Rx-Resources

To Aggregate resources to learn and understand RxJava, Rx Android (and Rx in general)
67
star
6

Kotlin-Resources

To Aggregate resources to learn and understand Kotlin
44
star
7

Nearby

Foursquare client written in kotlin.
Kotlin
38
star
8

FindForMe

An android application demonstrating usage of Dagger, Tape, RxAndroid , Otto, Picasso, Retrofit and some Android-L features
Java
9
star
9

til

My Today I Learned
8
star
10

AlgorithmsCatalog

Attempt to catalog algorithms by the problems they solve generaly
5
star
11

gbasic

A small interpreter for BASIC written in go.
Go
4
star
12

Computer-Science-Concepts

3
star
13

gradle-play-publish

Groovy
3
star
14

androiddocs

Android documentation tool
Haskell
3
star
15

AndroidCustomComponents

A set of android custom components
Java
2
star
16

EulerPlayground

Solving project Euler problems in various languages (Java, Groovy, Scala, Haskell, Clojure, Kotlin...) and with different paradigms (functional, Rx,...)
Java
2
star
17

AlgorithmsDesignManual

Some exercises solutions for The Algorithm Design Manual 2nd Edition
Python
2
star
18

99logic

Solving 99 Prolog Problems (https://sites.google.com/site/prologsite/prolog-problems) with core.logic
Clojure
1
star
19

RxJavaMagicSequenceProblem

Java
1
star
20

365papers

A paper a day
1
star
21

4clojure

My solutions to 4clojure exercices
Clojure
1
star
22

adb-gradle-plugin

Groovy
1
star
23

haskell30SecondsOfCode

Haskell
1
star
24

99Clojure

Clojure
1
star
25

algojs

JavaScript
1
star
26

AlgorithmsStudy

Hopefully more cleaner version than https://github.com/chemouna/AlgorithmsCatalog
1
star
27

ProgrammingPearls

Practicing with ProgrammingPearls book
Java
1
star
28

AlgorithmsPy

My solutions to some algorithms in Python
Python
1
star
29

StopWatchSample

Kotlin
1
star
30

android-release-plugin

Groovy
1
star
31

AlgorithmsInC

C++
1
star
32

365papers-1

List of Papers I read updated daily (or not so daily).
1
star
33

AlgorithmsRust

Rust
1
star
34

AndroidArchitectureComponents

Playing with Android Architecture Components
Kotlin
1
star
35

AndroidFontStateList

Apply custom font state list
Kotlin
1
star
36

algebra

Implementing some algebraic structures in Haskell
Haskell
1
star
37

AiResources

Resources for learning AI
1
star
38

.emacs.d

My personal emacs settings
Emacs Lisp
1
star
39

AlgorithmsProofs

1
star
40

AINotes

1
star
41

AlgorithmsInRuby

My implementation of some algorithms in Ruby
Ruby
1
star
42

RxJavaAndroidDemos

Learning RxJava on Android
Java
1
star
43

AlgorithmADay

Learn an algorithm a day
Java
1
star
44

99Haskell

My Solutions to haskell 99 Problems (https://wiki.haskell.org/H-99:_Ninety-Nine_Haskell_Problems)
Haskell
1
star