-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: "CI" | ||
|
||
on: [push] | ||
|
||
# Cancel running job if a new push is made to the same branch | ||
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
JAVA_VERSION: 17 | ||
# See https://github.com/actions/setup-java?tab=readme-ov-file#supported-distributions | ||
JAVA_DISTRIBUTION: 'adopt' | ||
|
||
jobs: | ||
spotless: | ||
name: "Spotless" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
- run: ./gradlew spotlessCheck | ||
|
||
app-lint: | ||
name: "app:lint" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
- run: ./gradlew app:lint | ||
|
||
provider-lint: | ||
name: "provider:lint" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
- run: ./gradlew provider:lint | ||
|
||
app-assemble-debug: | ||
name: "app:assembleDebug" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
- run: ./gradlew app:assembleDebug | ||
|
||
provider-assemble-debug: | ||
name: "provider:assembleDebug" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
- run: ./gradlew provider:assembleDebug | ||
|
||
provider-test: | ||
name: "provider:test" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ env.JAVA_DISTRIBUTION }} | ||
java-version: ${{ env.JAVA_VERSION }} | ||
- run: ./gradlew provider:test |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.raygun.raygun4android.sample.fragments | ||
|
||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import androidx.fragment.app.Fragment | ||
import com.raygun.raygun4android.sample.R | ||
|
||
/** | ||
* A simple empty [Fragment]. | ||
*/ | ||
class Fragment1 : Fragment() { | ||
override fun onCreateView( | ||
inflater: LayoutInflater, | ||
container: ViewGroup?, | ||
savedInstanceState: Bundle?, | ||
): View? { | ||
// Inflate the layout for this fragment | ||
return inflater.inflate(R.layout.fragment_1, container, false) | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.raygun.raygun4android.sample.fragments | ||
|
||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import android.widget.Button | ||
import androidx.fragment.app.Fragment | ||
import com.raygun.raygun4android.sample.R | ||
|
||
class FragmentSwap1 : Fragment() { | ||
override fun onCreateView( | ||
inflater: LayoutInflater, | ||
container: ViewGroup?, | ||
savedInstanceState: Bundle?, | ||
): View? { | ||
val view = inflater.inflate(R.layout.fragment_swap1, container, false) | ||
view.findViewById<Button>(R.id.button).setOnClickListener { | ||
parentFragmentManager.beginTransaction().apply { | ||
replace(R.id.fragment_container_view, FragmentSwap2()) | ||
commit() | ||
} | ||
} | ||
return view | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.raygun.raygun4android.sample.fragments | ||
|
||
import android.os.Bundle | ||
import android.view.LayoutInflater | ||
import android.view.View | ||
import android.view.ViewGroup | ||
import android.widget.Button | ||
import androidx.fragment.app.Fragment | ||
import com.raygun.raygun4android.sample.R | ||
|
||
class FragmentSwap2 : Fragment() { | ||
override fun onCreateView( | ||
inflater: LayoutInflater, | ||
container: ViewGroup?, | ||
savedInstanceState: Bundle?, | ||
): View? { | ||
val view = inflater.inflate(R.layout.fragment_swap2, container, false) | ||
view.findViewById<Button>(R.id.button).setOnClickListener { | ||
parentFragmentManager.beginTransaction().apply { | ||
replace(R.id.fragment_container_view, FragmentSwap1()) | ||
commit() | ||
} | ||
} | ||
return view | ||
} | ||
} |