Browse Source

modify readme

git@yoqi.me 7 months ago
parent
commit
dd07283b97
3 changed files with 43 additions and 4 deletions
  1. 13 0
      .circleci/config.yml
  2. 26 0
      .travis.yml
  3. 4 4
      app/build.gradle

+ 13 - 0
.circleci/config.yml

@@ -0,0 +1,13 @@
+version: 2.1
+
+orbs:
+  android: circleci/android@0.2.0
+
+jobs:
+  build:
+    executor: android/android
+
+    setps:
+      - checkout
+      - run:
+          command: ./gradlew build

+ 26 - 0
.travis.yml

@@ -0,0 +1,26 @@
+language: android
+jdk: oraclejdk8
+before_install:
+- yes | sdkmanager "platforms;android-29"
+
+env:
+  global:
+    - ANDROID_API_LEVEL=29
+    - ANDROID_BUILD_TOOLS_VERSION=29.0.3
+    - TRAVIS_SECURE_ENV_VARS=true
+
+android:
+  components:
+    - tools
+    - platform-tools
+    - build-tools-$ANDROID_BUILD_TOOLS_VERSION
+    - extra-android-m2repository
+    - extra-google-android-support
+  
+  licenses:
+    - '.+'
+
+script:
+  - ./gradlew clean
+  - ./gradle assembleDebug
+  

+ 4 - 4
app/build.gradle

@@ -26,10 +26,10 @@ android {
 
 dependencies {
     implementation fileTree(dir: 'libs', include: ['*.jar'])
-    implementation 'androidx.appcompat:appcompat:1.5.0'
-    implementation 'com.google.android.material:material:1.6.1'
+    implementation 'androidx.appcompat:appcompat:1.6.1'
+    implementation 'com.google.android.material:material:1.9.0'
     implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
     testImplementation 'junit:junit:4.13.2'
-    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
-    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
+    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
+    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
 }