Skip to content

Commit 0df0554

Browse files
committed
Programmatically get current year.
Only release on 3.x branch.
1 parent 72ef107 commit 0df0554

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
- name: Create Release
3737
uses: softprops/action-gh-release@v2
38-
if: ${{ env.BRANCH }} == "3.x"
38+
if: github.ref == 'refs/heads/3.x'
3939
with:
4040
tag_name: 0.0.${{ github.run_number }}-ci
4141
name: CI-Release-${{ env.BRANCH }}-${{ github.run_number }}

app/src/main/kotlin/com/apkupdater/ui/screen/SettingsScreen.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import com.apkupdater.ui.theme.statusBarColor
5757
import com.apkupdater.util.isAndroidTv
5858
import com.apkupdater.viewmodel.SettingsViewModel
5959
import org.koin.androidx.compose.koinViewModel
60+
import java.util.Calendar
6061

6162

6263
@Composable
@@ -78,7 +79,7 @@ fun About() = LazyColumn(
7879
LoadingImageApp(BuildConfig.APPLICATION_ID)
7980
LargeTitle(stringResource(R.string.app_name), Modifier.align(CenterHorizontally))
8081
MediumText("${BuildConfig.VERSION_NAME} (${BuildConfig.VERSION_CODE})", Modifier.align(CenterHorizontally))
81-
MediumText("Copyright © 2016-2023 rumboalla", Modifier.align(CenterHorizontally))
82+
MediumText("Copyright © 2016-${Calendar.getInstance().get(Calendar.YEAR)} rumboalla", Modifier.align(CenterHorizontally))
8283
}
8384
}
8485
item {

0 commit comments

Comments
 (0)