Skip to content

Commit b046baa

Browse files
committed
Initial commit
0 parents  commit b046baa

File tree

131 files changed

+12203
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+12203
-0
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
!/.gitignore
3+
!/build.gradle
4+
!/COPYING
5+
!/extra
6+
!/gradle
7+
!/gradle.properties
8+
!/gradlew
9+
!/gradlew.bat
10+
!/metadata
11+
!/proguard.pro
12+
!/README.md
13+
!/src

COPYING

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Foxy Droid
2+
3+
Yet another F-Droid client.
4+
5+
## Description
6+
7+
Unofficial F-Droid client that resembles classic F-Droid client.
8+
9+
## License
10+
11+
Licensed under the terms of GNU GPL version 3 or later.

build.gradle

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
buildscript {
2+
ext.versions = [
3+
android: '3.4.1',
4+
kotlin: '1.3.72'
5+
]
6+
7+
repositories {
8+
google()
9+
jcenter()
10+
}
11+
12+
dependencies {
13+
classpath 'com.android.tools.build:gradle:' + versions.android
14+
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:' + versions.kotlin
15+
}
16+
}
17+
18+
apply plugin: 'com.android.application'
19+
apply plugin: 'kotlin-android'
20+
21+
android {
22+
compileSdkVersion 29
23+
buildToolsVersion '29.0.3'
24+
25+
defaultConfig {
26+
archivesBaseName = 'foxy-droid'
27+
applicationId 'nya.kitsunyan.foxydroid'
28+
minSdkVersion 21
29+
targetSdkVersion 29
30+
versionCode 1
31+
versionName '1.0'
32+
33+
def languages = [ 'en' ]
34+
buildConfigField 'String[]', 'LANGUAGES', '{ "' + languages.join('", "') + '" }'
35+
resConfigs languages
36+
}
37+
38+
sourceSets.all {
39+
def javaDir = it.java.srcDirs.find { it.name == 'java' }
40+
it.java.srcDirs += new File(javaDir.parentFile, 'kotlin')
41+
}
42+
43+
compileOptions {
44+
sourceCompatibility JavaVersion.VERSION_1_8
45+
targetCompatibility JavaVersion.VERSION_1_8
46+
}
47+
48+
kotlinOptions {
49+
jvmTarget = compileOptions.sourceCompatibility.toString()
50+
}
51+
52+
buildTypes {
53+
debug {
54+
minifyEnabled false
55+
shrinkResources false
56+
}
57+
release {
58+
minifyEnabled true
59+
shrinkResources true
60+
}
61+
all {
62+
crunchPngs false
63+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pro'
64+
}
65+
}
66+
67+
lintOptions {
68+
warning 'InvalidPackage'
69+
ignore 'InvalidVectorPath'
70+
}
71+
72+
def signingPropertiesFile = rootProject.file('keystore.properties')
73+
if (signingPropertiesFile.exists()) {
74+
def signingProperties = new Properties()
75+
signingProperties.load(signingPropertiesFile.newDataInputStream())
76+
77+
def signing = [
78+
storeFile: signingProperties['store.file'],
79+
storePassword: signingProperties['store.password'],
80+
keyAlias: signingProperties['key.alias'],
81+
keyPassword: signingProperties['key.password']
82+
]
83+
84+
if (!signing.any { _, v -> v == null }) {
85+
signingConfigs {
86+
primary {
87+
storeFile file(signing.storeFile)
88+
storePassword signing.storePassword
89+
keyAlias signing.keyAlias
90+
keyPassword signing.keyPassword
91+
}
92+
}
93+
94+
buildTypes {
95+
debug.signingConfig signingConfigs.primary
96+
release.signingConfig signingConfigs.primary
97+
}
98+
}
99+
}
100+
}
101+
102+
repositories {
103+
google()
104+
jcenter()
105+
}
106+
107+
dependencies {
108+
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:' + versions.kotlin
109+
implementation 'androidx.appcompat:appcompat:1.1.0'
110+
implementation 'androidx.preference:preference:1.1.1'
111+
implementation 'com.google.android.material:material:1.1.0'
112+
implementation 'com.squareup.okhttp3:okhttp:4.7.2'
113+
implementation 'io.reactivex.rxjava3:rxjava:3.0.4'
114+
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
115+
implementation 'com.fasterxml.jackson.core:jackson-core:2.11.0'
116+
implementation 'io.coil-kt:coil:0.11.0'
117+
}

extra/launcher-make.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
set -e
4+
cd "`dirname "$0"`"
5+
6+
dimensions=(mdpi:1 hdpi:1.5 xhdpi:2 xxhdpi:3 xxxhdpi:4)
7+
res='../src/main/res'
8+
9+
cp 'launcher.svg' 'launcher-foreground.svg'
10+
inkscape --select circle --verb EditDelete --verb=FileSave --verb=FileQuit \
11+
'launcher-foreground.svg'
12+
13+
for dimension in ${dimensions[@]}; do
14+
resource="${dimension%:*}"
15+
scale="${dimension#*:}"
16+
mkdir -p "$res/mipmap-$resource" "$res/drawable-$resource"
17+
size="`bc <<< "48 * $scale"`"
18+
inkscape 'launcher.svg' -a 15:15:93:93 -w "$size" -h "$size" \
19+
-e "$res/mipmap-$resource/ic_launcher.png"
20+
optipng "$res/mipmap-$resource/ic_launcher.png"
21+
size="`bc <<< "108 * $scale"`"
22+
inkscape 'launcher-foreground.svg' -w "$size" -h "$size" \
23+
-e "$res/drawable-$resource/ic_launcher_foreground.png"
24+
optipng "$res/drawable-$resource/ic_launcher_foreground.png"
25+
done
26+
27+
rm 'launcher-foreground.svg'

0 commit comments

Comments
 (0)