()
| 179 | |
| 180 | |
| 181 | private void handleExports() { |
| 182 | /* |
| 183 | File exportSettings = new File(libraryFolder, "export.txt"); |
| 184 | StringDict exportTable = exportSettings.exists() ? |
| 185 | Util.readSettings(exportSettings) : new StringDict(); |
| 186 | */ |
| 187 | |
| 188 | exportList = new HashMap<>(); |
| 189 | |
| 190 | // get the list of files just in the library root |
| 191 | baseList = libraryFolder.list(libraryFolderFilter); |
| 192 | |
| 193 | for (String variant : Platform.getSupportedVariants().keys()) { |
| 194 | File variantFolder = new File(libraryFolder, variant); |
| 195 | if (!variantFolder.exists()) { |
| 196 | // check to see if old naming is in use |
| 197 | String oldName = newToOld.get(variant, null); |
| 198 | if (oldName != null) { |
| 199 | variantFolder = new File(libraryFolder, variant); |
| 200 | if (variantFolder.exists()) { |
| 201 | Messages.log("Please update " + getName() + " for Processing 4. " + |
| 202 | variantFolder + " is the older naming scheme."); |
| 203 | } |
| 204 | } |
| 205 | } |
| 206 | if (variantFolder.exists()) { |
| 207 | String[] entries = listPlatformEntries(libraryFolder, variant, baseList); |
| 208 | if (entries != null) { |
| 209 | exportList.put(variant, entries); |
| 210 | } |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | /* |
| 215 | // not actually used in any libraries |
| 216 | String androidExportStr = exportTable.get("android"); |
| 217 | if (androidExportStr != null) { |
| 218 | androidExportList = PApplet.splitTokens(androidExportStr, ", "); |
| 219 | } else { |
| 220 | androidExportList = baseList; |
| 221 | } |
| 222 | */ |
| 223 | |
| 224 | /* |
| 225 | // for each individual platform that this library supports, figure out what's around |
| 226 | for (int i = 1; i < platformNames.length; i++) { |
| 227 | String platformName = platformNames[i]; |
| 228 | String platformName32 = platformName + "32"; |
| 229 | String platformName64 = platformName + "64"; |
| 230 | String platformNameArmv6hf = platformName + "-armv6hf"; |
| 231 | String platformNameArm64 = platformName + "-arm64"; |
| 232 | |
| 233 | // First check for things like 'application.macosx=' or 'application.windows32' in the export.txt file. |
| 234 | // These will override anything in the platform-specific subfolders. |
| 235 | String platformAll = exportTable.get("application." + platformName); |
| 236 | String[] platformList = platformAll == null ? null : PApplet.splitTokens(platformAll, ", "); |
| 237 | String platform32 = exportTable.get("application." + platformName + "32"); |
| 238 | String[] platformList32 = platform32 == null ? null : PApplet.splitTokens(platform32, ", "); |
no test coverage detected