Skip to content

Commit 3df379b

Browse files
committed
change scripts for new version of gradle_witness
1 parent 8922170 commit 3df379b

4 files changed

Lines changed: 4 additions & 34 deletions

File tree

.github/workflows/android.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,9 @@ jobs:
9999
run: |
100100
git diff || echo "NO ERR"
101101
102-
- name: show witness checksums updates
103-
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
104-
run: cd android-refimpl-app ; ./gradlew -q calculateChecksums 2>/dev/null
105-
106102
- name: update witness checksums for pull requests
107103
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
108-
run: cd android-refimpl-app ; ./gradlew -q calculateChecksums 2>/dev/null| grep -v 'Checking the license for' > app/witness.gradle 2>/dev/null
109-
110-
- name: show witness checksums updates for pull requests
111-
if: ${{ github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' }}
112-
run: cd android-refimpl-app ; git diff app/witness.gradle
104+
run: cd android-refimpl-app ; ./gradlew -q calculateChecksums
113105

114106
- name: Build with Gradle
115107
run: cd android-refimpl-app ; ./gradlew assemble ; find . -name '*.apk'
@@ -157,7 +149,6 @@ jobs:
157149
echo "========= git diff before witness update "========= "
158150
cd android-refimpl-app/
159151
./gradlew -q calculateChecksums
160-
./gradlew -q calculateChecksums 2>/dev/null| grep -v 'Checking the license for' > app/witness.gradle 2>/dev/null
161152
echo "========= git diff AFTER witness update "========= "
162153
cd ../
163154
git status

tools/check_android_jdbc.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,4 @@ echo "__VERSIONUPDATE__:""$ver"
3838

3939
sed -i -e 's#implementation '"'"'com.github.zoff99:pkgs_zoffccAndroidJDBC:.*#implementation '"'"'com.github.zoff99:pkgs_zoffccAndroidJDBC:'"$ver"''"'"'#' "$f1"
4040

41-
./gradlew -q calculateChecksums >/dev/null 2>/dev/null # first run add some checking for license text. silly crap!
42-
43-
./gradlew -q calculateChecksums | \
44-
grep -v 'and:sdk:platforms:android.jar' | \
45-
grep -v 'android:sdk:platforms:android.jar' | \
46-
grep -v 'android:sdk:platforms:core-for-system-modules.jar' | \
47-
grep -v '^\(Skipping\|Verifying\|Welcome to Gradle\)' \
48-
> ./app/witness.gradle
41+
./gradlew -q calculateChecksums

tools/check_iocipher_jni.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,4 @@ echo "__VERSIONUPDATE__:""$ver"
3838

3939
sed -i -e 's#implementation('"'"'com.github.zoff99:pkgs_guardianprojectIOCipher:.*#implementation('"'"'com.github.zoff99:pkgs_guardianprojectIOCipher:'"$ver"''"'"') {#' "$f1"
4040

41-
./gradlew -q calculateChecksums >/dev/null 2>/dev/null # first run add some checking for license text. silly crap!
42-
43-
./gradlew -q calculateChecksums | \
44-
grep -v 'and:sdk:platforms:android.jar' | \
45-
grep -v 'android:sdk:platforms:android.jar' | \
46-
grep -v 'android:sdk:platforms:core-for-system-modules.jar' | \
47-
grep -v '^\(Skipping\|Verifying\|Welcome to Gradle\)' \
48-
> ./app/witness.gradle
41+
./gradlew -q calculateChecksums

tools/check_toxcore_jni.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,4 @@ echo "__VERSIONUPDATE__:""$ver"
3838

3939
sed -i -e 's#implementation '"'"'com.github.zoff99:pkgs_ToxAndroidRefImpl:.*#implementation '"'"'com.github.zoff99:pkgs_ToxAndroidRefImpl:'"$ver"''"'"'#' "$f1"
4040

41-
./gradlew -q calculateChecksums >/dev/null 2>/dev/null # first run add some checking for license text. silly crap!
42-
43-
./gradlew -q calculateChecksums | \
44-
grep -v 'and:sdk:platforms:android.jar' | \
45-
grep -v 'android:sdk:platforms:android.jar' | \
46-
grep -v 'android:sdk:platforms:core-for-system-modules.jar' | \
47-
grep -v '^\(Skipping\|Verifying\|Welcome to Gradle\)' \
48-
> ./app/witness.gradle
41+
./gradlew -q calculateChecksums

0 commit comments

Comments
 (0)