Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented sizeTo and sizeBy #6 #8

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
language: android
jdk: oraclejdk8

git:
depth: 10000

env:
global:

- SLAVE_AAPT_TIMEOUT=30
- TERM=dumb
- GRADLE_OPTS="-XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m -Dfile.encoding=UTF-8"

matrix:
fast_finish: true

android:
components:

- platform-tools
- tools
- build-tools-30.0.1
- android-30
- extra-google-m2repository
- extra-android-m2repository

# https://docs.travis-ci.com/user/languages/android/
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'

before_install:
- git submodule update --init --recursive
- chmod u+x gradlew
- android list sdk --no-ui --all --extended
- android list targets
- wget -r -nH -nd -np -R index.html* robots.txt* http://download.kiwix.org/dev/android/api/licenses/ -e robots=off -P $ANDROID_HOME/licenses || true
- yes | sdkmanager "platforms;android-29"

install: true

script:
- ./gradlew -v
- ./gradlew clean build --stacktrace

after_failure: true

notifications:
email: false
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![](https://jitpack.io/v/kibotu/AndroidAnimationsActions.svg)](https://jitpack.io/#kibotu/AndroidAnimationsActions)

[![Android Gems](http://www.android-gems.com/badge/dtx12/AndroidAnimationsActions.svg?branch=master)](http://www.android-gems.com/lib/dtx12/AndroidAnimationsActions)

# Android Animations Actions
Expand Down Expand Up @@ -34,12 +36,15 @@ For better quality please check package demo in the project.
![](http://i.imgur.com/EueRBrp.gif)

## Gradle
```java
repositories {
jcenter()
}

dependencies {
compile 'com.dtx12:actions:0.1.4'
}
```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}

dependencies {
implementation 'com.dtx12:actions:2.0.0'
}
```
203 changes: 116 additions & 87 deletions actions/build.gradle
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
}
}
apply plugin: 'com.android.library'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'kotlin-android'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'kotlin-kapt'
// apply plugin: 'com.jfrog.bintray'

repositories {
jcenter()
}

version = "0.1.4"
version = "1.0.0"
group = "com.dtx12"

kapt {
useBuildCache = true
}

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
compileSdkVersion 30
buildToolsVersion "30.0.1"

defaultConfig {
minSdkVersion 14
targetSdkVersion 23
targetSdkVersion 30
versionCode 1
versionName "1.0"
}
Expand All @@ -35,82 +27,119 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
configurations = ['archives']
pkg {
repo = 'maven'
name = 'animations-actions'
desc = 'Actions for android animations. Inspired by libgdx scene2d actions.'
licenses = ['MIT']
vcsUrl = 'https://github.com/dtx12/AndroidAnimationsActions.git'
issueTrackerUrl = 'https://github.com/dtx12/AndroidAnimationsActions/issues'
labels = ['android', 'animations', 'actions']
publicDownloadNumbers = true
publish = true
// region compile options

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.1'
}
// endregion

install {
repositories.mavenInstaller {
pom {
project {
packaging 'aar'
groupId 'com.dtx12'
artifactId 'actions'
name "Android Animations as Actions"
description 'Actions for android animations. Inspired by libgdx scene2d actions.'
url 'https://github.com/dtx12/AndroidAnimationsActions'

developers {
developer {
id 'dtx12'
name 'Bogdan Kiselev'
email '[email protected]'
}
}

licenses {
license {
name 'MIT'
url 'http://opensource.org/licenses/mit-license.php'
}
}

scm {
url 'https://github.com/dtx12/AndroidAnimationsActions'
connection 'https://github.com/dtx12/AndroidAnimationsActions.git'
developerConnection 'https://github.com/dtx12/AndroidAnimationsActions.git'
}
}
}
// region compile options

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
// endregion

// region lint options

lintOptions {
abortOnError false
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
// endregion

// region dex options

dexOptions {
javaMaxHeapSize "4g"
maxProcessCount 8
}

// endregion

// region adb options

adbOptions {
timeOutInMs 10 * 60 * 1000 // 10 minutes
}

// endregion

// region exclude duplicated meta inf files

packagingOptions {
exclude 'META-INF/app_debug.kotlin_module'
exclude 'META-INF/library-core_release.kotlin_module'
}

// endregion
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
//bintray {
// user = System.getenv('BINTRAY_USER')
// key = System.getenv('BINTRAY_KEY')
// configurations = ['archives']
// pkg {
// repo = 'maven'
// name = 'animations-actions'
// desc = 'Actions for android animations. Inspired by libgdx scene2d actions.'
// licenses = ['MIT']
// vcsUrl = 'https://github.com/dtx12/AndroidAnimationsActions.git'
// issueTrackerUrl = 'https://github.com/dtx12/AndroidAnimationsActions/issues'
// labels = ['android', 'animations', 'actions']
// publicDownloadNumbers = true
// publish = true
// }
//}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10'
implementation 'androidx.appcompat:appcompat:1.2.0'
}

artifacts {
archives javadocJar
archives sourcesJar
}
//install {
// repositories.mavenInstaller {
// pom {
// project {
// packaging 'aar'
// groupId 'com.dtx12'
// artifactId 'actions'
// name "Android Animations as Actions"
// description 'Actions for android animations. Inspired by libgdx scene2d actions.'
// url 'https://github.com/dtx12/AndroidAnimationsActions'
//
// developers {
// developer {
// id 'dtx12'
// name 'Bogdan Kiselev'
// email '[email protected]'
// }
// }
//
// licenses {
// license {
// name 'MIT'
// url 'http://opensource.org/licenses/mit-license.php'
// }
// }
//
// scm {
// url 'https://github.com/dtx12/AndroidAnimationsActions'
// connection 'https://github.com/dtx12/AndroidAnimationsActions.git'
// developerConnection 'https://github.com/dtx12/AndroidAnimationsActions.git'
// }
// }
// }
// }
//}


apply from: "https://raw.githubusercontent.com/exozet/Android-Dependencies/master/javadoc.gradle"


This file was deleted.

7 changes: 1 addition & 6 deletions actions/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
<manifest
package="com.dtx12.android_animations_actions.actions">

<application/>

</manifest>
<manifest package="com.dtx12.android_animations_actions.actions" />
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
/**
* The MIT License (MIT)
* <p/>
*
*
* Copyright (c) 2015 dtx12
* <p/>
*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* <p/>
*
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* <p/>
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Expand All @@ -21,9 +25,17 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.dtx12.android_animations_actions.actions

package com.dtx12.android_animations_actions.actions;

enum ActionType {
ALPHA, SCALE_TO, SCALE_BY, SIZE_TO, SIZE_BY, ROTATE_TO, ROTATE_BY, COLOR, MOVE_TO, MOVE_BY
}
internal enum class ActionType {
ALPHA,
SCALE_TO,
SCALE_BY,
SIZE_TO,
SIZE_BY,
ROTATE_TO,
ROTATE_BY,
COLOR,
MOVE_TO,
MOVE_BY
}
Loading