diff --git a/.gitignore b/.gitignore index 17db4a8b5..5ccee93d8 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,3 @@ out # Imported libs extern/*/libs/ extern/*/*/libs/ - -# We don't use proguard anywhere -proguard-project.txt diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..2c7690015 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +before_script: + - apt-get -q update -y + - echo " == Installing required packages" + - apt-get -q install -y wget tar unzip lib32stdc++6 lib32z1 + - echo " == Installing OpenJDK 7" + - apt-get -q install -y openjdk-7-jdk + - echo " == Installing the Android SDK" + - wget -q -O android-sdk.tgz https://dl.google.com/android/android-sdk_r24.3.4-linux.tgz + - tar -x -z -f android-sdk.tgz + - mv android-sdk-linux android-sdk + - export ANDROID_HOME=$PWD/android-sdk + - export PATH="$ANDROID_HOME/tools:$PATH" + - echo " == Installing Android SDK components" + - echo y | android -s update sdk --no-ui -a -t platform-tools,tools,build-tools-23.0.0,android-22,extra-android-m2repository + - echo " == Installing Gradle" + - wget -q -O gradle.zip https://services.gradle.org/distributions/gradle-2.4-bin.zip + - unzip -q gradle.zip + - export PATH="$PWD/gradle-2.4/bin:$PATH" + +build: + script: + - gradle build diff --git a/CHANGELOG.md b/CHANGELOG.md index 458388b1b..067977118 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,39 @@ +### 0.96 (2015-09-??) + +* Move the repo index update to a notification + +* Handle apk downloads without a dialog + +* Don't let users try to uninstall system apps that haven't been updated + +* Disable prompt to install F-Droid as a privileged app until it's more stable + +* Various bugfixes in the process that installs F-Droid as a privileged app + +* Fix crash when updating from an older release if using the "Light with dark + ActionBar" theme + +* Re-add SuperUser third-party permission to the manifest since some systems + require it + +* Fix privileged installer confirmation screen issues on Android 2.X/3.X/4.X + +* Fix a few crashes, including package receivers and NFC actions + +* Translation updates + +### 0.95.1 (2015-08-10) + +* Disable prompt to install F-Droid into system until it's more stable + +* Fix crash when updating from an older release if using the "Light with dark + ActionBar" theme + +* Re-add SuperUser third-party permission to the manifest since some systems + require it + +* Fix privileged installer confirmation screen crash on Android < 3.0 + ### 0.95 (2015-08-04) * Start porting UI to Material Design, including a new launcher icon diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..a45cbc3cb --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,38 @@ +Contributing +============ + +Reporting issues +---------------- + +Remember to include: + +* Android version +* Device model +* F-Droid version +* Steps to reproduce the issue +* Logcat - see [instructions](https://f-droid.org/wiki/page/Getting_logcat_messages_after_crash) + +Style +----- + +We follow the [Google Java style](https://google-styleguide.googlecode.com/svn/trunk/javaguide.html). +To summarize it: + +* Four space indentation +* UTF-8 source files +* Exactly one top-level class per file +* No wildcard imports +* One statement per line +* K&R spacings with braces and parenthesis +* Commented fallthroughs +* Braces are always used after if, for and while + +The current code base doesn't follow it entirely, but new code should follow +it. + +Debugging +--------- + +To get all the logcat messages by F-Droid, you can run: + + adb logcat | grep `adb shell ps | grep org.fdroid.fdroid | cut -c10-15` diff --git a/F-Droid/AndroidManifest.xml b/F-Droid/AndroidManifest.xml index e440e9976..ce8eb87f4 100644 --- a/F-Droid/AndroidManifest.xml +++ b/F-Droid/AndroidManifest.xml @@ -3,14 +3,14 @@ xmlns:tools="http://schemas.android.com/tools" package="org.fdroid.fdroid" android:installLocation="auto" - android:versionCode="95050" - android:versionName="0.95" + android:versionCode="96006" + android:versionName="0.96-alpha6" > + + + (android.content.Context); +} diff --git a/F-Droid/res/layout-v11/app_permission_item.xml b/F-Droid/res/layout-v11/app_permission_item.xml new file mode 100644 index 000000000..b5aab370d --- /dev/null +++ b/F-Droid/res/layout-v11/app_permission_item.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + diff --git a/F-Droid/res/layout-v11/install_confirm.xml b/F-Droid/res/layout-v11/install_confirm.xml new file mode 100644 index 000000000..911e8d944 --- /dev/null +++ b/F-Droid/res/layout-v11/install_confirm.xml @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +