Skip to content

Commit

Permalink
Merge 6cc272e into 5effee0
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrym committed Oct 6, 2023
2 parents 5effee0 + 6cc272e commit f0ec3c9
Show file tree
Hide file tree
Showing 16 changed files with 250 additions and 168 deletions.
6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

4 changes: 2 additions & 2 deletions .semaphore/deploy-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Deployment Pipeline - Beta
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
os_image: ubuntu2004
containers:
- name: main
image: 'registry.semaphoreci.com/android:29'
image: 'registry.semaphoreci.com/android:33'

auto_cancel:
running:
Expand Down
4 changes: 2 additions & 2 deletions .semaphore/deploy-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Deployment Pipeline - Internal
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
os_image: ubuntu2004
containers:
- name: main
image: 'registry.semaphoreci.com/android:29'
image: 'registry.semaphoreci.com/android:33'

auto_cancel:
running:
Expand Down
18 changes: 9 additions & 9 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Verification Pipeline
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
os_image: ubuntu2004
containers:
- name: main
image: 'registry.semaphoreci.com/android:29'
image: 'registry.semaphoreci.com/android:33'

auto_cancel:
running:
Expand Down Expand Up @@ -34,7 +34,7 @@ blocks:
jobs:
- name: 'Build Project'
commands:
- ./gradlew bundle
- ./gradlew bundle --stacktrace
epilogue:
on_pass:
commands:
Expand All @@ -50,23 +50,23 @@ blocks:
jobs:
- name: 'Analyze Code'
commands:
- ./gradlew lint
- ./gradlew lint --stacktrace
- name: 'Unit Tests'
commands:
- ./gradlew test
- ./gradlew test --stacktrace
- name: 'Integration Tests'
commands:
- sdkmanager "platform-tools" "platforms;android-29" "build-tools;30.0.0" "emulator"
- sdkmanager "system-images;android-29;google_apis;x86"
- echo no | avdmanager create avd -n test-emulator -k "system-images;android-29;google_apis;x86"
- sdkmanager "platform-tools" "platforms;android-33" "build-tools;33.0.2" "emulator"
- sdkmanager "system-images;android-33;google_apis;x86"
- echo no | avdmanager create avd -n test-emulator -k "system-images;android-33;google_apis;x86"
- emulator -avd test-emulator -noaudio -no-boot-anim -gpu off -no-window &
- adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'
- adb shell wm dismiss-keyguard
- sleep 1
- adb shell settings put global window_animation_scale 0
- adb shell settings put global transition_animation_scale 0
- adb shell settings put global animator_duration_scale 0
- ./gradlew connectedAndroidTest
- ./gradlew connectedAndroidTest --stacktrace
epilogue:
always:
commands:
Expand Down
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.github.triplet.play'

android {
compileSdkVersion 30
buildToolsVersion "30.0.1"
compileSdkVersion 33
buildToolsVersion "33.0.2"

defaultConfig {
applicationId "com.semaphoreci.demo"
minSdkVersion 21
targetSdkVersion 30
targetSdkVersion 33

versionCode System.getenv("SEMAPHORE_WORKFLOW_NUMBER")?.toInteger() ?: 1
versionName "1.0.${System.getenv("SEMAPHORE_WORKFLOW_NUMBER") ?: 0}"
Expand Down Expand Up @@ -96,7 +96,7 @@ dependencies {
implementation 'com.github.haroldadmin:NetworkResponseAdapter:4.0.1'

// Testing
def mockk_version = "1.10.0"
def mockk_version = "1.13.8"
def core_testing_version = "1.2.0"
def espresso_version = "3.2.0"

Expand Down
8 changes: 6 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.semaphoreci.demo">

<uses-permission android:name="android.permission.INTERNET" />
Expand All @@ -10,8 +11,11 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".ui.repolist.RepoListActivity">
android:theme="@style/AppTheme"
android:dataExtractionRules="@xml/data_extraction_rules"
tools:targetApi="s">
<activity android:name=".ui.repolist.RepoListActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/xml/data_extraction_rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<data-extraction-rules>
<cloud-backup>

</cloud-backup>
</data-extraction-rules>
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
buildscript {
ext.kotlin_version = "1.3.72"
ext.kotlin_version = '1.9.10'

repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
}

dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.triplet.gradle:play-publisher:2.8.0'
}
Expand All @@ -17,11 +17,11 @@ buildscript {
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}

task clean(type: Delete) {
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Mon Jul 20 17:08:54 WEST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip

0 comments on commit f0ec3c9

Please sign in to comment.