This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from hidden-dimensions/project-setup
Project setup
- Loading branch information
Showing
23 changed files
with
2,099 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Dynamic Libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Static Libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
# mac files | ||
.DS_Store | ||
|
||
# Build Directory | ||
.build | ||
|
||
# Output Directory | ||
lib/ | ||
bin/ | ||
|
||
# Visual Studio | ||
.vs/ | ||
*.vcxproj.user | ||
*.idb | ||
*.ilk | ||
*.pdb | ||
|
||
# xcode files | ||
project.xcworkspace | ||
xcuserdata | ||
|
||
# Android files | ||
*.apk | ||
*.ap_ | ||
*.dex | ||
*.class | ||
bin/ | ||
gen/ | ||
out/ | ||
build/ | ||
.gradle/ | ||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
# Log Files | ||
*.log | ||
# Android Studio Navigation editor temp files | ||
.navigation/ | ||
# Android Studio captures folder | ||
captures/ | ||
# Intellij | ||
*.iml | ||
.idea/workspace.xml | ||
.idea/tasks.xml | ||
.idea/gradle.xml | ||
.idea/dictionaries | ||
.idea/libraries | ||
# Keystore files | ||
*.jks | ||
# External native build folder generated in Android Studio 2.2 and later | ||
.externalNativeBuild | ||
# Google Services (e.g. APIs or Firebase) | ||
google-services.json |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
branches: | ||
only: | ||
- master | ||
matrix: | ||
include: | ||
# android-kotlin | ||
- language: android | ||
jdk: oraclejdk8 | ||
android: | ||
components: | ||
- tools | ||
- platform-tools | ||
- tools | ||
- build-tools-27.0.3 | ||
# NOTE: https://stackoverflow.com/questions/47719282/i-cant-build-android-27-tool-27-0-2-with-travis-ci/47726910#47726910 | ||
# - android-27 | ||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/ | ||
cache: | ||
directories: | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
before_install: | ||
- yes | sdkmanager "platforms;android-27" | ||
script: | ||
- ./gradlew ktlint assembleDebug | ||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Oursky Widgets Library | ||
> Commonly used widgets for Android | ||
![android](https://img.shields.io/badge/android-kotlin-blue.svg) | ||
[![Build Status](https://travis-ci.org/oursky/android-widgets.svg?branch=master)](https://travis-ci.org/oursky/android-widgets) | ||
|
||
This repository contain some useful and generic widgets. The widgets is implemented in kotlin but is also usable for Java. | ||
|
||
### Usage | ||
Edit top level `build.gradle` and add `maven { url 'https://jitpack.io' }`, for example: | ||
``` | ||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
maven { url 'https://jitpack.io' } | ||
} | ||
} | ||
``` | ||
Next, edit `build.gradle` under your app, add to dependencies: | ||
``` | ||
dependencies { | ||
... | ||
implementation 'com.github.oursky:android-widgets:0.0.1' | ||
} | ||
``` | ||
Replace `0.0.1` with the latest version. For a list of version, check the [releases](https://github.com/oursky/android-widgets/releases) | ||
|
||
Now you should be able to use the widgets directly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
|
||
buildscript { | ||
ext.kotlin_version = '1.2.21' | ||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:3.0.1' | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0' | ||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
maven { url "https://jitpack.io" } | ||
} | ||
} | ||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# 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. | ||
org.gradle.jvmargs=-Xmx1536m | ||
|
||
# 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 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Tue Feb 27 21:26:41 CST 2018 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip |
Oops, something went wrong.