Skip to content

Commit 8c22652

Browse files
dnlbainesmicrobit-sam
authored andcommitted
More build fixes (#1)
* Update samples.zip Update samples to work with MakeCode (v0 & v1) from .co.uk. * Update samples.zip Update samples to use MakeCode v0 for compatibility. * Separate source files * updated build files for compilation updated build files for compilation * More build fixes and added .gitignore
1 parent 603e08f commit 8c22652

File tree

11 files changed

+94
-26
lines changed

11 files changed

+94
-26
lines changed

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Built application files
2+
/*/build/
3+
build/
4+
app/release/
5+
6+
# Crashlytics configuations
7+
com_crashlytics_export_strings.xml
8+
9+
# Local configuration file (sdk path, etc)
10+
local.properties
11+
12+
# Gradle generated files
13+
.gradle/
14+
15+
# Signing files
16+
.signing/
17+
18+
# User-specific configurations
19+
.idea/libraries/
20+
.idea/workspace.xml
21+
.idea/tasks.xml
22+
.idea/.name
23+
.idea/compiler.xml
24+
.idea/copyright/profiles_settings.xml
25+
.idea/encodings.xml
26+
.idea/misc.xml
27+
.idea/modules.xml
28+
.idea/scopes/scope_settings.xml
29+
.idea/vcs.xml
30+
.idea/caches/
31+
.idea/codeStyles/
32+
*.iml
33+
34+
# OS-specific files
35+
.DS_Store
36+
.DS_Store?
37+
._*
38+
.Spotlight-V100
39+
.Trashes
40+
ehthumbs.db
41+
Thumbs.db

.idea/gradle.xml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ micro:bit Android application
77

88
* [Android SDK](http://developer.android.com/sdk/index.html)
99

10-
* [Gradle](https://gradle.org/gradle-download/) (Minimum version [2.14.1+](https://developer.android.com/studio/releases/gradle-plugin.html#updating-gradle))
10+
* [Gradle](https://gradle.org/gradle-download/) (Minimum version [4.6+](https://developer.android.com/studio/releases/gradle-plugin.html#updating-gradle))
1111

1212
* Go to root directory and run `gradle build`. After build is finished, apk file can be found under `~/app/build/outputs/apk/app-debug.apk`
1313

app/build.gradle

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 23
5-
buildToolsVersion '22.0.1'
4+
compileSdkVersion 26
5+
buildToolsVersion '28.0.3'
66
defaultConfig {
77
applicationId "com.samsung.microbit"
88
minSdkVersion 19
9-
targetSdkVersion 23
9+
targetSdkVersion 26
1010
}
1111
buildTypes {
1212
release {
@@ -22,12 +22,13 @@ android {
2222
}
2323

2424
dependencies {
25-
testCompile 'junit:junit:4.12'
26-
compile 'com.android.support:appcompat-v7:23.1.0'
27-
compile 'com.android.support:design:23.1.0'
28-
compile project(':dfuLibrary')
29-
compile 'com.android.support:cardview-v7:23.1.0'
30-
compile 'com.android.support:recyclerview-v7:23.1.0'
31-
compile project(':android-gif-drawable-1.1.13')
32-
compile 'com.google.android.gms:play-services-analytics:9.2.0'
25+
testImplementation 'junit:junit:4.12'
26+
implementation 'com.android.support:appcompat-v7:23.1.0'
27+
implementation 'com.android.support:design:23.1.0'
28+
implementation project(':dfuLibrary')
29+
implementation 'com.android.support:cardview-v7:23.1.0'
30+
implementation 'com.android.support:recyclerview-v7:23.1.0'
31+
implementation project(':android-gif-drawable-1.1.13')
32+
implementation 'com.google.android.gms:play-services-analytics:9.2.0'
33+
implementation 'com.google.code.gson:gson:2.8.2'
3334
}

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
-->
1616
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
1717
package="com.samsung.microbit"
18-
android:versionCode="12"
19-
android:versionName="2.0">
18+
android:versionCode="16"
19+
android:versionName="2.4">
2020

2121
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
2222
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
@@ -31,7 +31,6 @@
3131
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" android:protectionLevel="signature"/>
3232
<uses-permission android:name="android.permission.WAKE_LOCK"/>
3333
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
34-
<uses-permission android:name="android.permission.RECEIVE_SMS"/>
3534
<uses-permission android:name="android.permission.CAMERA"/>
3635

3736

app/src/main/res/raw/samples.zip

98.8 KB
Binary file not shown.

build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
33
repositories {
4-
jcenter()
4+
google()
5+
jcenter()
56
}
67
dependencies {
7-
classpath 'com.android.tools.build:gradle:2.2.1'
8+
classpath 'com.android.tools.build:gradle:3.2.1'
89
classpath 'com.google.gms:google-services:3.0.0'
910
}
1011
}
1112

1213
allprojects {
1314
repositories {
14-
jcenter()
15+
google()
16+
jcenter()
1517
}
1618
}

dfuLibrary/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22

33
android {
44
compileSdkVersion 23
5-
buildToolsVersion '22.0.0'
5+
buildToolsVersion '28.0.3'
66

77
defaultConfig {
88
minSdkVersion 19
@@ -18,9 +18,9 @@ android {
1818
}
1919

2020
dependencies {
21-
compile 'com.google.code.gson:gson:2.2.1'
22-
compile 'com.android.support:appcompat-v7:23.0.0'
23-
compile fileTree(dir: 'libs', include: ['*.jar'])
21+
implementation 'com.google.code.gson:gson:2.8.2'
22+
implementation 'com.android.support:appcompat-v7:23.0.0'
23+
implementation fileTree(dir: 'libs', include: ['*.jar'])
2424
}
2525

2626

dfuLibrary/src/main/AndroidManifest.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
android:versionCode="1"
44
android:versionName="1.0" >
55

6-
<uses-sdk
7-
android:minSdkVersion="18"
8-
android:targetSdkVersion="21" />
6+
97
<uses-permission android:name="android.permission.BLUETOOTH" />
108
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
119
</manifest>

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

0 commit comments

Comments
 (0)