Skip to content

Commit

Permalink
Made sure project fully runnable / buildable with gradle using jitpac…
Browse files Browse the repository at this point in the history
…k jswt dependencies instead of local project setup magic in a parent dir
  • Loading branch information
stefanhaustein committed Apr 19, 2017
1 parent 415c8ce commit 498ff6c
Show file tree
Hide file tree
Showing 255 changed files with 130 additions and 892 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -32,3 +32,4 @@ proguard/
# Intellij # Intellij


*.iml *.iml
.idea/
3 changes: 2 additions & 1 deletion build.gradle
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter() jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:2.2.0' classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3' classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'


// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
Expand All @@ -16,5 +16,6 @@ buildscript {
allprojects { allprojects {
repositories { repositories {
jcenter() jcenter()
maven { url 'https://jitpack.io' }
} }
} }
Expand Up @@ -5,11 +5,11 @@ android {
buildToolsVersion "25.0.2" buildToolsVersion "25.0.2"


defaultConfig { defaultConfig {
applicationId "org.kobjects.flowgrid" applicationId "org.flowgrid"
minSdkVersion 17 minSdkVersion 9
targetSdkVersion 25 targetSdkVersion 25
versionCode 1 versionCode 11
versionName "1.0" versionName "0.11"
} }
buildTypes { buildTypes {
release { release {
Expand All @@ -20,13 +20,8 @@ android {
} }


dependencies { dependencies {
provided 'com.google.android.things:androidthings:0.1-devpreview' compile fileTree(dir: 'libs', include: ['*.jar'])
// compile fileTree(dir: 'libs', include: ['*.jar']) compile project(':emoji')
compile project(':flowgrid-core') compile project(':flowgrid-core')
compile project(':flowgrid-swt-core')
compile project(':jswt-core')
compile project(':jswt-android')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:25.1.0' compile 'com.android.support:appcompat-v7:25.1.0'
} }

File renamed without changes.
File renamed without changes.
53 changes: 53 additions & 0 deletions flowgrid-android-legacy/src/main/AndroidManifest.xml
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.flowgrid"
android:versionCode="0"
android:versionName="InsertedFromGradle" >

<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />

<!-- Needed for pre-kitkat -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="22" />


<application
android:windowSoftInputMode="adjustPan"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="FlowGrid"
android:theme="@style/FlowGridTheme">
<!-- android:theme="@style/FlowGridTheme">
android:theme="@android:style/Theme.Holo.Light" -->

<activity android:name="org.flowgrid.android.BootActivity"
android:label="FlowGrid"
android:configChanges="orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<meta-data
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
</activity>

<activity
android:name="org.flowgrid.android.MainActivity"
android:label="FlowGrid"
android:configChanges="orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.RUN" />
</intent-filter>
</activity>

</application>

</manifest>
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions flowgrid-android-legacy/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
<resources>

<!-- Base application theme. -->
<style name="FlowGridTheme" parent="Theme.AppCompat">
<!-- Customize your theme here. -->
<item name="colorPrimary">#ff0099cc</item>
<item name="colorPrimaryDark">#aa0099cc</item>
</style>


</resources>
File renamed without changes.
File renamed without changes.
19 changes: 0 additions & 19 deletions flowgrid-android-swt/src/main/AndroidManifest.xml

This file was deleted.

11 changes: 0 additions & 11 deletions flowgrid-android-swt/src/main/res/values/styles.xml

This file was deleted.

File renamed without changes.
19 changes: 13 additions & 6 deletions flowgrid-android/build.gradle
Expand Up @@ -5,11 +5,11 @@ android {
buildToolsVersion "25.0.2" buildToolsVersion "25.0.2"


defaultConfig { defaultConfig {
applicationId "org.flowgrid" applicationId "org.kobjects.flowgrid"
minSdkVersion 9 minSdkVersion 17
targetSdkVersion 25 targetSdkVersion 25
versionCode 11 versionCode 1
versionName "0.11" versionName "1.0"
} }
buildTypes { buildTypes {
release { release {
Expand All @@ -20,8 +20,15 @@ android {
} }


dependencies { dependencies {
compile fileTree(dir: 'libs', include: ['*.jar']) provided 'com.google.android.things:androidthings:0.1-devpreview'
compile project(':emoji') // compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':flowgrid-core') compile project(':flowgrid-core')
compile project(':flowgrid-swt-core')

compile "com.github.stefanhaustein.jswt:jswt-core:master-SNAPSHOT"
compile "com.github.stefanhaustein.jswt:jswt-android:master-SNAPSHOT"

testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:25.1.0' compile 'com.android.support:appcompat-v7:25.1.0'
} }

File renamed without changes.
58 changes: 12 additions & 46 deletions flowgrid-android/src/main/AndroidManifest.xml
@@ -1,53 +1,19 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.flowgrid" package="org.flowgrid.android.swt.flowgrid">
android:versionCode="0"
android:versionName="InsertedFromGradle" >

<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />

<!-- Needed for pre-kitkat -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="22" />



<application android:theme="@style/FlowGridTheme"
<application android:label="FlowGrid (SWT)">
android:windowSoftInputMode="adjustPan" <uses-library android:name="com.google.android.things" android:required="false"/>
android:allowBackup="true" <activity android:name="org.flowgrid.android.swt.MainActivity"
android:icon="@drawable/ic_launcher" android:screenOrientation="landscape" >
android:label="FlowGrid"
android:theme="@style/FlowGridTheme">
<!-- android:theme="@style/FlowGridTheme">
android:theme="@android:style/Theme.Holo.Light" -->

<activity android:name="org.flowgrid.android.BootActivity"
android:label="FlowGrid"
android:configChanges="orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<meta-data
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
</activity>

<activity
android:name="org.flowgrid.android.MainActivity"
android:label="FlowGrid"
android:configChanges="orientation|screenSize">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.RUN" /> <action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.IOT_LAUNCHER"/>
</intent-filter> </intent-filter>
</activity> </activity>

</application>
</application>


</manifest> </manifest>
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified flowgrid-android/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file modified flowgrid-android/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file modified flowgrid-android/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file modified flowgrid-android/src/main/res/mipmap-xxhdpi/ic_launcher.png
8 changes: 4 additions & 4 deletions flowgrid-android/src/main/res/values/styles.xml
@@ -1,11 +1,11 @@
<resources> <resources>


<!-- Base application theme. --> <!-- Base application theme. -->
<style name="FlowGridTheme" parent="Theme.AppCompat"> <style name="FlowGridTheme" parent="Theme.AppCompat.NoActionBar">
<!-- Customize your theme here. --> <!-- Customize your theme here. -->
<item name="colorPrimary">#ff0099cc</item> <item name="colorPrimary">#ff0099cc</item>
<item name="colorPrimaryDark">#aa0099cc</item> <item name="colorPrimaryDark">#aa0099cc</item>
<item name="colorAccent">#ffffbd21</item>
</style> </style>



</resources> </resources>

0 comments on commit 498ff6c

Please sign in to comment.