-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b046baa
Showing
131 changed files
with
12,203 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
!/.gitignore | ||
!/build.gradle | ||
!/COPYING | ||
!/extra | ||
!/gradle | ||
!/gradle.properties | ||
!/gradlew | ||
!/gradlew.bat | ||
!/metadata | ||
!/proguard.pro | ||
!/README.md | ||
!/src |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Foxy Droid | ||
|
||
Yet another F-Droid client. | ||
|
||
## Description | ||
|
||
Unofficial F-Droid client that resembles classic F-Droid client. | ||
|
||
## License | ||
|
||
Licensed under the terms of GNU GPL version 3 or later. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
buildscript { | ||
ext.versions = [ | ||
android: '3.4.1', | ||
kotlin: '1.3.72' | ||
] | ||
|
||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
classpath 'com.android.tools.build:gradle:' + versions.android | ||
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:' + versions.kotlin | ||
} | ||
} | ||
|
||
apply plugin: 'com.android.application' | ||
apply plugin: 'kotlin-android' | ||
|
||
android { | ||
compileSdkVersion 29 | ||
buildToolsVersion '29.0.3' | ||
|
||
defaultConfig { | ||
archivesBaseName = 'foxy-droid' | ||
applicationId 'nya.kitsunyan.foxydroid' | ||
minSdkVersion 21 | ||
targetSdkVersion 29 | ||
versionCode 1 | ||
versionName '1.0' | ||
|
||
def languages = [ 'en' ] | ||
buildConfigField 'String[]', 'LANGUAGES', '{ "' + languages.join('", "') + '" }' | ||
resConfigs languages | ||
} | ||
|
||
sourceSets.all { | ||
def javaDir = it.java.srcDirs.find { it.name == 'java' } | ||
it.java.srcDirs += new File(javaDir.parentFile, 'kotlin') | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = compileOptions.sourceCompatibility.toString() | ||
} | ||
|
||
buildTypes { | ||
debug { | ||
minifyEnabled false | ||
shrinkResources false | ||
} | ||
release { | ||
minifyEnabled true | ||
shrinkResources true | ||
} | ||
all { | ||
crunchPngs false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pro' | ||
} | ||
} | ||
|
||
lintOptions { | ||
warning 'InvalidPackage' | ||
ignore 'InvalidVectorPath' | ||
} | ||
|
||
def signingPropertiesFile = rootProject.file('keystore.properties') | ||
if (signingPropertiesFile.exists()) { | ||
def signingProperties = new Properties() | ||
signingProperties.load(signingPropertiesFile.newDataInputStream()) | ||
|
||
def signing = [ | ||
storeFile: signingProperties['store.file'], | ||
storePassword: signingProperties['store.password'], | ||
keyAlias: signingProperties['key.alias'], | ||
keyPassword: signingProperties['key.password'] | ||
] | ||
|
||
if (!signing.any { _, v -> v == null }) { | ||
signingConfigs { | ||
primary { | ||
storeFile file(signing.storeFile) | ||
storePassword signing.storePassword | ||
keyAlias signing.keyAlias | ||
keyPassword signing.keyPassword | ||
} | ||
} | ||
|
||
buildTypes { | ||
debug.signingConfig signingConfigs.primary | ||
release.signingConfig signingConfigs.primary | ||
} | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:' + versions.kotlin | ||
implementation 'androidx.appcompat:appcompat:1.1.0' | ||
implementation 'androidx.preference:preference:1.1.1' | ||
implementation 'com.google.android.material:material:1.1.0' | ||
implementation 'com.squareup.okhttp3:okhttp:4.7.2' | ||
implementation 'io.reactivex.rxjava3:rxjava:3.0.4' | ||
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0' | ||
implementation 'com.fasterxml.jackson.core:jackson-core:2.11.0' | ||
implementation 'io.coil-kt:coil:0.11.0' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
cd "`dirname "$0"`" | ||
|
||
dimensions=(mdpi:1 hdpi:1.5 xhdpi:2 xxhdpi:3 xxxhdpi:4) | ||
res='../src/main/res' | ||
|
||
cp 'launcher.svg' 'launcher-foreground.svg' | ||
inkscape --select circle --verb EditDelete --verb=FileSave --verb=FileQuit \ | ||
'launcher-foreground.svg' | ||
|
||
for dimension in ${dimensions[@]}; do | ||
resource="${dimension%:*}" | ||
scale="${dimension#*:}" | ||
mkdir -p "$res/mipmap-$resource" "$res/drawable-$resource" | ||
size="`bc <<< "48 * $scale"`" | ||
inkscape 'launcher.svg' -a 15:15:93:93 -w "$size" -h "$size" \ | ||
-e "$res/mipmap-$resource/ic_launcher.png" | ||
optipng "$res/mipmap-$resource/ic_launcher.png" | ||
size="`bc <<< "108 * $scale"`" | ||
inkscape 'launcher-foreground.svg' -w "$size" -h "$size" \ | ||
-e "$res/drawable-$resource/ic_launcher_foreground.png" | ||
optipng "$res/drawable-$resource/ic_launcher_foreground.png" | ||
done | ||
|
||
rm 'launcher-foreground.svg' |
Oops, something went wrong.