Skip to content

Commit a3105c9

Browse files
authored
Merge pull request #52 from irgaly/2.1.0
version 2.1.0: Android12 対応、Kotlin 1.5.30 対応、AGP 7.0.3 更新
2 parents 43606f3 + 592866b commit a3105c9

8 files changed

Lines changed: 16 additions & 142 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ jobs:
1010
- checkout
1111
- restore_cache:
1212
key: jars-{{ checksum "build.gradle" }}-{{ checksum "debot/build.gradle" }}
13-
# - run:
14-
# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
15-
# command: sudo chmod +x ./gradlew
1613
- run:
1714
name: Download Dependencies
1815
command: ./gradlew androidDependencies

build.gradle

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
1-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
apply from: 'dependencies.gradle'
3-
41
buildscript {
5-
ext.kotlin_version = '1.4.31'
6-
ext.library_version = "2.0.7"
7-
ext.bintray_user = project.hasProperty("BINTRAY_USER") ? BINTRAY_USER : ""
8-
ext.bintray_key = project.hasProperty('BINTRAY_KEY') ? BINTRAY_KEY : ""
2+
ext.library_version = "2.1.0"
93
repositories {
104
google()
115
mavenCentral()
126
}
137
dependencies {
14-
classpath 'com.android.tools.build:gradle:7.0.1'
15-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
16-
// novoda bintray release do not support gradle 6.5
17-
//classpath "com.novoda:bintray-release:0.9.2"
18-
//classpath "com.github.panpf.bintray-publish:bintray-publish:1.0.0"
19-
//classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.18.3"
20-
// NOTE: Do not place your application dependencies here; they belong
21-
// in the individual module build.gradle files
8+
classpath 'com.android.tools.build:gradle:7.0.3'
9+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30"
2210
}
2311
}
2412

debot-no-op/build.gradle

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,26 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
3-
//apply plugin: 'com.github.panpf.bintray-publish'
43
apply plugin: 'maven-publish'
54

65
android {
76
compileSdkVersion 31
8-
97
defaultConfig {
108
minSdkVersion 16
119
targetSdkVersion 31
12-
versionCode 1
13-
versionName "1.0"
1410
}
1511
buildTypes {
1612
release {
1713
minifyEnabled false
1814
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
1915
}
2016
}
21-
22-
compileOptions {
23-
encoding = 'UTF-8'
24-
sourceCompatibility JavaVersion.VERSION_1_7
25-
targetCompatibility JavaVersion.VERSION_1_7
26-
}
2717
packagingOptions {
2818
exclude 'LICENSE.txt'
2919
}
3020
}
3121

32-
def siteUrl = 'https://github.com/tomoima525/debot'
33-
34-
/*
35-
publish {
36-
userOrg = 'tomoima525'
37-
groupId = 'com.tomoima.debot'
38-
artifactId = 'debot-no-op'
39-
bintrayUser = bintray_user
40-
bintrayKey = bintray_key
41-
publishVersion = library_version
42-
desc = 'A simple Android library to create Debugging menu.'
43-
website = siteUrl
44-
licences = ['Apache-2.0']
45-
}
46-
*/
47-
48-
tasks.withType(Javadoc) {
49-
enabled = false
50-
}
51-
5222
dependencies {
53-
implementation fileTree(dir: 'libs', include: ['*.jar'])
54-
implementation 'androidx.appcompat:appcompat:1.0.0'
55-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
23+
implementation 'androidx.appcompat:appcompat:1.3.1'
5624
}
5725

5826
afterEvaluate {
@@ -67,5 +35,3 @@ afterEvaluate {
6735
}
6836
}
6937
}
70-
71-
//apply from: rootProject.file('gradle/gradle-artifactory-upload.gradle')

debot-sample/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 31
5-
65
defaultConfig {
76
applicationId "com.tomoima.debot.sample"
87
minSdkVersion 16
@@ -19,9 +18,8 @@ android {
1918
}
2019

2120
dependencies {
22-
implementation fileTree(dir: 'libs', include: ['*.jar'])
23-
implementation 'androidx.appcompat:appcompat:1.1.0'
24-
// implementation "com.github.tomoima525.debot:debot:$library_version"
21+
implementation 'androidx.appcompat:appcompat:1.3.1'
22+
//implementation "com.github.tomoima525.debot:debot:$library_version"
2523
implementation project(':debot')
2624
// Replace with debot-no-op for looking no-op sample
2725
//compile project(':debot-no-op')

debot-sample/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
android:theme="@style/AppTheme" >
1515
<activity
1616
android:name="com.tomoima.debot.sample.activity.MainActivity"
17-
android:exported="true"
18-
android:label="@string/app_name" >
17+
android:label="@string/app_name"
18+
android:exported="true">
1919
<intent-filter>
2020
<action android:name="android.intent.action.MAIN" />
2121

debot/build.gradle

Lines changed: 8 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
3-
//apply plugin: 'com.github.panpf.bintray-publish'
43
apply plugin: 'maven-publish'
54

65
android {
76
compileSdkVersion 31
8-
97
defaultConfig {
108
minSdkVersion 16
119
targetSdkVersion 31
12-
versionCode 1
13-
versionName "1.0"
1410
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1511
}
1612
buildTypes {
@@ -19,60 +15,25 @@ android {
1915
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2016
}
2117
}
22-
23-
compileOptions {
24-
encoding = 'UTF-8'
25-
sourceCompatibility JavaVersion.VERSION_1_7
26-
targetCompatibility JavaVersion.VERSION_1_7
27-
}
2818
packagingOptions {
2919
exclude 'LICENSE.txt'
3020
}
3121
}
3222

3323
dependencies {
34-
implementation fileTree(dir: 'libs', include: ['*.jar'])
35-
implementation 'androidx.appcompat:appcompat:1.2.0'
36-
implementation "com.squareup:seismic:$versions.seismic"
24+
implementation 'androidx.appcompat:appcompat:1.3.1'
25+
implementation "com.squareup:seismic:1.0.3"
3726

38-
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
39-
androidTestImplementation 'androidx.test:rules:1.1.1'
40-
androidTestImplementation "org.hamcrest:hamcrest-library:$versions.hamcrest"
41-
androidTestImplementation("org.mockito:mockito-core:$versions.mockitoCore") {
27+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
28+
androidTestImplementation 'androidx.test:rules:1.4.0'
29+
androidTestImplementation "org.hamcrest:hamcrest-library:1.3"
30+
androidTestImplementation("org.mockito:mockito-core:3.9.0") {
4231
exclude group: 'org.hamcrest', module: 'hamcrest-core'
4332
}
44-
androidTestImplementation "com.linkedin.dexmaker:dexmaker-mockito:$versions.dexmakerMokito"
45-
androidTestImplementation "org.mockito.kotlin:mockito-kotlin:$versions.mockitoKotlin"
46-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
47-
}
48-
49-
def siteUrl = 'https://github.com/tomoima525/debot'
50-
51-
/*
52-
publish {
53-
userOrg = 'tomoima525'
54-
groupId = 'com.tomoima.debot'
55-
artifactId = 'debot'
56-
bintrayUser = bintray_user
57-
bintrayKey = bintray_key
58-
publishVersion = library_version
59-
desc = 'A simple Android library to create Debugging menu.'
60-
website = siteUrl
61-
licences = ['Apache-2.0']
33+
androidTestImplementation "com.linkedin.dexmaker:dexmaker-mockito:2.28.1"
34+
androidTestImplementation "org.mockito.kotlin:mockito-kotlin:3.2.0"
6235
}
63-
*/
6436

65-
// Avoid Kotlin docs error
66-
tasks.withType(Javadoc) {
67-
enabled = false
68-
}
69-
70-
repositories {
71-
mavenCentral()
72-
}
73-
74-
75-
// For JFrog artifactory upload
7637
afterEvaluate {
7738
publishing {
7839
publications {
@@ -85,5 +46,3 @@ afterEvaluate {
8546
}
8647
}
8748
}
88-
89-
//apply from: rootProject.file('gradle/gradle-artifactory-upload.gradle')

dependencies.gradle

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

gradle/gradle-artifactory-upload.gradle

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

0 commit comments

Comments
 (0)