Skip to content

Commit 6c0255f

Browse files
authored
Merge pull request #1 from alibaba/publish_jitpack
feat: publish jitpack config
2 parents 5d99b0d + 187b976 commit 6c0255f

41 files changed

Lines changed: 86 additions & 94 deletions

Some content is hidden

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

Android/build.gradle

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
apply plugin: 'com.android.library'
2+
apply plugin: 'maven-publish'
3+
4+
allprojects {
5+
repositories {
6+
// The order in which you list these repositories matter.
7+
google()
8+
jcenter()
9+
maven {
10+
url "https://jitpack.io"
11+
}
12+
}
13+
}
14+
15+
buildscript{
16+
repositories{
17+
google()
18+
jcenter()
19+
maven {
20+
url "https://jitpack.io"
21+
}
22+
}
23+
24+
dependencies{
25+
classpath "com.android.tools.build:gradle:7.0.2"
26+
}
27+
}
28+
29+
android {
30+
compileSdk 32
31+
32+
defaultConfig {
33+
minSdk 21
34+
targetSdk 32
35+
versionCode 1
36+
versionName "0.1.0"
37+
38+
}
39+
40+
41+
lintOptions {
42+
abortOnError false
43+
}
44+
45+
buildTypes {
46+
release {
47+
minifyEnabled false
48+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
49+
}
50+
}
51+
compileOptions {
52+
sourceCompatibility JavaVersion.VERSION_1_8
53+
targetCompatibility JavaVersion.VERSION_1_8
54+
}
55+
}
56+
57+
58+
// Because the components are created only during the afterEvaluate phase, you must
59+
// configure your publications using the afterEvaluate() lifecycle method.
60+
afterEvaluate {
61+
publishing {
62+
publications {
63+
// Creates a Maven publication called "release".
64+
release(MavenPublication) {
65+
// Applies the component for the release build variant.
66+
from components.release
67+
68+
// You can then customize attributes of the publication as shown below.
69+
groupId = 'com.github.alibaba'
70+
artifactId = 'gaia-motion-curve'
71+
version = '0.1.0'
72+
}
73+
// Creates a Maven publication called “debug”.
74+
debug(MavenPublication) {
75+
// Applies the component for the debug build variant.
76+
from components.debug
77+
78+
groupId = 'com.github.alibaba'
79+
artifactId = 'gaia-motion-curve'
80+
version = '0.1.0-DEV'
81+
}
82+
}
83+
}
84+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/Android/src/main/java/com/gaia/MotionCurve/GaiaMotionCurveAccelerateInterpolator.java renamed to Android/src/main/java/com/gaia/MotionCurve/GaiaMotionCurveAccelerateInterpolator.java

File renamed without changes.

0 commit comments

Comments
 (0)