Skip to content

Commit

Permalink
version 0.83.SF
Browse files Browse the repository at this point in the history
  • Loading branch information
woesss committed Apr 14, 2023
1 parent 71e9879 commit b6fe334
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 33 deletions.
65 changes: 35 additions & 30 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.5.2
- name: set up JDK 11
uses: actions/setup-java@v3
with:
Expand All @@ -31,15 +31,6 @@ jobs:
- name: Build with Gradle
run: ./gradlew assembleEmulatorRelease

- name: rename
run: |
filenames=`ls app/build/outputs/apk/emulator/release/*.apk`
for eachfile in $filenames
do
newpath=${eachfile%.*};
mv $eachfile ${newpath%-*}.apk
done
- name: Path lister action
uses: Rishabh510/Path-lister-action@1.0
id: pl
Expand All @@ -54,30 +45,44 @@ jobs:
msg: ${{ steps.pl.outputs.paths }}
separator: ' '

- name: list filenames
id: filenames
run: |
echo "name0=$(basename ${{ steps.split.outputs._0 }} .apk)" >> $GITHUB_OUTPUT
echo "name1=$(basename ${{ steps.split.outputs._1 }} .apk)" >> $GITHUB_OUTPUT
echo "name2=$(basename ${{ steps.split.outputs._2 }} .apk)" >> $GITHUB_OUTPUT
echo "name3=$(basename ${{ steps.split.outputs._3 }} .apk)" >> $GITHUB_OUTPUT
echo "name4=$(basename ${{ steps.split.outputs._4 }} .apk)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v3
with:
name: ${{ steps.filenames.outputs.name0 }}
path: ${{ steps.split.outputs._0 }}

- uses: actions/upload-artifact@v3
with:
name: ${{ steps.filenames.outputs.name1 }}
path: ${{ steps.split.outputs._1 }}

- uses: actions/upload-artifact@v3
with:
name: ${{ steps.filenames.outputs.name2 }}
path: ${{ steps.split.outputs._2 }}

- uses: actions/upload-artifact@v3
with:
name: ${{ steps.filenames.outputs.name3 }}
path: ${{ steps.split.outputs._3 }}

- uses: actions/upload-artifact@v3
with:
name: ${{ steps.filenames.outputs.name4 }}
path: ${{ steps.split.outputs._4 }}

- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
name: symbols
path: |
app/build/outputs/mapping
app/build/outputs/native-debug-symbols
- name: Get version
id: get_version
run: |
msg=$(git log -1 --pretty=format:"%s")
echo "::set-output name=version::${msg#* }"
- name: Draft GitHub Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.REPO_TOKEN }}"
automatic_release_tag: ${{ steps.get_version.outputs.version }}
prerelease: true
draft: true
files: |
${{ steps.split.outputs._0 }}
${{ steps.split.outputs._1 }}
${{ steps.split.outputs._2 }}
${{ steps.split.outputs._3 }}
${{ steps.split.outputs._4 }}
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "ru.woesss.j2meloader"
minSdk MIN_SDK
targetSdk TARGET_SDK
versionCode 35
versionName "0.83"
versionCode 36
versionName "0.83.SF"
resValue 'string', 'app_name', rootProject.name
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected void attachBaseContext(Context base) {
.withEnabled(true)
.build()
));
ACRA.getErrorReporter().setEnabled(isSignatureValid());
ACRA.getErrorReporter().setEnabled(false);
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
sp.registerOnSharedPreferenceChangeListener(themeListener);
setNightMode(sp.getString(Constants.PREF_THEME, null));
Expand Down

0 comments on commit b6fe334

Please sign in to comment.