Reproducible Builds
This commit is contained in:
parent
d594bb5685
commit
832e103a11
@ -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
|
||||
|
||||
|
||||
### Version 1.0.44 Tag: v1.0.44 (2020-07-05)
|
||||
* Completed implementation of Likes & Dislikes (@Poslovitch)
|
||||
* Added preview of the current playback speed and video quality in the VideoOptionsFragment (@Poslovitch)
|
||||
|
@ -25,9 +25,7 @@ android {
|
||||
targetSdkVersion 29
|
||||
versionCode 1045
|
||||
versionName "1.0.45"
|
||||
//buildTime readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + 'L'
|
||||
//buildConfigField "long", "BUILD_TIME", readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + 'L'
|
||||
//resValue "string", "BUILD_TIME", readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + 'L'
|
||||
buildConfigField "long", "BUILD_TIME", readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + 'L'
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
ext {
|
||||
libVersions = [
|
||||
@ -107,7 +105,6 @@ android {
|
||||
|
||||
applicationVariants.all { variant ->
|
||||
variant.resValue "string", "versionName", variant.versionName
|
||||
variant.resValue "string", "buildTime", readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + ''
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18,11 +18,14 @@
|
||||
package net.schueller.peertube.activity;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.appcompat.app.ActionBar;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
import androidx.preference.Preference;
|
||||
import androidx.preference.PreferenceFragmentCompat;
|
||||
|
||||
import net.schueller.peertube.BuildConfig;
|
||||
import net.schueller.peertube.R;
|
||||
|
||||
public class SettingsActivity extends CommonActivity {
|
||||
@ -59,6 +62,12 @@ public class SettingsActivity extends CommonActivity {
|
||||
@Override
|
||||
public void onCreatePreferences(Bundle savedInstanceState, String 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));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -85,7 +85,8 @@
|
||||
app:iconSpaceReserved="false"/>
|
||||
|
||||
<Preference
|
||||
app:summary="@string/buildTime"
|
||||
app:key="pref_buildtime"
|
||||
app:summary=""
|
||||
app:title="@string/pref_title_buildtime"
|
||||
app:iconSpaceReserved="false"/>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user