Skip to content

Commit c29ff2e

Browse files
committed
Merge branch 'master' of github.com:studyplus/Studyplus-Android-SDK-V2
2 parents 81274a7 + 9e36b9b commit c29ff2e

File tree

83 files changed

+2328
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2328
-0
lines changed

.circleci/config.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
version: 2.1
2+
executors:
3+
default:
4+
docker:
5+
- image: circleci/android:api-27
6+
environment:
7+
JAVA_OPTS: -Xmx3200m
8+
9+
commands:
10+
setup_android:
11+
steps:
12+
- restore_cache:
13+
key: v1-gradle-cache-{{ checksum "build.gradle" }}-{{ checksum "studyplus-android-sdk2/build.gradle" }}
14+
- run:
15+
name: Download Dependencies
16+
command: ./gradlew androidDependencies
17+
- save_cache:
18+
paths:
19+
- ~/.gradle
20+
key: v1-gradle-cache-{{ checksum "build.gradle" }}-{{ checksum "studyplus-android-sdk2/build.gradle" }}
21+
unit_test:
22+
steps:
23+
- run:
24+
name: Run Tests
25+
command: ./gradlew studyplus-android-sdk2:lint studyplus-android-sdk2:test
26+
- store_artifacts:
27+
path: studyplus-android-sdk2/build/reports
28+
destination: reports
29+
- store_test_results:
30+
path: studyplus-android-sdk2/build/test-results
31+
32+
setup_bundle:
33+
steps:
34+
- restore_cache:
35+
key: v1-danger-cache-{{ checksum "Gemfile.lock" }}
36+
- run:
37+
name: Bundle install for Danger and fastlane
38+
command: bundle check --path vendor/bundle || bundle install --jobs=4 --retry=3 --path vendor/bundle --clean
39+
- save_cache:
40+
paths:
41+
- vendor/bundle
42+
key: v1-danger-cache-{{ checksum "Gemfile.lock" }}
43+
run_danger:
44+
steps:
45+
- run:
46+
name: Run danger
47+
command: bundle exec danger
48+
49+
jobs:
50+
unit_test:
51+
executor:
52+
name: default
53+
steps:
54+
- checkout
55+
- setup_android
56+
- unit_test
57+
check_pr:
58+
executor:
59+
name: default
60+
steps:
61+
- checkout
62+
- setup_android
63+
- setup_bundle
64+
- run_danger
65+
66+
workflows:
67+
pull_request:
68+
jobs:
69+
- unit_test
70+
- check_pr

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
※日本語での起票を歓迎します
11+
12+
**バグの詳細**
13+
A clear and concise description of what the bug is.
14+
15+
**再現手順**
16+
Steps to reproduce the behavior:
17+
1. Go to '...'
18+
2. Click on '....'
19+
3. Scroll down to '....'
20+
4. See error
21+
22+
**期待される動作**
23+
A clear and concise description of what you expected to happen.
24+
25+
**スクリーンショット**
26+
If applicable, add screenshots to help explain your problem.
27+
28+
**環境 (問題が再現する環境について、下記の項目を埋めてください):**
29+
- OS: [e.g. Android 8.1]
30+
- Device: [e.g. Nexus 5x]
31+
- SDK Version [e.g. 2.1.0]
32+
33+
**(Option)補足項目**
34+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
※日本語での起票を歓迎します
11+
12+
**機能が必要になった背景を記載してください**
13+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
14+
15+
**どの様な機能が欲しいかを記載してください**
16+
A clear and concise description of what you want to happen.
17+
18+
**(Option)補足項目**
19+
Add any other context or screenshots about the feature request here.

.gitignore

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Original
2+
*.iml
3+
.gradle
4+
/local.properties
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
.DS_Store
9+
/build
10+
/captures
11+
.externalNativeBuild
12+
13+
# Built application files
14+
*.apk
15+
*.ap_
16+
17+
# Files for the ART/Dalvik VM
18+
*.dex
19+
20+
# Java class files
21+
*.class
22+
23+
# Generated files
24+
bin/
25+
gen/
26+
out/
27+
28+
# Gradle files
29+
.gradle/
30+
build/
31+
32+
# Local configuration file (sdk path, etc)
33+
local.properties
34+
35+
# Proguard folder generated by Eclipse
36+
proguard/
37+
38+
# Log Files
39+
*.log
40+
41+
# Android Studio Navigation editor temp files
42+
.navigation/
43+
44+
# Android Studio captures folder
45+
captures/
46+
47+
# IntelliJ
48+
*.iml
49+
.idea/
50+
51+
# Keystore files
52+
# Uncomment the following line if you do not want to check your keystore files in.
53+
#*.jks
54+
55+
# External native build folder generated in Android Studio 2.2 and later
56+
.externalNativeBuild
57+
58+
# Bundle
59+
.bundle/
60+
vendor/bundle

Dangerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
####
2+
#
3+
# github comment settings
4+
#
5+
####
6+
github.dismiss_out_of_range_messages
7+
8+
####
9+
#
10+
# for PR
11+
#
12+
####
13+
# Make it more obvious that a PR is a work in progress and shouldn't be merged yet
14+
warn("PR is classed as Work in Progress") if github.pr_title.include? "[WIP]"
15+
16+
# Warn when there is a big PR
17+
warn("Big PR") if git.lines_of_code > 500
18+
19+
# Don't let testing shortcuts get into master by accident
20+
fail("fdescribe left in tests") if `grep -r fdescribe specs/ `.length > 1
21+
fail("fit left in tests") if `grep -r fit specs/ `.length > 1
22+
23+
# Warn when PR has no assignees
24+
warn("A pull request must have some assignees") if github.pr_json["assignee"].nil?
25+
26+
####
27+
#
28+
# Android Lint
29+
#
30+
####
31+
android_lint.gradle_task = "studyplus-android-sdk2:lint"
32+
android_lint.report_file = "studyplus-android-sdk2/build/reports/lint-results.xml"
33+
android_lint.filtering = true
34+
android_lint.lint(inline_mode: true)

Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
6+
7+
gem "danger"
8+
gem 'danger-android_lint'

Gemfile.lock

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.5.2)
5+
public_suffix (>= 2.0.2, < 4.0)
6+
ansi (1.5.0)
7+
ast (2.4.0)
8+
claide (1.0.2)
9+
claide-plugins (0.9.2)
10+
cork
11+
nap
12+
open4 (~> 1.3)
13+
colored2 (3.1.2)
14+
cork (0.3.0)
15+
colored2 (~> 3.1)
16+
danger (6.0.6)
17+
claide (~> 1.0)
18+
claide-plugins (>= 0.9.2)
19+
colored2 (~> 3.1)
20+
cork (~> 0.1)
21+
faraday (~> 0.9)
22+
faraday-http-cache (~> 1.0)
23+
git (~> 1.5)
24+
kramdown (~> 2.0)
25+
kramdown-parser-gfm (~> 1.0)
26+
no_proxy_fix
27+
octokit (~> 4.7)
28+
terminal-table (~> 1)
29+
danger-android_lint (0.0.7)
30+
danger-plugin-api (~> 1.0)
31+
oga
32+
danger-plugin-api (1.0.0)
33+
danger (> 2.0)
34+
faraday (0.15.4)
35+
multipart-post (>= 1.2, < 3)
36+
faraday-http-cache (1.3.1)
37+
faraday (~> 0.8)
38+
git (1.5.0)
39+
kramdown (2.1.0)
40+
kramdown-parser-gfm (1.0.1)
41+
kramdown (~> 2.0)
42+
multipart-post (2.0.0)
43+
nap (1.1.0)
44+
no_proxy_fix (0.1.2)
45+
octokit (4.14.0)
46+
sawyer (~> 0.8.0, >= 0.5.3)
47+
oga (2.15)
48+
ast
49+
ruby-ll (~> 2.1)
50+
open4 (1.3.4)
51+
public_suffix (3.0.3)
52+
ruby-ll (2.1.2)
53+
ansi
54+
ast
55+
sawyer (0.8.1)
56+
addressable (>= 2.3.5, < 2.6)
57+
faraday (~> 0.8, < 1.0)
58+
terminal-table (1.8.0)
59+
unicode-display_width (~> 1.1, >= 1.1.1)
60+
unicode-display_width (1.5.0)
61+
62+
PLATFORMS
63+
ruby
64+
65+
DEPENDENCIES
66+
danger
67+
danger-android_lint
68+
69+
BUNDLED WITH
70+
2.0.1

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Studyplus, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)