Skip to content

Commit

Permalink
Merge pull request #33 from m1ga/master
Browse files Browse the repository at this point in the history
feat(android): SDK 9 - Update repo structure
  • Loading branch information
m1ga authored Mar 15, 2022
2 parents 9e3f763 + 9ddff38 commit a7e43c4
Show file tree
Hide file tree
Showing 24 changed files with 471 additions and 542 deletions.
24 changes: 21 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
tmp
bin
build
dist
*.zip

*/*/modules
*/*/modules*
.apt_generated
Expand All @@ -21,4 +20,23 @@ xcuserdata
*.xcuserdata*

.idea/
libs/
libs/

android/clean
android/ant_clean
android/.classpath
android/.gradle
android/.settings
android/dist/
android/launch-*
android/java-sources.txt
nbproject

/ios/metadata.json
/ios/dist

node_modules/

TESTS-*.xml

.vscode/
67 changes: 63 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,70 @@
ti.paint [![Build Status](https://travis-ci.org/appcelerator-modules/ti.paint.svg)](https://travis-ci.org/appcelerator-modules/ti.paint)
ti.paint
=======

This is the Paint Module for Titanium.

Interested in contributing? Read the [contributors/committer's](https://wiki.appcelerator.org/display/community/Home) guide.
## Usage
```javascript
var Paint = require('ti.paint');
var paintView = Paint.createPaintView({});
```

### Functions

* clear()
Clears the paint view.

* moveTo(x,y) [Android only]
Move to position x/y

* lineTo(x,y) [Android only]
Draw line to position x/y

* enable(true/false) [Android only]
Disable drawing

* undo()/redo() [Android only]
Undo or redo last action


### Properties

* strokeWidth[double]
Controls the width of the strokes.

* strokeColor[string]
Controls the color of the strokes.

* strokeAlpha[int]
Controls the opacity of the strokes.

* eraseMode[boolean]
Controls if the strokes are in "erase mode" -- that is, any existing paint will be erased.

* image[string]
Loads an image (by its URL) directly in to the paint view so that it can be drawn on and erased.

### Events

* touchcancel
Fired when a touch event is interrupted by the device.

* touchend
Fired when a touch event is completed.

* touchmove
Fired as soon as the device detects movement of a touch.

* touchstart
Fired as soon as the device detects a touch gesture.

## Contributors

* Please see https://github.com/tidev/ti.paint/graphs/contributors
* Interested in contributing? Read the [contributors/committer's](https://github.com/tidev/organization-docs/blob/main/BECOMING_A_COMMITTER.md) guide.

## Legal

This module is Copyright (c) 2010-2015 by Appcelerator, Inc. All Rights Reserved. Usage of this module is subject to
the Terms of Service agreement with Appcelerator, Inc.
This module is Copyright (c) 2010-present by Tidev, Inc. All Rights Reserved. Usage of this module is subject to
the Terms of Service agreement with Tidev, Inc.
nc.
3 changes: 3 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

dependencies {
}
14 changes: 0 additions & 14 deletions android/documentation/changelog.md

This file was deleted.

30 changes: 0 additions & 30 deletions android/documentation/index.md

This file was deleted.

33 changes: 0 additions & 33 deletions android/documentation/paintView.md

This file was deleted.

48 changes: 0 additions & 48 deletions android/example/app.js

This file was deleted.

1 change: 0 additions & 1 deletion android/hooks/README

This file was deleted.

35 changes: 0 additions & 35 deletions android/hooks/add.py

This file was deleted.

19 changes: 0 additions & 19 deletions android/hooks/install.py

This file was deleted.

34 changes: 0 additions & 34 deletions android/hooks/remove.py

This file was deleted.

18 changes: 0 additions & 18 deletions android/hooks/uninstall.py

This file was deleted.

7 changes: 3 additions & 4 deletions android/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 4.0.0
version: 5.0.0
apiversion: 4
architectures: arm64-v8a armeabi-v7a x86
architectures: arm64-v8a armeabi-v7a x86 x86_64
description: Provides a paint surface user interface view.
author: Fred Spencer
license: Appcelerator Commercial License
copyright: Copyright (c) 2010-2017 by Axway, Inc.


# these should not be edited
name: paint
moduleid: ti.paint
guid: de06ebe1-4ab9-44da-85e4-7409b24190eb
platform: android
minsdk: 7.0.0.GA
minsdk: 9.0.0
2 changes: 1 addition & 1 deletion android/src/ti/modules/titanium/paint/PaintModule.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Ti.Paint Module
* Copyright (c) 2010-2013 by Appcelerator, Inc. All Rights Reserved.
* Copyright (c) 2010-present by TiDev, Inc. All Rights Reserved.
* Please see the LICENSE included with this distribution for details.
*/

Expand Down
Loading

0 comments on commit a7e43c4

Please sign in to comment.