Skip to content

Commit 8e494fb

Browse files
authored
Merge pull request #31 from studyplus/update
Update libs, code, license
2 parents ffd4c00 + c91846b commit 8e494fb

File tree

35 files changed

+40
-609
lines changed

35 files changed

+40
-609
lines changed

.github/workflows/pr_check.yml

Lines changed: 18 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,24 @@ jobs:
66
danger:
77
runs-on: ubuntu-latest
88
steps:
9-
- name: Checkout
10-
uses: actions/[email protected]
9+
- uses: actions/checkout@v2
1110

12-
- name: Bundler Cache
13-
uses: actions/[email protected]
11+
- uses: actions/cache@v2
1412
with:
15-
path: vendor/bundle
16-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
13+
path: |
14+
~/.gradle/caches
15+
~/.gradle/wrapper
16+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
1717
restore-keys: |
18-
${{ runner.os }}-gems-
19-
- name: Setup Ruby for use with actions
20-
uses: actions/[email protected]
21-
with:
22-
ruby-version: '2.7'
23-
- name: Install Danger
24-
run: |
25-
gem install bundler
26-
bundle config set path 'vendor/bundle'
27-
bundle config set clean 'true'
28-
bundle check || bundle install --jobs 4 --retry 3
29-
30-
- name: Gradle dist Cache
31-
uses: actions/[email protected]
32-
with:
33-
path: ~/.gradle/wrapper
34-
key: ${{ runner.os }}-dist-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
35-
- name: Gradle dependencies Cache
36-
uses: actions/[email protected]
37-
with:
38-
path: ~/.gradle/caches
39-
key: ${{ runner.os }}-v1-gradle-${{ hashFiles('./build.gradle') }}-${{ hashFiles('**/build.gradle') }}
40-
restore-keys: |
41-
${{ runner.os }}-v1-gradle-${{ hashFiles('./build.gradle') }}-
42-
${{ runner.os }}-v1-gradle-
18+
${{ runner.os }}-gradle-
4319
- name: Download Dependencies
4420
run: |
4521
./gradlew androidDependencies --no-daemon
4622
23+
- uses: ruby/setup-ruby@v1
24+
with:
25+
ruby-version: 2.7.2
26+
bundler-cache: true
4727
- name: Run danger
4828
env:
4929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -52,21 +32,16 @@ jobs:
5232
unit_test:
5333
runs-on: ubuntu-latest
5434
steps:
55-
- name: Checkout
56-
uses: actions/[email protected]
35+
- uses: actions/checkout@v2
5736

58-
- name: Gradle dist Cache
59-
uses: actions/[email protected]
60-
with:
61-
path: ~/.gradle/wrapper
62-
key: ${{ runner.os }}-dist-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
63-
- name: Gradle dependencies Cache
64-
uses: actions/[email protected]
37+
- uses: actions/cache@v2
6538
with:
66-
path: ~/.gradle/caches
67-
key: ${{ runner.os }}-v1-gradle-${{ hashFiles('**/build.gradle') }}
39+
path: |
40+
~/.gradle/caches
41+
~/.gradle/wrapper
42+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
6843
restore-keys: |
69-
${{ runner.os }}-v1-gradle-
44+
${{ runner.os }}-gradle-
7045
- name: Download Dependencies
7146
run: |
7247
./gradlew androidDependencies --no-daemon

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Studyplus, Inc.
3+
Copyright (c) 2021 Studyplus, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,13 @@ Studyplus.instance.postRecord(this@MainActivity, record,
9494
### More
9595

9696
- See also [actual examples with Kotlin](https://github.com/studyplus/Studyplus-Android-SDK/blob/master/sdk-example-kt/src/main/java/jp/studyplus/android/sdk_example_kt/MainActivity.kt).
97-
- See also [actual examples with Java](https://github.com/studyplus/Studyplus-Android-SDK/blob/master/sdk-example-java/src/main/java/jp/studyplus/android/sdk_example_java/MainActivity.java).
9897

9998
### License
10099

101100
```text
102101
MIT License
103102
104-
Copyright (c) 2020 Studyplus, Inc.
103+
Copyright (c) 2021 Studyplus, Inc.
105104
106105
Permission is hereby granted, free of charge, to any person obtaining a copy
107106
of this software and associated documentation files (the "Software"), to deal

build.gradle

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,19 @@
22

33
buildscript {
44
ext {
5-
kotlin_version = '1.3.72'
5+
kotlin_version = '1.4.30'
66
}
77
ext.versions = [
8-
'compileSdk' : 29,
9-
'minSdk' : 21,
10-
'targetSdk' : 29,
11-
'annotation' : '1.1.0',
12-
'appcompat' : '1.1.0',
13-
'constraintLayout': '1.1.3',
14-
'junit' : '4.13',
15-
'robolectric' : '4.3.1'
8+
'compileSdk': 29,
9+
'minSdk' : 21,
10+
'targetSdk' : 29,
1611
]
1712
repositories {
1813
google()
1914
jcenter()
2015
}
2116
dependencies {
22-
classpath 'com.android.tools.build:gradle:4.0.0'
17+
classpath 'com.android.tools.build:gradle:4.1.2'
2318
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
2419
}
2520
}
@@ -28,7 +23,6 @@ allprojects {
2823
repositories {
2924
google()
3025
jcenter()
31-
maven { url 'https://jitpack.io' }
3226
}
3327
}
3428

gradle.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,5 @@ org.gradle.jvmargs=-Xmx1536m
1515
# Android operating system, and which are packaged with your app's APK
1616
# https://developer.android.com/topic/libraries/support-library/androidx-rn
1717
android.useAndroidX=true
18-
# Automatically convert third-party libraries to use AndroidX
19-
android.enableJetifier=true
2018
# Kotlin code style for this project: "official" or "obsolete":
2119
kotlin.code.style=official
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri May 29 10:30:00 JST 2020
1+
#Wed Feb 24 17:00:00 JST 2021
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

sdk-example-java/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

sdk-example-java/build.gradle

Lines changed: 0 additions & 45 deletions
This file was deleted.

sdk-example-java/proguard-rules.pro

Lines changed: 0 additions & 21 deletions
This file was deleted.

sdk-example-java/src/androidTest/java/jp/studyplus/android/sdk_example_java/ExampleInstrumentedTest.java

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)