Skip to content

Commit

Permalink
Update Node for github pages Job
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitjat3 committed Nov 8, 2024
1 parent 5644838 commit 1864c14
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '18.x'

- name: Build website
run: |
Expand Down
10 changes: 9 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,21 @@ android {

buildTypes {
release {
minifyEnabled false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
coreLibraryDesugaringEnabled true
}

kotlinOptions {
Expand Down Expand Up @@ -83,4 +90,5 @@ dependencies {
implementation project(':timer-pingsender')

testImplementation 'junit:junit:4.13.1'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
}
Original file line number Diff line number Diff line change
@@ -1,24 +0,0 @@
package com.gojek.courier

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.gojek.courier", appContext.packageName)
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package com.gojek.courier.utils

import android.os.Build.VERSION
import android.os.Build.VERSION_CODES
import java.lang.invoke.MethodHandles.Lookup
import java.lang.reflect.Method
import java.util.Optional

internal sealed class RuntimePlatform {

Expand Down Expand Up @@ -49,4 +52,4 @@ internal sealed class RuntimePlatform {
Default()
}
}
}
}

0 comments on commit 1864c14

Please sign in to comment.