sarigue/ActiveAndroidPlus


ActiveAndroid with more elements ! http://www.activeandroid.com

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.sarigue:activeandroidplus:'
	}
	dependencies {
		implementation("com.github.sarigue:activeandroidplus:")
	}
	<dependency>
	    <groupId>com.github.sarigue</groupId>
	    <artifactId>activeandroidplus</artifactId>
	    <version></version>
	</dependency>

                            
    libraryDependencies += "com.github.sarigue" % "activeandroidplus" % ""
        
        

                            
    :dependencies [[com.github.sarigue/activeandroidplus ""]]
        
        

Readme


Build Status Stories in Ready

ActiveAndroidPlus

Fork from ActiveAndroidRx (vicpinm repository) version 3.1.5

  • ActiveAndroidRx : Reactive queries with SQLBrite from Square
  • UPDATE onConflictAction
  • in() andIn() orIn() methods in From class (in() and andIn() are same method)
  • Manipulate last transaction in static mode

Usage

ActiveAndroidRx:

RxSelect.from(MyEntity.class).where(...).execute().subscribe(myEntitiesList -> ...);

UPDATE OnConflictAction:

@Column(... onConlictAction=ConflictAction.UPDATE)

Transaction

ActiveAndroid.beginTransaction();         // Start a new transaction. Return a SQLBrite.Transaction
ActiveAndroid.commitTransaction();        // Mark last transaction as successful and end it one
ActiveAndroid.setTransactionSuccessful(); // Mark last transaction as successful
ActiveAndroid.endTransaction();           // End last transaction (rollback if no marked as successful)
ActiveAndroid.getLastTransaction;         // Get last SQLBrite.Transaction if not ended

Download

Grab via Gradle:

groovy
repositories {
    maven { url "https://jitpack.io" }
}

compile 'com.github.sarigue:activeandroidplus:master'

or

compile 'com.github.sarigue:activeandroidplus:(commit ID)'

Documentation

License

Apache Version 2.0

Copyright (C) 2010 Michael Pardo

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.

Contributing

Please fork this repository and contribute back using pull requests.

Any contributions, large or small, major features, bug fixes, unit tests are welcomed and appreciated but will be thoroughly reviewed and discussed.

You can run the test suite by following the instructions on the Running the Test Suite Wiki page.

Author

Francois Raoult | http://francois.raoult.name

Víctor Manuel Pineda Murcia | http://vicpinm.github.io/ActiveAndroidRx/

Original Project: Michael Pardo | www.michaelpardo.com | www.activeandroid.com