Skip to content

Commit ce62fc8

Browse files
tctrdanoli3
authored andcommitted
Android example : modify the android example according to Danoli android template => creating a Android Composite Example
no compilatio for x86_64 (lib lacking) change relative paths for PRJ_OF_ROOT and PURE_OF_ROO changed parths in build.gradle now files in bin/data can be loaded release signing config needed to create apk in release mode (cherry picked from commit 98776d2)
1 parent e056828 commit ce62fc8

46 files changed

Lines changed: 1353 additions & 28 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ext {
2+
//var = 'signExample.keystore'
3+
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
4+
buildscript {
5+
repositories {
6+
google()
7+
mavenCentral()
8+
}
9+
dependencies {
10+
classpath 'com.android.tools.build:gradle:7.4.2'
11+
}
12+
}
13+
14+
allprojects {
15+
repositories {
16+
google()
17+
mavenCentral()
18+
}
19+
ext {
20+
21+
}
22+
}
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
### Android ###
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=androidstudio
3+
4+
### AndroidStudio ###
5+
# Covers files to be ignored for android development using Android Studio.
6+
7+
# Built application files
8+
*.apk
9+
*.ap_
10+
*.aab
11+
12+
# Files for the ART/Dalvik VM
13+
*.dex
14+
15+
# Java class files
16+
*.class
17+
18+
# Generated files
19+
bin/
20+
gen/
21+
out/
22+
.cxx/
23+
24+
# Gradle files
25+
.gradle
26+
.gradle/
27+
build/
28+
29+
# Signing files
30+
.signing/
31+
32+
# Local configuration file (sdk path, etc)
33+
local.properties
34+
35+
# Proguard folder generated by Eclipse
36+
proguard/
37+
38+
# Log Files
39+
*.log
40+
41+
# Android Studio
42+
/*/build/
43+
/*/local.properties
44+
/*/out
45+
/*/*/build
46+
/*/*/production
47+
captures/
48+
.navigation/
49+
*.ipr
50+
*~
51+
*.swp
52+
53+
# Keystore files
54+
*.jks
55+
*.keystore
56+
57+
# Google Services (e.g. APIs or Firebase)
58+
# google-services.json
59+
60+
# Android Patch
61+
gen-external-apklibs
62+
63+
# External native build folder generated in Android Studio 2.2 and later
64+
.externalNativeBuild
65+
66+
# NDK
67+
obj/
68+
69+
# IntelliJ IDEA
70+
*.iml
71+
*.iws
72+
/out/
73+
74+
# User-specific configurations
75+
.idea/caches/
76+
.idea/libraries/
77+
.idea/shelf/
78+
.idea/workspace.xml
79+
.idea/tasks.xml
80+
.idea/.name
81+
.idea/compiler.xml
82+
.idea/copyright/profiles_settings.xml
83+
.idea/encodings.xml
84+
.idea/misc.xml
85+
.idea/modules.xml
86+
.idea/scopes/scope_settings.xml
87+
.idea/dictionaries
88+
.idea/vcs.xml
89+
.idea/jsLibraryMappings.xml
90+
.idea/datasources.xml
91+
.idea/dataSources.ids
92+
.idea/sqlDataSources.xml
93+
.idea/dynamic.xml
94+
.idea/uiDesigner.xml
95+
.idea/assetWizardSettings.xml
96+
.idea/gradle.xml
97+
.idea/jarRepositories.xml
98+
.idea/navEditor.xml
99+
100+
# OS-specific files
101+
.DS_Store
102+
.DS_Store?
103+
._*
104+
.Spotlight-V100
105+
.Trashes
106+
ehthumbs.db
107+
Thumbs.db
108+
109+
# Legacy Eclipse project files
110+
.classpath
111+
.project
112+
.cproject
113+
.settings/
114+
115+
# Mobile Tools for Java (J2ME)
116+
.mtj.tmp/
117+
118+
# Package Files #
119+
*.war
120+
*.ear
121+
122+
# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)
123+
hs_err_pid*
124+
125+
## Plugin-specific files:
126+
127+
# mpeltonen/sbt-idea plugin
128+
.idea_modules/
129+
130+
# JIRA plugin
131+
atlassian-ide-plugin.xml
132+
133+
# Mongo Explorer plugin
134+
.idea/mongoSettings.xml
135+
136+
# Crashlytics plugin (for Android Studio and IntelliJ)
137+
com_crashlytics_export_strings.xml
138+
crashlytics.properties
139+
crashlytics-build.properties
140+
fabric.properties
141+
142+
### AndroidStudio Patch ###
143+
144+
!/gradle/wrapper/gradle-wrapper.jar
145+
146+
# End of androidstudio
147+
148+
### Gradle Patch ###
149+
**/build/
150+
151+
# Eclipse Gradle plugin generated files
152+
# Eclipse Core
153+
.project
154+
# JDT-specific (Eclipse Java Development Tools)
155+
.classpath
156+
157+
# Local configuration file (sdk path, etc)
158+
local.properties
159+
160+
# Proguard folder generated by Eclipse
161+
proguard/
162+
163+
### Android Patch ###
164+
gen-external-apklibs
165+
reports
166+
obj
167+
assets
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
android:versionCode="12"
5+
android:versionName="0.0.1" >
6+
7+
8+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
9+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
10+
<!-- <uses-permission android:name="android.permission.BLUETOOTH"
11+
android:maxSdkVersion="30" />-->
12+
<!-- Internet Systems / Google Play Games -->
13+
<!-- <uses-permission android:name="android.permission.INTERNET" />
14+
<uses-feature
15+
android:name="android.hardware.wifi"
16+
android:required="false" />
17+
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
18+
-->
19+
<!-- Input Systems -->
20+
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
21+
<uses-feature
22+
android:name="android.hardware.bluetooth"
23+
android:required="false" />
24+
<uses-feature
25+
android:name="android.hardware.gamepad"
26+
android:required="false" />
27+
<uses-feature
28+
android:name="android.hardware.usb.host"
29+
android:required="false" />
30+
31+
<!-- Audio Systems -->
32+
<uses-feature android:name="android.hardware.audio.output" android:required="false" />
33+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
34+
35+
<uses-feature android:glEsVersion="0x00020000"/>
36+
<supports-screens android:resizeable="false"
37+
android:smallScreens="true"
38+
android:normalScreens="true"
39+
android:largeScreens="true"
40+
android:xlargeScreens="true"
41+
android:anyDensity="true" />
42+
43+
<application
44+
android:allowBackup="true"
45+
android:icon="@mipmap/ic_launcher_round"
46+
android:label="@string/APP_NAME"
47+
android:theme="@style/AppTheme"
48+
android:requestLegacyExternalStorage="true"
49+
tools:remove="android:appComponentFactory"
50+
tools:targetApi="p"
51+
>
52+
53+
<!-- <meta-data-->
54+
<!-- android:name="com.android.graphics.developerdriver.enable"-->
55+
<!-- android:value="false" />-->
56+
57+
<meta-data
58+
android:name="android.max_aspect"
59+
android:value="2.4" />
60+
61+
<!-- Google Play Game Services -->
62+
<!--<meta-data
63+
android:name="com.google.android.gms.games.APP_ID"
64+
android:value="@string/app_id" />
65+
<meta-data
66+
android:name="com.google.android.gms.version"
67+
android:value="@integer/google_play_services_version" />
68+
-->
69+
70+
<meta-data
71+
android:name="android.supports_size_changes" android:value="true" />
72+
73+
<uses-library android:required="false" android:name="com.sec.android.app.multiwindow" />
74+
<meta-data android:name="com.sec.android.support.multiwindow" android:value="false" />
75+
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="800.0dip"/>
76+
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_H" android:value="600.0dip" />
77+
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_W" android:value="600.0dip" />
78+
<meta-data android:name="com.sec.android.multiwindow.MINIMUM_SIZE_H" android:value="400.0dip" />
79+
<meta-data android:name="com.samsung.android.sdk.multiwindow.penwindow.enable" android:value="false" />
80+
81+
<meta-data android:name="com.samsung.android.sdk.multiwindow.multiinstance.enable"
82+
android:value="false" />
83+
<!--
84+
<activity android:name="cc.openframeworks.android.SplashScreenActivity"
85+
android:screenOrientation="sensorLandscape" tools:ignore="LockedOrientationActivity"
86+
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden|keyboard|navigation|locale"
87+
android:preferMinimalPostProcessing="true"
88+
android:maxAspectRatio="2.4"
89+
android:resizeableActivity="true"
90+
android:forceDarkAllowed="true"
91+
android:exported="true"
92+
tools:targetApi="r">
93+
<layout android:defaultHeight="768dp"
94+
android:defaultWidth="1024dp"
95+
android:gravity="top|end"
96+
android:minHeight="400dp"
97+
android:minWidth="600dp" />
98+
99+
<intent-filter>
100+
<action android:name="android.intent.action.MAIN" />
101+
<category android:name="android.intent.category.LAUNCHER" />
102+
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
103+
<category android:name="android.intent.category.PENWINDOW_LAUNCHER" />
104+
</intent-filter>
105+
</activity>
106+
-->
107+
108+
<activity
109+
android:name="cc.openframeworks.android.OFActivity"
110+
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden|keyboard|navigation|locale"
111+
android:label="@string/APP_NAME"
112+
android:screenOrientation="sensorLandscape" tools:ignore="LockedOrientationActivity"
113+
android:preferMinimalPostProcessing="true"
114+
android:maxAspectRatio="2.4"
115+
android:resizeableActivity="true"
116+
android:forceDarkAllowed="true"
117+
android:exported="true"
118+
tools:targetApi="r">
119+
120+
<layout android:defaultHeight="768dp"
121+
android:defaultWidth="1024dp"
122+
android:gravity="top|end"
123+
android:minHeight="400dp"
124+
android:minWidth="600dp" />
125+
126+
<intent-filter>
127+
<action android:name="android.intent.action.MAIN" />
128+
<category android:name="android.intent.category.LAUNCHER" />
129+
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
130+
<category android:name="android.intent.category.PENWINDOW_LAUNCHER" />
131+
</intent-filter>
132+
133+
</activity>
134+
135+
</application>
136+
</manifest>

0 commit comments

Comments
 (0)