• This repository has been archived on 11/Feb/2022
  • Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    Java
  • License
    Other
  • Created over 11 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Never again need a .utils. package yur scurvy sea dogs!

🛑 THIS REPOSITORY IS OFFICIALLY NO LONGER UNDER MAINTENANCE since 10/02/2022 🛑

notils CI status Download from Bintray Apache 2.0 Licence

Never again need a .utils. package yur scurvy sea dogs!

Notils comes in two modules - notils-java contains classes that don't depend on anything from the Android SDK, while notils-android contains classes that do.

Description

notils contains a set of common classes that we use in our projects:

  • AndroidUtils, for showing the keyboard, checking running services, etc.
  • ClassCaster - to help with listeners between Activitys & Fragments
  • No need to cast when finding Fragments
  • No need to double type your types when creating collections
  • Simple Fade animations in & out done for you
  • Simple Log to give to give automatic details of where the Log executed
  • StrictMode Management - enable strict mode in one line
  • WebViews, allowing custom loading of different scenarios (raw assets, external urls)
  • ToastDisplayers for saner displaying of Toast notifications
  • SimpleDateFormatThreadSafe allowing you to use date formatting from multiple threads
  • DeveloperError - custom exceptions for explicit declaration / faster feedback when something goes wrong
  • SimpleTextWatcher - simple implementation of android.text.TextWatcher with stub implementations of each method
  • QueryUtils - easily create placeholders for ContentResolver operations selection
  • DeviceDetection - to detect whether the user has Amazon or Intel x86 devices.
  • AndroidVersion - to check the Android version in a nicer way.

Adding to your project

To start using this library, add these lines to the build.gradle of your project:

repositories {
    jcenter()
}

dependencies {
    compile 'com.novoda:notils-java:3.1.5'
    compile 'com.novoda:notils-android:3.1.5'
}

Simple usage

Here are a few examples.

  • Use the Views class to avoid casting your views over and over!
UserFragment userFragment = Fragments.findFragmentById(fragmentmanager, R.id.userFragment);
  • Use DeveloperError to let other devs know a problem in the code or prevent potential issues:
switch (menuOptionId) {
    case R.id.menu_take_picture:
        // Start the camera...
    break;
    case R.id.menu_from_gallery:
        // Open the gallery...
    break;
    default:
        throw new DeveloperError("Unhandled case in switch statement!");
}
  • Object-oriented Toasts!
Toaster toaster = new Toaster(context);
toaster.popToast("Good morning!"); // Short toast
toaster.popBurntToast("Good night!"); // Long toast
toaster.dropInBath(); // Cancells all active toasts this toaster created
  • Check the javadoc for more! The package structure allows you to easily see what's in each package.

Links

Here are a list of useful links:

  • We always welcome people to contribute new features or bug fixes, here is how
  • If you have a problem check the Issues Page first to see if we are working on it
  • For further usage or to delve more deeply checkout the Project Wiki
  • Looking for community help, browse the already asked Stack Overflow Questions or use the tag: support-notils when posting a new question

More Repositories

1

android-demos

Examples of Android applications
Java
1,987
star
2

bintray-release

A helper for releasing from gradle up to bintray
Groovy
1,852
star
3

bonfire-firebase-sample

An app to discuss your favourite emojis. This is a sample app built with Firebase.
Java
544
star
4

merlin

Observes network connection status & gives callbacks
Java
543
star
5

spikes

Where ideas & concepts are born & incubated
Java
542
star
6

download-manager

A library that handles long-running downloads, handling the network interactions and retrying downloads automatically after failures
Java
484
star
7

gradle-static-analysis-plugin

Easy setup of static analysis tools for Android and Java projects.
Groovy
405
star
8

rxpresso

Easy Espresso UI testing for Android applications using RxJava.
Java
363
star
9

gradle-android-command-plugin

Handy commands for testing Android on CI
Groovy
357
star
10

sqlite-provider

Extended SQLite functionality for Android
Java
302
star
11

no-player

Simplified Player wrapper for MediaPlayer and ExoPlayer
Java
180
star
12

simple-chrome-custom-tabs

Easy integration of Chrome Custom Tabs into your project. Just connect it to your activity, and navigate to the external website styling your tab as you wish.
Java
129
star
13

gradle-build-properties-plugin

Keep your secrets secret. External build properties support for your Gradle scripts.
Groovy
110
star
14

ios-demos

Examples of ios applications http://www.novoda.com/blog
Swift
95
star
15

accessibilitools

UI tools to help make your Android app accessible.
Java
81
star
16

dojos

This is where the Novoda team do all their hacking
Java
76
star
17

simple-easy-xml-parser

Simple XML Parsing into Domain Objects
Java
69
star
18

sqlite-analyzer

Code generation for Java/Android database access.
Java
65
star
19

spritz

Spritz is an Android library to seamlessly trigger a Lottie animation
Java
62
star
20

espresso-support

Includes custom rules for testing Views in isolation and running tests with Google TalkBack enabled.
Java
60
star
21

novoda

Common things for all Novoda's open source projects
Java
37
star
22

view-pager-adapter

A simple implementation of PagerAdapter that supports Views.
Java
29
star
23

aosp.changelog.to

Generates a change log between different aosp tags. Based on the wonderful work of @alsutton
HTML
15
star
24

droidcon-booth

Novoda will be showing you CI in action at our Droidcon London booth!
Java
14
star
25

landing-strip

Your simple sliding viewpager tab strip: a landing strip without the fluff!
Java
13
star
26

dashboards

The dashboards we have running in our offices!
JavaScript
10
star
27

novoda.github.io

GitHub open source landing page
SCSS
10
star
28

drop-cap

Custom DropCap view without Spans
Java
10
star
29

public-mvn-repo

Novoda Public Maven Central Repository
7
star
30

github-reports

Github reports for a given organisation
Java
5
star
31

ncu

Novoda Craft University
3
star
32

peepz

Java
3
star
33

eslint-config-novoda

JavaScript
3
star
34

storage-path-finder

Library to perform the heavy lifting when attempting to find internal / external paths for primary and secondary storage.
Java
3
star
35

multiplatform-playground

A repository to play and learn about different multi-platform technologies
TypeScript
2
star
36

dashboard-plugins

A collection of plugins for the dashboard
JavaScript
2
star
37

react-native-workshop

JavaScript
1
star
38

dreams

A REST API using Stable Diffusion for Text to Image inference
Shell
1
star
39

github-slack-action

Simple Github Action to post a message in Slack
Shell
1
star