Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cesar/upgrading okhttp #13

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
c0bf18d
Gitignore has been updated to avoid make commit of non-required gradl…
CesarValiente Mar 29, 2015
41ffd10
Gradle files for the main project
CesarValiente Mar 29, 2015
6772f68
We set here the projects we are going to use.
CesarValiente Mar 29, 2015
ed9ae46
Fontify gradle files. Here we define the build.gradle who is the one …
CesarValiente Mar 29, 2015
cb6fa09
Requires gradle files here. build.gradle builds here the SparkCore pr…
CesarValiente Mar 29, 2015
3c1ca61
Target version sets to 22
CesarValiente Mar 29, 2015
afbcad5
Fixed versionName (the original from the github repo)
CesarValiente Mar 29, 2015
7d4a56a
Target version set to 22 and Style
CesarValiente Mar 29, 2015
93d8b52
Target set to 22
CesarValiente Mar 29, 2015
772bf87
Version name sets to 22
CesarValiente Mar 29, 2015
315ab15
Deleted library referenced and changed target to 22
CesarValiente Mar 29, 2015
eb8b502
Deleted duplicated theme reference
CesarValiente Mar 29, 2015
a3a87d2
Added gradle batch files
CesarValiente Mar 29, 2015
ee0e0f9
Added wrapper (just in case someone doesn't have a local distribution)
CesarValiente Mar 29, 2015
28178dd
We want thoes
CesarValiente Mar 29, 2015
31fdc50
Added new rules
CesarValiente May 11, 2015
9072000
Used up to date libs
CesarValiente May 11, 2015
658486f
Added new version of urlconnection
CesarValiente May 11, 2015
e176b20
Using the new way to have an urlconnection object from the updated ok…
CesarValiente May 11, 2015
2a4f031
Using the new way to have an urlconnection object from the updated ok…
CesarValiente May 11, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
*/bin/
*/gen/

# gradle
Fontify/.gradle/*
SparkCore/.gradle/*

# IntelliJ/AndroidStudio
*.iml
.idea/*


# Local configuration file (sdk path, etc)
*/local.properties

Expand All @@ -24,6 +33,9 @@ SparkCore/res/values/local_build.xml
# COMMENTED OUT: we want these.
#.classpath
#.project

*/.metadata/
*/.settings/

# Resources
SparkCore/assets/*
SparkCore/libs/smartconfiglib.jar
12 changes: 6 additions & 6 deletions Fontify/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.danh32.fontify"
android:versionCode="1"
android:versionName="1.0" >
package="com.danh32.fontify"
android:versionCode="1"
android:versionName="1.0">

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
android:minSdkVersion="14"
android:targetSdkVersion="22"/>

<application android:allowBackup="true" >
<application android:allowBackup="true">
</application>

</manifest>
35 changes: 35 additions & 0 deletions Fontify/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
}
}


apply plugin: 'com.android.library'
android {
compileSdkVersion 21
buildToolsVersion '22.0.0'

defaultConfig {
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
}

lintOptions {
abortOnError false
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
res.srcDirs = ['res']
}
}
}
18 changes: 18 additions & 0 deletions Fontify/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
2 changes: 1 addition & 1 deletion Fontify/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-19
target=android-22
android.library=true
100 changes: 50 additions & 50 deletions SparkCore/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,82 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.spark.core.android"
android:versionCode="4"
android:versionName="0.1.2" >
package="io.spark.core.android"
android:versionCode="4"
android:versionName="0.1.2">

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
android:minSdkVersion="14"
android:targetSdkVersion="22"/>

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>

<application
android:name="io.spark.core.android.app.SparkCoreApp"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.CustomTypefaceGradientActionBar" >
android:name="io.spark.core.android.app.SparkCoreApp"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.CustomTypefaceGradientActionBar">

<!-- Activities -->
<activity
android:name="io.spark.core.android.ui.SignUpActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.NoActionBar"
android:windowSoftInputMode="stateHidden|adjustResize" >
android:name="io.spark.core.android.ui.SignUpActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.NoActionBar"
android:windowSoftInputMode="stateHidden|adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name="io.spark.core.android.ui.LoginActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.NoActionBar"
android:windowSoftInputMode="stateHidden|adjustResize" />
android:name="io.spark.core.android.ui.LoginActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.NoActionBar"
android:windowSoftInputMode="stateHidden|adjustResize"/>
<activity
android:name="io.spark.core.android.ui.smartconfig.SmartConfigActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.CustomTypefaceGradientActionBar.Overlay"
android:windowSoftInputMode="stateHidden|adjustResize" >
android:name="io.spark.core.android.ui.smartconfig.SmartConfigActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.CustomTypefaceGradientActionBar.Overlay"
android:windowSoftInputMode="stateHidden|adjustResize">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="io.spark.core.android.ui.corelist.CoreListActivity" />
android:name="android.support.PARENT_ACTIVITY"
android:value="io.spark.core.android.ui.corelist.CoreListActivity"/>
</activity>
<activity
android:name="io.spark.core.android.ui.smartconfig.NamingActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.CustomTypefaceGradientActionBar.Overlay"
android:windowSoftInputMode="stateHidden|adjustResize" >
android:name="io.spark.core.android.ui.smartconfig.NamingActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.CustomTypefaceGradientActionBar.Overlay"
android:windowSoftInputMode="stateHidden|adjustResize">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".SmartConfigActivity" />
android:name="android.support.PARENT_ACTIVITY"
android:value=".SmartConfigActivity"/>
</activity>
<activity
android:name="io.spark.core.android.ui.smartconfig.NoCoresFoundActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.CustomTypefaceGradientActionBar.Overlay"
android:windowSoftInputMode="stateHidden|adjustResize" >
android:name="io.spark.core.android.ui.smartconfig.NoCoresFoundActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.CustomTypefaceGradientActionBar.Overlay"
android:windowSoftInputMode="stateHidden|adjustResize">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".SmartConfigActivity" />
android:name="android.support.PARENT_ACTIVITY"
android:value=".SmartConfigActivity"/>
</activity>
<activity
android:name="io.spark.core.android.ui.corelist.CoreListActivity"
android:launchMode="singleTop"
android:theme="@style/Theme.CustomTypefaceGradientActionBar.Overlay.NoUp" />
android:name="io.spark.core.android.ui.corelist.CoreListActivity"
android:launchMode="singleTop"
android:theme="@style/Theme.CustomTypefaceGradientActionBar.Overlay.NoUp"/>

<!-- Services -->
<service
android:name="io.spark.core.android.cloud.requestservice.SimpleSparkApiService"
android:exported="false" />
android:name="io.spark.core.android.cloud.requestservice.SimpleSparkApiService"
android:exported="false"/>
<service
android:name="io.spark.core.android.smartconfig.SmartConfigService"
android:exported="false" />
android:name="io.spark.core.android.smartconfig.SmartConfigService"
android:exported="false"/>
</application>

</manifest>
56 changes: 56 additions & 0 deletions SparkCore/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
}
}

apply plugin: 'com.android.application'

repositories {
mavenCentral()
}


android {
compileSdkVersion 22
buildToolsVersion '22.0.0'

defaultConfig {
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "0.1.2"
}

lintOptions {
abortOnError false
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
}

dependencies {
compile project(':Fontify')

// compile fileTree(dir: 'libs', include: '*.jar')

compile files('libs/smartconfiglib.jar')
compile 'com.android.support:support-v4:22.0.+'
compile 'org.apache.commons:commons-lang3:3.0'
compile 'com.google.code.gson:gson:2.3.1'
compile 'com.google.guava:guava:18.0'
compile 'com.squareup.okhttp:okhttp:2.3.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.3.0'
}
18 changes: 18 additions & 0 deletions SparkCore/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
3 changes: 1 addition & 2 deletions SparkCore/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-19
android.library.reference.1=../Fontify
target=android-22
3 changes: 1 addition & 2 deletions SparkCore/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowFrame">@null</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:backgroundDimEnabled">false</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowNoTitle">true</item>
</style>
Expand All @@ -39,5 +38,5 @@
<item name="android:windowExitAnimation">@android:anim/fade_out</item>
-->


</resources>
Loading