Move F-Droid project into subdir, keeping a root gradle project
Also improved .gitignore a tad
							
								
								
									
										48
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						| @ -1,11 +1,43 @@ | ||||
| /local.properties | ||||
| /bin/ | ||||
| /gen/ | ||||
| /build/ | ||||
| /.gradle/ | ||||
| /build.xml | ||||
| # Built application files | ||||
| *.apk | ||||
| *.ap_ | ||||
| 
 | ||||
| # Files for the Dalvik VM | ||||
| *.dex | ||||
| 
 | ||||
| # Java class files | ||||
| *.class | ||||
| 
 | ||||
| # Generated files | ||||
| bin/ | ||||
| gen/ | ||||
| build.xml | ||||
| 
 | ||||
| # Gradle files | ||||
| .gradle/ | ||||
| build/ | ||||
| 
 | ||||
| # Gradle wrapper | ||||
| gradlew | ||||
| gradlew.bat | ||||
| gradle-wrapper.jar | ||||
| gradle-wrapper.properties | ||||
| 
 | ||||
| # Local configuration file (sdk path, etc) | ||||
| local.properties | ||||
| 
 | ||||
| # Proguard folder generated by Eclipse | ||||
| proguard/ | ||||
| 
 | ||||
| # Log Files | ||||
| *.log | ||||
| 
 | ||||
| # Editor swap/save files | ||||
| *~ | ||||
| /.idea/ | ||||
| *.swp | ||||
| 
 | ||||
| # More IDE stuff | ||||
| .idea/ | ||||
| *.iml | ||||
| out | ||||
| /.settings/ | ||||
| .settings/ | ||||
|  | ||||
| @ -4,7 +4,7 @@ | ||||
| 	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | ||||
| 	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/> | ||||
| 	<classpathentry kind="src" path="src"/> | ||||
| 	<classpathentry kind="src" path="extern/symlinks-for-ant-and-eclipse"> | ||||
|     <classpathentry kind="src" path="../extern/symlinks-for-ant-and-eclipse"> | ||||
| 		<attributes> | ||||
| 			<attribute name="ignore_optional_problems" value="true"/> | ||||
| 		</attributes> | ||||
							
								
								
									
										34
									
								
								F-Droid/ant-prepare.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						| @ -0,0 +1,34 @@ | ||||
| #!/bin/bash -ex | ||||
| 
 | ||||
| EXTERN=../extern | ||||
| 
 | ||||
| place_support_v4() { | ||||
|     mkdir -p $1/libs | ||||
|     cp libs/android-support-v4.jar $1/libs/ | ||||
| } | ||||
| 
 | ||||
| android update lib-project --path $EXTERN/UniversalImageLoader/library | ||||
| 
 | ||||
| android update lib-project --path $EXTERN/AndroidPinning | ||||
| 
 | ||||
| android update lib-project --path $EXTERN/MemorizingTrustManager | ||||
| 
 | ||||
| android update lib-project --path $EXTERN/libsuperuser/libsuperuser | ||||
| 
 | ||||
| android update lib-project --path $EXTERN/zxing-core | ||||
| 
 | ||||
| android update lib-project --path $EXTERN/android-support-v4-preferencefragment | ||||
| place_support_v4 $EXTERN/android-support-v4-preferencefragment | ||||
| 
 | ||||
| android update lib-project --path $EXTERN/Support/v7/appcompat --target android-19 | ||||
| place_support_v4 $EXTERN/Support/v7/appcompat | ||||
| 
 | ||||
| android update project --path . --name F-Droid | ||||
| 
 | ||||
| { echo -e "\nSuccessfully updated the main project.\n"; } 2>/dev/null | ||||
| 
 | ||||
| # technically optional, needed for the tests | ||||
| cd test | ||||
| android update test-project --path . --main .. | ||||
| 
 | ||||
| { echo -e "\nSuccessfully updated the test project.\n"; } 2>/dev/null | ||||
| Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB | 
| Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB | 
| Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
							
								
								
									
										72
									
								
								F-Droid/build.gradle
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,72 @@ | ||||
| apply plugin: 'android' | ||||
| 
 | ||||
| dependencies { | ||||
|     compile project(':support-v4') | ||||
|     compile project(':support-appcompat-v7') | ||||
|     compile project(':extern:AndroidPinning') | ||||
|     compile project(':extern:UniversalImageLoader:library') | ||||
|     compile project(':extern:MemorizingTrustManager') | ||||
|     compile project(':extern:libsuperuser:libsuperuser') | ||||
|     compile project(':extern:nanohttpd:core') | ||||
|     compile project(':extern:jmdns') | ||||
|     compile project(':extern:zipsigner') | ||||
|     compile project(':extern:zxing-core') | ||||
|     compile( project(':extern:android-support-v4-preferencefragment') ) { | ||||
|         exclude module: 'support-v4' | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| android { | ||||
|     compileSdkVersion 21 | ||||
|     buildToolsVersion toolVersion | ||||
| 
 | ||||
|     compileOptions { | ||||
|         sourceCompatibility JavaVersion.VERSION_1_7 | ||||
|         targetCompatibility JavaVersion.VERSION_1_7 | ||||
|     } | ||||
| 
 | ||||
|     sourceSets { | ||||
|         main { | ||||
|             manifest.srcFile 'AndroidManifest.xml' | ||||
|             java.srcDirs = ['src'] | ||||
|             resources.srcDirs = ['src'] | ||||
|             aidl.srcDirs = ['src'] | ||||
|             renderscript.srcDirs = ['src'] | ||||
|             res.srcDirs = ['res'] | ||||
|             assets.srcDirs = ['assets'] | ||||
|         } | ||||
| 
 | ||||
|         instrumentTest.setRoot('test') | ||||
|     } | ||||
| 
 | ||||
|     buildTypes { | ||||
|         release { | ||||
|             minifyEnabled false | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     compileOptions.encoding = "UTF-8" | ||||
| 
 | ||||
|     lintOptions { | ||||
|         abortOnError false | ||||
|     } | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| // TODO: This person took the example code below from another blogpost online, however | ||||
| // I lost the reference to it: | ||||
| // http://stackoverflow.com/questions/23297562/gradle-javadoc-and-android-documentation | ||||
| android.applicationVariants.all { variant -> | ||||
| 
 | ||||
|     task("generate${variant.name}Javadoc", type: Javadoc) { | ||||
|         title = "$name $version API" | ||||
|         description "Generates Javadoc for F-Droid." | ||||
|         source = variant.javaCompile.source | ||||
|         ext.androidJar = "$sdkLoc/platforms/${android.compileSdkVersion}/android.jar" | ||||
|         classpath = files(variant.javaCompile.classpath.files) + files(ext.androidJar) | ||||
|         options.links("http://docs.oracle.com/javase/7/docs/api/"); | ||||
|         options.links("http://d.android.com/reference/"); | ||||
|         exclude '**/BuildConfig.java' | ||||
|         exclude '**/R.java' | ||||
|     } | ||||
| } | ||||
							
								
								
									
										12
									
								
								F-Droid/project.properties
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,12 @@ | ||||
| target=android-21 | ||||
| 
 | ||||
| android.library.reference.1=../extern/UniversalImageLoader/library | ||||
| android.library.reference.2=../extern/MemorizingTrustManager | ||||
| android.library.reference.3=../extern/AndroidPinning | ||||
| android.library.reference.4=../extern/libsuperuser/libsuperuser | ||||
| android.library.reference.5=../extern/zxing-core | ||||
| android.library.reference.6=../extern/android-support-v4-preferencefragment | ||||
| android.library.reference.7=../extern/Support/v7/appcompat | ||||
| 
 | ||||
| # For java libraries, place symlinks in ../extern/symlinks-for-ant-and-eclipse/ | ||||
| source.dir=src;../extern/symlinks-for-ant-and-eclipse | ||||
| Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB | 
| Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 893 B After Width: | Height: | Size: 893 B | 
| Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB | 
| Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB | 
| Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB | 
| Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB | 
| Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB | 
| Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB | 
| Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB | 
| Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB | 
| Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB | 
| Before Width: | Height: | Size: 665 B After Width: | Height: | Size: 665 B | 
| Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 489 B | 
| Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 475 B | 
| Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB | 
| Before Width: | Height: | Size: 918 B After Width: | Height: | Size: 918 B | 
| Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB | 
| Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 601 B | 
| Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 475 B | 
| Before Width: | Height: | Size: 550 B After Width: | Height: | Size: 550 B | 
| Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 872 B After Width: | Height: | Size: 872 B | 
| Before Width: | Height: | Size: 606 B After Width: | Height: | Size: 606 B | 
| Before Width: | Height: | Size: 718 B After Width: | Height: | Size: 718 B | 
| Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB | 
| Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB | 
| Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB | 
| Before Width: | Height: | Size: 915 B After Width: | Height: | Size: 915 B | 
| Before Width: | Height: | Size: 616 B After Width: | Height: | Size: 616 B | 
| Before Width: | Height: | Size: 776 B After Width: | Height: | Size: 776 B | 
| Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 8.1 KiB | 
| Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB | 
| Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB | 
| Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB | 
| Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB | 
| Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB | 
| Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB | 
| Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB | 
| Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB | 
| Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB | 
| Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB | 
| Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB | 
| Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB | 
| Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB | 
| Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB | 
| Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB | 
| Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB | 
 Daniel Martí
						Daniel Martí