stanwood/framework-core-android


UI, databinding and general purpose stuff we commonly use in stanwood Android projects

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.stanwood:core_framework_android:0.4'
	}
	dependencies {
		implementation("com.github.stanwood:core_framework_android:0.4")
	}
	<dependency>
	    <groupId>com.github.stanwood</groupId>
	    <artifactId>core_framework_android</artifactId>
	    <version>0.4</version>
	</dependency>

                            
    libraryDependencies += "com.github.stanwood" % "core_framework_android" % "0.4"
        
        

                            
    :dependencies [[com.github.stanwood/core_framework_android "0.4"]]
        
        

Readme


Release API

Stanwood Core Framework (Android)

This set of general purpose utilities and base classes is used throughout the various projects we do at stanwood.

Import

The stanwood Core Framework is hosted on JitPack. Therefore you can simply import the modules by adding

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

to your project's build.gradle.

Then add this to you app's build.gradle:

dependencies {
    // aar version available as well
    implementation 'com.github.stanwood.Core_Framework_android:framework-base:<insert latest version here>'
    implementation 'com.github.stanwood.Core_Framework_android:framework-ui:<insert latest version here>'
    implementation 'com.github.stanwood.Core_Framework_android:framework-databinding:<insert latest version here>'
}

Modules

There are three modules: UI, data binding and general purpose (base) classes. All can be imported separately.

Base

This module contains a collection of general purpose classes like an IntentCreator for common actions, or a helper class for hiding the on-screen keyboard.

UI

The UI module mostly contains ViewGroups for easy View composition and positioning.

Databinding

Currently the Databinding module mostly contains classes for performing data binding with RecyclerViews and ViewPagers. You can find appropriate adapters as well as ViewHolders here.