Skip to content

Commit

Permalink
migrated to maven
Browse files Browse the repository at this point in the history
  • Loading branch information
FarshadTahmasbi committed May 30, 2021
1 parent c81c5e9 commit 1f54ac1
Show file tree
Hide file tree
Showing 19 changed files with 403 additions and 128 deletions.
95 changes: 84 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,87 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
# [Android] ========================
# Built application files
*.apk
*.ap_

# Files for the Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties
credentials.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log


## Directory-based project format:
.idea/

## File-based project format:
*.ipr
*.iws

## Plugin-specific files:

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml


# [Maven] ========================
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties


# [Gradle-Android] ========================

# Ignore Gradle GUI config
gradle-app.setting

# Gradle Signing
signing.properties
trestle.keystore

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

# Misc
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
publish.txt
**/*.iml
*.class
24 changes: 16 additions & 8 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.41'
ext.arch_lifecycle_version = '2.0.0'
ext.kotlin_version = '1.4.32'
ext.arch_lifecycle_version = '2.2.0'
repositories {
google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.novoda:bintray-release:0.9.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
43 changes: 43 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,46 @@ android.useAndroidX=true
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official


# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

POM_NAME=Vita
POM_ARTIFACT_ID=vita
POM_PACKAGING=aar

VERSION_NAME=1.0.0
VERSION_CODE=2
GROUP=com.androidisland.arch

POM_DESCRIPTION=Vita is a light and simple library that helps you to share ViewModel between fragments and even activities! Also you can create ViewModels that are available all over the application!
POM_URL=https://github.com/FarshadTahmasbi/Vita
POM_SCM_URL=https://github.com/FarshadTahmasbi/Vita
POM_SCM_CONNECTION=scm:git@github.com:FarshadTahmasbi/Vita.git
POM_SCM_DEV_CONNECTION=scm:git@github.com:FarshadTahmasbi/Vita.git
POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=FarshadTahmasbi
POM_DEVELOPER_NAME=Farshad Tahmasbi

org.gradle.daemon=true


2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip
38 changes: 10 additions & 28 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,35 +1,17 @@
apply plugin: 'com.novoda.bintray-release'
apply plugin: 'com.android.library'
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-android'
apply from: '../maven-push.gradle'

def _versionName = '0.1.0'
def _versionCode = 1
def _groupId = 'com.androidisland.arch'
def _artifactId = 'vita'
def _userOrg = 'farshad-tmb'
def _repoName = 'Vita'
def _desc = 'An extension for android ViewModel'
def _git = 'https://github.com/FarshadTahmasbi/Vita'

publish {
userOrg = _userOrg
repoName = _repoName
groupId = _groupId
artifactId = _artifactId
publishVersion = _versionName
desc = _desc
website = _git
}

def _versionName = '1.0.0'
def _versionCode = 2

android {
compileSdkVersion 29
compileSdkVersion 30

defaultConfig {
minSdkVersion 15
targetSdkVersion 29
targetSdkVersion 30
versionCode _versionCode
versionName _versionName

Expand All @@ -49,12 +31,12 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'androidx.appcompat:appcompat:1.3.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation "androidx.lifecycle:lifecycle-extensions:$arch_lifecycle_version"
implementation "androidx.core:core-ktx:1.0.2"
implementation "androidx.core:core-ktx:1.5.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
repositories {
Expand Down
Loading

0 comments on commit 1f54ac1

Please sign in to comment.