Skip to content
This repository was archived by the owner on Jun 22, 2022. It is now read-only.

Commit 470a01a

Browse files
committed
Migrate from JCenter to MavenCentral and update to 1.2.9
1 parent 0d1034e commit 470a01a

9 files changed

+154
-286
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ Download
2828
====
2929
Gradle
3030
```groovy
31-
implementation 'com.akexorcist:localization:1.2.8'
31+
implementation 'com.akexorcist:localization:1.2.9'
3232
```
3333

3434
(Optional) You can exclude `androidx.appcompat:appcompat`, if your project does not use AppCompat.
3535
```groovy
36-
implementation ('com.akexorcist:localization:1.2.8') {
36+
implementation ('com.akexorcist:localization:1.2.9') {
3737
exclude group: 'androidx.core', module: 'core'
3838
}
3939
```

app/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ apply plugin: 'kotlin-kapt'
44
apply plugin: 'dagger.hilt.android.plugin'
55

66
android {
7-
compileSdkVersion Integer.parseInt(project.ANDROID_COMPILE_SDK_VERSION)
7+
compileSdkVersion project.compileSdkVersion
88

99
defaultConfig {
1010
applicationId "com.akexorcist.localizationapp"
1111
minSdkVersion 19
12-
targetSdkVersion Integer.parseInt(project.ANDROID_TARGET_SDK_VERSION)
13-
versionName project.VERSION_NAME
14-
versionCode Integer.parseInt(project.VERSION_CODE)
12+
targetSdkVersion project.targetSdkVersion
13+
versionCode project.versionCode
14+
versionName project.versionName
1515
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1616
}
1717

build.gradle

+28-21
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,47 @@
1-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
31
buildscript {
4-
ext.kotlin_version = '1.4.32'
2+
project.ext {
3+
kotlin_version = '1.4.32'
4+
compileSdkVersion = 30
5+
targetSdkVersion = 30
6+
minSdkVersion = 14
7+
8+
versionName = '1.2.9'
9+
versionCode = 10209
10+
11+
libraryName = 'Localization'
12+
libraryDescription = 'In-app language changing library for Android'
13+
14+
groupId = 'com.akexorcist'
15+
artifactId = 'localization'
16+
17+
siteUrl = 'https://github.com/akexorcist/Android-Localization'
18+
gitUrl = 'https://github.com/akexorcist/Android-Localization.git'
19+
20+
developerId = 'akexorcist'
21+
developName = 'Somkiat Khitwongwattana'
22+
developerEmail = 'akexorcist@gmail.com'
23+
24+
licenseName = 'The Apache License, Version 2.0'
25+
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
26+
}
27+
528
repositories {
629
jcenter()
30+
mavenCentral()
731
google()
832
}
933
dependencies {
1034
classpath 'com.android.tools.build:gradle:4.1.3'
11-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12-
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
13-
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
35+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$project.kotlin_version"
1436
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.17"
1537
classpath "com.google.dagger:hilt-android-gradle-plugin:2.33-beta"
1638
}
1739
}
1840

1941
allprojects {
20-
repositories {
21-
jcenter()
22-
google()
23-
}
24-
}
25-
26-
def isReleaseBuild() {
27-
return version.contains("SNAPSHOT") == false
28-
}
29-
30-
allprojects {
31-
version = VERSION_NAME
32-
group = GROUP
3342
repositories {
3443
jcenter()
3544
mavenCentral()
3645
google()
3746
}
3847
}
39-
40-
apply plugin: 'android-reporting'

gradle.properties

+3-23
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,16 @@
66
# http://www.gradle.org/docs/current/userguide/build_environment.html
77
# Specifies the JVM arguments used for the daemon process.
88
# The setting is particularly useful for tweaking memory settings.
9-
org.gradle.jvmargs=-Xmx1536m
9+
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
1010
# When configured, Gradle will run in incubating parallel mode.
1111
# This option should only be used with decoupled projects. More details, visit
1212
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1313
# org.gradle.parallel=true
1414
# AndroidX package structure to make it clearer which packages are bundled with the
15-
# Android operating system, and which are packaged with your app's APK
15+
# 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
1818
# Automatically convert third-party libraries to use AndroidX
1919
android.enableJetifier=true
2020
# Kotlin code style for this project: "official" or "obsolete":
21-
kotlin.code.style=official
22-
23-
# org.gradle.parallel=true
24-
VERSION_NAME=1.2.8
25-
VERSION_CODE=010208
26-
GROUP=com.akexorcist
27-
28-
POM_DESCRIPTION=Language changeable activity library
29-
POM_URL=https://github.com/akexorcist/Android-LocalizationActivity
30-
POM_SCM_URL=https://github.com/akexorcist/Android-LocalizationActivity
31-
POM_SCM_CONNECTION=scm:git@github.com:akexorcist/Android-LocalizationActivity.git
32-
POM_SCM_DEV_CONNECTION=scm:git@github.com:akexorcist/Android-LocalizationActivity.git
33-
POM_LICENCE_NAME=The Apache Software License, Version 2.0
34-
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
35-
POM_LICENCE_DIST=repo
36-
POM_DEVELOPER_ID=Akexorcist
37-
POM_DEVELOPER_NAME=Somkiat Khitwongwattana
38-
39-
ANDROID_COMPILE_SDK_VERSION=30
40-
ANDROID_TARGET_SDK_VERSION=30
41-
ANDROID_MIN_SDK=14
21+
kotlin.code.style=official

localization/build.gradle

+8-34
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ apply plugin: 'kotlin-android'
33
apply plugin: 'org.jetbrains.dokka-android'
44

55
android {
6-
compileSdkVersion Integer.parseInt(project.ANDROID_COMPILE_SDK_VERSION)
6+
compileSdkVersion project.compileSdkVersion
77

88
defaultConfig {
9-
minSdkVersion Integer.parseInt(project.ANDROID_MIN_SDK)
10-
targetSdkVersion Integer.parseInt(project.ANDROID_TARGET_SDK_VERSION)
11-
versionCode Integer.parseInt(VERSION_CODE)
12-
versionName VERSION_NAME
9+
minSdkVersion project.minSdkVersion
10+
targetSdkVersion project.targetSdkVersion
11+
versionCode project.versionCode
12+
versionName project.versionName
1313
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1414
}
1515

@@ -22,13 +22,13 @@ android {
2222
}
2323
}
2424

25-
task dokkaJavadoc(type:org.jetbrains.dokka.gradle.DokkaTask) {
25+
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
2626
outputFormat = 'javadoc'
2727
outputDirectory = "$buildDir/documentation"
2828
}
2929

3030
dependencies {
31-
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
31+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$project.kotlin_version"
3232
implementation 'androidx.appcompat:appcompat:1.2.0'
3333
implementation "androidx.activity:activity-ktx:1.2.2"
3434
testImplementation 'junit:junit:4.13.2'
@@ -37,30 +37,4 @@ dependencies {
3737
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
3838
}
3939

40-
ext {
41-
bintrayRepo = 'maven'
42-
bintrayName = 'localization'
43-
44-
publishedGroupId = 'com.akexorcist'
45-
libraryName = 'Localization'
46-
artifact = 'localization'
47-
48-
libraryDescription = 'Chill out on supporting multiple languages on your android application.'
49-
50-
siteUrl = 'https://github.com/akexorcist/Android-Localization'
51-
gitUrl = 'https://github.com/akexorcist/Android-Localization.git'
52-
53-
libraryVersion = '1.2.8'
54-
55-
developerId = 'akexorcist'
56-
developerName = 'Somkiat Khitwongwattana'
57-
developerEmail = 'akexorcist@gmail.com'
58-
59-
licenseName = 'The Apache Software License, Version 2.0'
60-
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
61-
allLicenses = ["Apache-2.0"]
62-
}
63-
64-
//apply from: '../publish/installv1.gradle'
65-
//apply from: '../publish/bintrayv1.gradle'
66-
40+
//apply from: '../publish/mavencentral.gradle'

maven_push.gradle

-92
This file was deleted.

publish/bintrayv1.gradle

-68
This file was deleted.

0 commit comments

Comments
 (0)