You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developer-guide/Advanced-Topics-Under-The-Hood.asciidoc
+2-17Lines changed: 2 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -349,19 +349,9 @@ Currently only supported for App Store builds. See https://www.codenameone.com/
349
349
| (Optional) The version of TeaVM to use for the build. *Use caution*, only use this property if you know what you are doing!
350
350
351
351
352
-
|rim.askPermissions
353
-
|true/false defaults to true. Indicates whether the user is prompted for permissions on Blackberry devices.
354
-
355
352
|google.adUnitId
356
353
|Allows integrating Admob/Google Play ads into the application see link:https://www.codenameone.com/blog/adding-google-play-ads.html[this]
357
354
358
-
|rim.ignor_legacy
359
-
|true/false defaults to false. When set to true the Blackberry build targets only 5.0 devices and newer and doesn’t build the 4.x version.
360
-
rim.nativeBrowser true/false defaults to false. Enables the native blackberry browser on OS 5 or higher. It is disabled by default since it might casue crashes on some cases.
361
-
362
-
|rim.obfuscation
363
-
|true/false defaults to false. Obfuscate the JAR before invoking the rimc compiler.
364
-
365
355
|ios.entitlementsInject
366
356
|Content to inject into the iOS entitlements file. This should be in the Plist XML format. See https://developer.apple.com/documentation/bundleresources/entitlements?language=objc[Apple Entitlements Documentation].
367
357
@@ -488,8 +478,6 @@ rim.nativeBrowser true/false defaults to false. Enables the native blackberry br
488
478
|noExtraResources
489
479
|true/false (defaults to false). Blocks codename one from injecting its own resources when set to true, the only effect this has is in slightly reducing archive size. This might have adverse effects on some features of Codename One so it isn't recommended.
490
480
491
-
|j2me.iconSize
492
-
|Defaults to 48x48. The size of the icon in the format of width x height (without the spacing).
493
481
|===
494
482
495
483
=== Android Permissions
@@ -768,7 +756,7 @@ Codename One doesn't include the native platforms in its bundle e.g. the full An
768
756
769
757
TIP: When implementing a non-trivial native interface, send a server build with the "Include Source" option checked. Implement the native interface in the native IDE then copy and paste the native code back into Codename One
770
758
771
-
The implementation of this interface is nearly identical for Android (Java/Kotlin), J2ME & Java SE.
759
+
The implementation of this interface is nearly identical for Android (Java/Kotlin) & Java SE.
Native interfaces standardize the invocation of native code from Codename One, but it doesn't standardize the reverse of callbacks into Codename One Java code. The reverse is naturally more complicated since its platform specific and more error prone.
1336
1324
1337
1325
A common "trick" for calling back is to just define a static method and then trigger it from native code. This works
1338
-
nicely for Android, Java SE, Blackberry & Java ME since those platforms use Java for their "native code". Mapping this to iOS requires some basic understanding of how the iOS VM works.
1326
+
nicely for Android& Java SE since those platforms use Java for their "native code". Mapping this to iOS requires some basic understanding of how the iOS VM works.
1339
1327
1340
1328
For the purpose of this explanation lets pretend we have a class called NativeCallback in the src hierarchy under
1341
1329
the package `com.mycompany` that has the method: `public static void callback()`.
@@ -1647,7 +1635,6 @@ javascript.minifying
1647
1635
javascript.proxy.url
1648
1636
javascript.sourceFilesCopied
1649
1637
javascript.teavm.version
1650
-
rim.askPermissions
1651
1638
google.adUnitId
1652
1639
ios.includePush
1653
1640
ios.headphoneCallback
@@ -1669,7 +1656,6 @@ desktop.themeMac
1669
1656
desktop.themeWin
1670
1657
desktop.windowsOutput
1671
1658
noExtraResources
1672
-
j2me.iconSize
1673
1659
android.permission.<PERMISSION_NAME>
1674
1660
----
1675
1661
@@ -1723,7 +1709,6 @@ The table below covers the files that can/should be a part of a cn1lib file:
1723
1709
| nativeios.zip | × | Native iOS sources if applicable
1724
1710
| nativeand.zip | × | Native Android sources if applicable
1725
1711
| nativejavascript.zip | × | Native JavaScript sources if applicable
1726
-
| nativerim.zip | × | Native RIM sources if applicable
1727
1712
| nativese.zip | × | Native JavaSE sources if applicable
1728
1713
| nativewin.zip | × | Native Windows sources if applicable
1729
1714
| nativeme.zip | × | Native Java ME sources if applicable
Copy file name to clipboardExpand all lines: docs/developer-guide/Index.asciidoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,9 +45,9 @@ E.g.: Since building native iOS applications requires a Mac OS X machine with a
45
45
46
46
Subscribers can receive the C source code back using the include sources feature of Codename One and use those sources for benchmarking, debugging on devices etc.
47
47
48
-
The same is true for most other platforms. For the Android, J2ME & Blackberry the standard Java code is executed as is.
48
+
The same is true for most other platforms. For the Android and Java SE the standard Java code is executed as is.
49
49
50
-
Java 8 syntax is supported thru https://github.com/orfjackal/retrolambda[retrolambda] installed on the Codename One servers. This is used to convert bytecode seamlessly down to Java 5 syntax levels. Java 5 syntax is translated to the JDK 1.3 cldc subset on J2ME/Blackberry to provide those language capabilities and API's across all devices. This is done using a server based bytecode processor based on retroweaver and a great deal of custom code. Notice that this architecture is transparent to developers as the build servers abstract most of the painful differences between devices.
50
+
Java 8 syntax is supported through https://github.com/orfjackal/retrolambda[retrolambda] installed on the Codename One servers. This is used to convert bytecode seamlessly down to Java 5 syntax levels. This is done using a server based bytecode processor based on retroweaver and a great deal of custom code. Notice that this architecture is transparent to developers as the build servers abstract most of the painful differences between devices.
Copy file name to clipboardExpand all lines: docs/developer-guide/graphics.asciidoc
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -373,7 +373,6 @@ you need a fallback path.
373
373
| JavaScript
374
374
| Yes
375
375
376
-
| Yes
377
376
|===
378
377
379
378
@@ -1324,8 +1323,7 @@ to the image itself (e.g. the `scaled` method) it will generate a new image whic
1324
1323
image.
1325
1324
1326
1325
TIP: Since https://www.codenameone.com/javadoc/com/codename1/ui/util/ImageIO.html[ImageIO] is used to perform the operations of the adapter interface its required that `ImageIO` will work.
1327
-
It is currently working in JavaSE, Android, iOS & Windows Phone. It doesn't work on J2ME/Blackberry devices so if you
1328
-
pass an adapter instance on those platforms it will probably fail to perform its task.
1326
+
It is currently working in JavaSE, Android, iOS & Windows Phone.
1329
1327
1330
1328
If the file in the URL contains an image that is too big it will scale it to match the size of the placeholder precisely! +
1331
1329
There is also an option to fail if the sizes don't match. Notice that the image that will be saved is the scaled
0 commit comments