Reproducible Builds

This commit is contained in:
Stefan Schüller 2020-07-08 12:31:30 +02:00
parent d594bb5685
commit 832e103a11
4 changed files with 13 additions and 7 deletions

View File

@ -1,7 +1,6 @@
### Version 1.0.45 Tag: v1.0.45 (2020-07-??) ### Version 1.0.45 Tag: v1.0.45 (2020-07-08)
* Added token refresh * Added token refresh
### Version 1.0.44 Tag: v1.0.44 (2020-07-05) ### Version 1.0.44 Tag: v1.0.44 (2020-07-05)
* Completed implementation of Likes & Dislikes (@Poslovitch) * Completed implementation of Likes & Dislikes (@Poslovitch)
* Added preview of the current playback speed and video quality in the VideoOptionsFragment (@Poslovitch) * Added preview of the current playback speed and video quality in the VideoOptionsFragment (@Poslovitch)

View File

@ -25,9 +25,7 @@ android {
targetSdkVersion 29 targetSdkVersion 29
versionCode 1045 versionCode 1045
versionName "1.0.45" versionName "1.0.45"
//buildTime readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + 'L' buildConfigField "long", "BUILD_TIME", readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + 'L'
//buildConfigField "long", "BUILD_TIME", readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + 'L'
//resValue "string", "BUILD_TIME", readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + 'L'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
ext { ext {
libVersions = [ libVersions = [
@ -107,7 +105,6 @@ android {
applicationVariants.all { variant -> applicationVariants.all { variant ->
variant.resValue "string", "versionName", variant.versionName variant.resValue "string", "versionName", variant.versionName
variant.resValue "string", "buildTime", readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + ''
} }
} }

View File

@ -18,11 +18,14 @@
package net.schueller.peertube.activity; package net.schueller.peertube.activity;
import android.os.Bundle; import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.ActionBar;
import androidx.appcompat.widget.Toolbar; import androidx.appcompat.widget.Toolbar;
import androidx.preference.Preference;
import androidx.preference.PreferenceFragmentCompat; import androidx.preference.PreferenceFragmentCompat;
import net.schueller.peertube.BuildConfig;
import net.schueller.peertube.R; import net.schueller.peertube.R;
public class SettingsActivity extends CommonActivity { public class SettingsActivity extends CommonActivity {
@ -59,6 +62,12 @@ public class SettingsActivity extends CommonActivity {
@Override @Override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
setPreferencesFromResource(R.xml.root_preferences, rootKey); setPreferencesFromResource(R.xml.root_preferences, rootKey);
// write Build Time into pref
Preference pref = findPreference("pref_buildtime");
assert pref != null;
pref.setSummary(Long.toString(BuildConfig.BUILD_TIME));
} }
} }
} }

View File

@ -85,7 +85,8 @@
app:iconSpaceReserved="false"/> app:iconSpaceReserved="false"/>
<Preference <Preference
app:summary="@string/buildTime" app:key="pref_buildtime"
app:summary=""
app:title="@string/pref_title_buildtime" app:title="@string/pref_title_buildtime"
app:iconSpaceReserved="false"/> app:iconSpaceReserved="false"/>