Skip to content

Commit

Permalink
update to new repository name and location
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Perry committed Sep 19, 2016
1 parent a54d92e commit 12ea316
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 22 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Copyright (c) 2016 Tim Perry
Copyright (c) 2012-2014 Hongbo LU
Copyright (C) 2012 30ideas (http://30ide.as)

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
cordova-screenshot
==================

[![NPM version](http://img.shields.io/npm/v/com.sharerevolution.cordova.screenshot.svg?style=flat)](https://www.npmjs.com/package/com.sharerevolution.cordova.screenshot)
[![NPM version](http://img.shields.io/npm/v/com.sharerevolution.cordova.screenshot.svg?style=flat)](https://github.com/perry2of5/cordova-screenshot-crosswalk-ios-only.git)


The Screenshot plugin allows your application to take screenshots of the current screen and save them into the phone.

This is a fork of https://github.com/gitawego/cordova-screenshot.git which supports only crosswalk on Android. The goal
is to allow a screenshot of the crosswalk display without needing to request permissions to the file system or the
user's images. This works if you want to get screenshot of the app for support purposes.... The image can not be written
to disk since the permission is not requested...thus may exhibit out of memory issues on devices with very high screen
resolutions but with not much memory free.
This is a fork of https://github.com/gitawego/cordova-screenshot.git which supports only crosswalk on Android and the
default webview on iOS. The goal is to allow a screenshot of the crosswalk display without needing to request
permissions to the file system or the user's images. This works if you want to get screenshot of the app for support
purposes.... The image can not be written to disk since the permission is not requested...thus may exhibit out of
memory issues on devices with very high screen resolutions but with not much memory free.

##how to install

install it via cordova cli

```
cordova plugin add https://github.com/perry2of5/cordova-screenshot
cordova plugin add https://github.com/perry2of5/cordova-screenshot-crosswalk-ios-only.git
```

notice:
in iOS, only jpg format is supported
in Android, [Crosswalk](https://crosswalk-project.org/documentation/cordova.html) is supported
On iOS, only jpg format is supported.
On Android, only [Crosswalk](https://crosswalk-project.org/documentation/cordova.html) is supported

##usage

Expand Down
16 changes: 7 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
{
"name": "com.sharerevolution.cordova.screenshot",
"name": "com.sharerevolution.cordova.screenshot.crosswalkandiosonly",
"version": "0.1.6",
"description": "screenshot Cordova Plugin for Android (Crosswalk) and iOS, only provides screenshot as URI, not as file.",
"cordova": {
"id": "com.sharerevolution.cordova.screenshot",
"id": "com.sharerevolution.cordova.screenshot.crosswalkandiosonly",
"platforms": [
"android",
"ios",
"osx"
"ios"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/perry2of5/cordova-screenshot.git"
"url": "git+https://github.com/perry2of5/cordova-screenshot-crosswalk-ios-only.git"
},
"keywords": [
"cordova",
"screenshot",
"ecosystem:cordova",
"cordova-android",
"cordova-ios",
"cordova-osx"
"cordova-ios"
],
"engines": [
{
Expand All @@ -31,7 +29,7 @@
"author": "Tim Perry et. al. including Hongbo LU",
"license": "MIT",
"bugs": {
"url": "https://github.com/perry2of5/cordova-screenshot/issues"
"url": "https://github.com/perry2of5/cordova-screenshot-crosswalk-ios-only/issues"
},
"homepage": "https://github.com/perry2of5/cordova-screenshot#readme"
"homepage": "https://github.com/perry2of5/cordova-screenshot-crosswalk-ios-only#readme"
}
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<description>screenshot PhoneGap Plugin for Android</description>
<license>MIT</license>
<keywords>cordova,screenshot</keywords>
<repo>https://github.com/perry2of5/cordova-screenshot.git</repo>
<repo>https://github.com/perry2of5/cordova-screenshot-crosswalk-ios-only.git</repo>
<engines>
<engine name="cordova" version=">=6.0.0" />
</engines>
Expand Down
8 changes: 5 additions & 3 deletions www/Screenshot.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
* This code is adapted from the work of Michael Nachbaur
* by Simon Madine of The Angry Robot Zombie Factory
* This code is a slimmed down version of the code by Simon
* Madine of The Angry Robot Zombie Factory. His code was
* adapted from the work of Michael Nachbaur.
* - Converted to Cordova 1.6.1 by Josemando Sobral.
* - Converted to Cordova 2.0.0 by Simon MacDonald
* 2012-07-03
* - Removed get screenshot as file. Only URI support remains.
* 2016-09-16
* MIT licensed
*/
var exec = require('cordova/exec'), formats = ['png','jpg'];
Expand Down

0 comments on commit 12ea316

Please sign in to comment.